/* ========================
   ACERCA DE — estilos propios
   (complementa style.css)
======================== */

/* Nav link activo */
.nav-active {
  color: var(--gold) !important;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* ========================
   HERO DE PÁGINA
======================== */
.about-hero {
  background: var(--teal);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.about-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.about-hero-inner.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}
.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.about-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

/* ========================
   MISIÓN / VISIÓN / VALORES
======================== */
.mision-strip {
  background: var(--cream);
  padding: 4rem 2rem;
}
.mision-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.mision-item {
  text-align: center;
  padding: 1.5rem 2rem;
  opacity: 0;
  transform: translateY(20px);
}
.mision-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mision-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.8rem;
}
.mision-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.mision-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}
.mision-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 1rem 0;
}

/* ========================
   SECCIONES FUNDADORA / EQUIPO
======================== */
.about-section {
  padding: 5rem 2rem;
  background: #fff;
  opacity: 0;
  transform: translateY(30px);
}
.about-section:nth-of-type(even) {
  background: var(--cream);
}
.about-section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-section.reverse .about-section-inner {
  /* texto izquierda, imagen derecha — orden natural */
}

/* Columna imagen */
.about-img-col {
  position: relative;
}
.about-img-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(42,95,96,0.15);
}
.about-img-frame img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.about-img-frame:hover img {
  transform: scale(1.03);
}
.about-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(30,70,71,0.85));
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2rem 1.2rem 0.9rem;
}

/* Imagen izquierda: leve rotación decorativa */
.left-img .about-img-frame {
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}
.left-img .about-img-frame:hover {
  transform: rotate(0deg);
}

/* Imagen derecha */
.right-img .about-img-frame {
  transform: rotate(1.5deg);
  transition: transform 0.4s ease;
}
.right-img .about-img-frame:hover {
  transform: rotate(0deg);
}

/* Columna texto */
.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.about-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--teal);
  line-height: 1.2;
}
.about-section-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.2rem 0 0.4rem;
}
.about-text-col p {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.8;
}
.about-text-col p em {
  font-style: italic;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: block;
  padding: 0.8rem 0 0.8rem 1.2rem;
  border-left: 3px solid var(--gold);
}

/* Tags fundadora */
.about-founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.founder-tag {
  background: var(--teal);
  color: white;
  font-size: 0.72rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* Grid de miembros del equipo
   auto-fill: agrega columnas solas al agregar más .team-member
   min 140px, max 1fr → se acomoda en cualquier ancho */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.team-member {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  transition: box-shadow 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(16px);
}
.team-member.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s, transform 0.3s;
}
.team-member:hover {
  box-shadow: 0 6px 20px rgba(42,95,96,0.12);
  transform: translateY(-3px);
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold-light);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--teal);
}
.team-role {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ========================
   SEPARADOR DECORATIVO
======================== */
.section-separator {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto;
  padding: 1rem 0;
}
.section-separator span:not(.sep-diamond) {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.sep-diamond {
  color: var(--gold);
  font-size: 0.7rem;
}

/* ========================
   CTA FINAL
======================== */
.about-cta {
  background: var(--teal);
  padding: 5rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}
.about-cta.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn {
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
}
.cta-btn.primary {
  background: var(--gold);
  color: white;
  border: 2px solid var(--gold);
}
.cta-btn.primary:hover {
  background: #b87a35;
  border-color: #b87a35;
}
.cta-btn.secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(255,255,255,0.5);
}
.cta-btn.secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--cream);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 900px) {
  .about-section-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  /* En móvil: imagen siempre arriba */
  .about-section .about-img-col { order: -1; }
  .about-section.reverse .about-img-col { order: -1; }
  .about-img-frame img { height: 300px; }
  .left-img .about-img-frame,
  .right-img .about-img-frame { transform: none; }

  .mision-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mision-divider { display: none; }

  .team-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 500px) {
  .cta-buttons { flex-direction: column; align-items: center; }
}
