/**
 * sobre.css — Rediseño de /sobre-nosotros
 * Flujo natural y legible en desktop (sin alturas forzadas ni flex centering agresivo).
 * Sección de equipo destacada.
 * Totalmente responsive y coherente con el sistema de diseño.
 */

/* ============================================
   PAGE HEADER
   ============================================ */
.sobre-nosotros .page-hd {
  padding-top: 7rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  align-items: flex-end;
}

@media (min-width: 761px) {
  .sobre-nosotros .page-hd {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1101px) {
  .sobre-nosotros .page-hd {
    padding-top: 8.5rem;
    padding-bottom: 3.25rem;
  }
}

/* Más separación del header a la primera sección de contenido */
.sobre-nosotros .page-hd + .section-wrap .section-pad {
  padding-top: 3.75rem;
}

@media (min-width: 768px) {
  .sobre-nosotros .page-hd + .section-wrap .section-pad {
    padding-top: 4.25rem;
  }
}

@media (min-width: 1101px) {
  .sobre-nosotros .page-hd + .section-wrap .section-pad {
    padding-top: 4.5rem;
  }
}

.sobre-nosotros .ph-count {
  color: var(--text-3);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

/* ============================================
   FLUJO NATURAL (desktop fix)
   - Sin min-height 100svh
   - Sin display:flex + justify-content:center en el pad
   - Padding generoso pero contenido fluye normalmente
   ============================================ */
.sobre-nosotros .section-wrap {
  min-height: auto;
}

.sobre-nosotros .section-pad {
  display: block !important;           /* rompe el flex centering del base.css */
  min-height: auto !important;
  width: 92%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

@media (max-width: 767px) {
  .sobre-nosotros .section-pad {
    width: 94%;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }
}

@media (min-width: 768px) {
  .sobre-nosotros .section-pad {
    padding-top: 3.75rem;
    padding-bottom: 3.5rem;
  }
}

/* Desktop: ocupa más espacio horizontal */
@media (min-width: 1101px) {
  .sobre-nosotros .section-pad {
    width: 90%;
    max-width: 1240px;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1400px) {
  .sobre-nosotros .section-pad {
    width: 88%;
    max-width: 1320px;
  }
}

/* Más separación entre secciones principales */
.sobre-nosotros .section-wrap + .section-wrap {
  margin-top: 1.6rem;
}

@media (min-width: 768px) {
  .sobre-nosotros .section-wrap + .section-wrap {
    margin-top: 2.25rem;
  }
}

/* Más aire después de títulos de sección */
.sobre-nosotros .s-title {
  margin-bottom: 1rem;
}

.sobre-nosotros .s-title + .about-principles,
.sobre-nosotros .s-title + .about-team-grid {
  margin-top: 2.4rem;
}

@media (min-width: 1101px) {
  .sobre-nosotros .s-title {
    margin-bottom: 1.2rem;
  }
}

/* ============================================
   INTRO
   ============================================ */
.about-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 58ch;
}

.about-sub {
  margin-top: 1.1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 60ch;
}

@media (min-width: 768px) {
  .about-lead {
    font-size: 1.15rem;
  }
  .about-sub {
    margin-top: 1.25rem;
  }
}

@media (min-width: 1101px) {
  .about-lead {
    max-width: 64ch;
  }
  .about-sub {
    max-width: 66ch;
  }
}

/* ============================================
   PRINCIPIOS (3 columnas en desktop)
   ============================================ */
.about-principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.85rem;
  margin-top: 2.25rem;
}

@media (min-width: 768px) {
  .about-principles {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.1rem;
  }
}

@media (min-width: 1101px) {
  .about-principles {
    gap: 2.9rem;
    margin-top: 3rem;
  }
}

.principle {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.6rem 1.5rem;
  transition: border-color .25s ease;
}

.principle:hover {
  border-color: var(--gold-line);
}

.principle-num {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: .45rem;
}

.principle h3 {
  font-size: .98rem;
  font-weight: 600;
  margin: 0 0 .4rem;
  color: var(--text);
  line-height: 1.3;
}

.principle p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ============================================
   NUESTRO EQUIPO (sección destacada)
   ============================================ */
.about-team-intro {
  max-width: 64ch;
  margin-top: 0.85rem;
  margin-bottom: 2.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
}

@media (min-width: 1101px) {
  .about-team-intro {
    max-width: 68ch;
  }
}

.about-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 0.35rem;
}

/* 2 columnas en tablet y superior */
@media (min-width: 640px) {
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.9rem;
  }
}

