/* --------- LAYOUT --------- */

.layout-lateral {
  width: 100%;
  max-width: 1100px;
  background: #111;
  border-radius: 30px;
  padding: 30px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
}

/* --------- MENÚ LATERAL --------- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-btn {
  border-radius: 25px;
  border: 2px solid transparent;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #1c1c1c;
  color: #eee;
  transition:
    background .2s ease,
    transform .15s ease,
    border-color .2s ease,
    color .2s ease;
}

.tab-btn:hover {
  background: #222;
  transform: translateY(-1px);
}

/* Activo verde */
.tab-btn.active.active-green {
  background: #8ccd3d;
  color: #000;
  border-color: #c5ff7a;
  font-weight: 600;
}

/* Activo rosa */
.tab-btn.active.active-pink {
  background: #ec008c;
  color: #fff;
  border-color: #ff7bc9;
  font-weight: 600;
}

/* --------- PANEL DERECHO --------- */

.content-lateral {
  border-radius: 30px;
  padding: 20px 20px 15px;
  position: relative;
  overflow: hidden;
  transition: background .25s ease,
}

.tab-content {
  display: none;
  background: transparent;
  animation: fadeIn .25s ease;
}

.tab-content * {
  background: transparent;
}

.tab-content.active {
  display: block;
}

.tab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.tab-text p {
  margin-bottom: 10px;
  color: #f6ffe8;
  line-height: 1.5;
  font-size: 15px;
}

.tab-image {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

.tab-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Fondo verde */
.panel-green {
  background: #8ccd3d !important;
  color: #122;
}

/* Fondo rosa */
.panel-pink {
  background: #ec008c !important;
  color: #fff;
}

/* --------- ANIMACIÓN --------- */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------- RESPONSIVO --------- */

@media (max-width: 1024px) {
  .layout-lateral {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1 1 45%;
    text-align: center;
  }
}

@media (max-width: 450px) {
  .content-lateral {
    padding: 16px 10px 10px;
  }

  .tab-grid {
    grid-template-columns: 1fr;
  }
}