/* En desktop grande puede llegar a 4 columnas si hay espacio */
@media (min-width: 1024px) {
  .about-team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.team-role {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.7rem 1.55rem;
  transition: border-color .25s ease;
}

.team-role:hover {
  border-color: var(--gold-line);
}

.team-role h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .5rem;
  line-height: 1.3;
}

.team-role p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* ============================================
   FUNDADOR
   ============================================ */
.about-founder {
  margin-bottom: 2.25rem;
}

.founder-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem 1.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  transition: border-color .25s ease;
}

.founder-card:hover {
  border-color: var(--gold-line);
  border-left-color: var(--gold);
}

.founder-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}

.founder-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 .2rem;
  line-height: 1.2;
}

.founder-role {
  font-size: .875rem;
  color: var(--text-2);
  margin: 0;
}

.founder-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: opacity .2s;
}

.founder-link:hover {
  opacity: .7;
}

.founder-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ============================================
   PRESENCIA
   ============================================ */
.about-presence-text {
  max-width: 58ch;
  margin-top: .65rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
}

@media (min-width: 1101px) {
  .about-presence-text {
    max-width: 62ch;
  }
}

.about-presence .and {
  color: var(--gold);
}

/* ============================================
   CTA FINAL (centrado, como en otras páginas)
   ============================================ */
.about-cta {
  padding-top: 3rem;
  padding-bottom: 4rem;
  text-align: center;
}

.sobre-nosotros .about-cta .reveal {
  text-align: center;
}

.about-cta .cta-title {
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  margin-bottom: .6rem;
}

.about-cta-text {
  max-width: 44ch;
  margin: .75rem auto 0;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.55;
}

@media (min-width: 1101px) {
  .about-cta-text {
    max-width: 48ch;
  }
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.35rem;
}

.about-cta-actions .btn-outline {
  margin-top: 0;
}

/* ============================================
   RESPONSIVE FINO
   ============================================ */
@media (max-width: 560px) {
  .sobre-nosotros .page-hd {
    padding-top: 5.8rem;
    padding-bottom: 2.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .sobre-nosotros .ph-count {
    margin-top: 0.4rem;
    font-size: 1.4rem;
  }

  .about-lead {
    font-size: 1.02rem;
  }

  .principle,
  .team-role {
    padding: 1.15rem 1.1rem;
  }

  .about-team-grid {
    gap: 1rem;
  }
}

/* ============================================
   CENTRADO DE TEXTOS SOLICITADO
   - "Somos un estudio de desarrollo web..." (intro lead + sub)
   - Texto de la sección "Presencia"
   - Elemento "Siguiente paso" (cta-label)
   ============================================ */
.sobre-nosotros .about-intro {
  text-align: center;
}

.sobre-nosotros .about-lead,
.sobre-nosotros .about-sub {
  margin-left: auto;
  margin-right: auto;
}

.sobre-nosotros .about-presence {
  text-align: center;
}

.sobre-nosotros .about-presence .about-presence-text {
  margin-left: auto;
  margin-right: auto;
}

/* Centrar también el label y título de Presencia para que quede coherente */
.sobre-nosotros .about-presence .s-label,
.sobre-nosotros .about-presence .s-title {
  justify-content: center;
  text-align: center;
}

/* Centrar el elemento "Siguiente paso" (cta-label) */
.sobre-nosotros .about-cta .cta-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center !important;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
