/* ── conocenos.css ── */

/* ── HERO ── */
.page-hero {
  width: 100%;
  text-align: center;
  padding: 48px 16px 32px;
  border-bottom: 1px solid var(--gray-light);
}

.page-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.page-hero p {
  color: var(--text-soft);
  font-size: clamp(14px, 2vw, 16px);
  margin-top: 10px;
}

/* ── LABELS & TITLES ── */
.about-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.about-label.center,
.section-title.center {
  display: block;
  text-align: center;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

/* ── SPLIT SECTION (Misión / Visión) ── */
.about-section {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-light);
}

.about-section.reverse { direction: rtl; }
.about-section.reverse > * { direction: ltr; }

.about-text h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 16px;
}

.about-text h2::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 4px;
  height: calc(100% - 16px);
  background: var(--accent);
  border-radius: 2px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.78;
}

/* ── IMAGE BLOCKS ── */
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-light);
  aspect-ratio: 4/3;
  box-shadow: 0 6px 32px rgba(11,31,58,0.13);
  position: relative;
}

.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.about-img:hover img { transform: scale(1.04); }

.about-img.no-img {
  display: flex; align-items: center; justify-content: center;
}


.about-img:hover img { transform: scale(1.04); }

.about-img.no-img {
  display: flex; align-items: center; justify-content: center;
}

.section-img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-light);
  box-shadow: 0 6px 32px rgba(11,31,58,0.11);
  margin-top: 32px;
  position: relative;
}

.section-img.wide {
  aspect-ratio: 21/6;
  min-height: 120px;
}

.section-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.section-img:hover img { transform: scale(1.02); }

.section-img.no-img {
  display: flex; align-items: center; justify-content: center;
}

.img-fallback {
  display: none;
  font-size: 14px;
  color: var(--gray-mid);
  font-weight: 500;
}

.no-img .img-fallback {
  display: block;
  padding: 32px;
  text-align: center;
}

/* ── VALORES SECTION ── */
.valores-section {
  width: 100%;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-light);
}

.about-card {
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.28s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(230,57,70,0.12);
  border-color: var(--accent);
}

.about-card:hover::after { transform: scaleX(1); }

.card-icon { font-size: 30px; margin-bottom: 12px; }

.about-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── EQUIPO SECTION ── */
.equipo-section {
  width: 100%;
  padding: 64px 0 0;
}

.equipo-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.miembro-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(11,31,58,0.07);
  transition: transform 0.28s, box-shadow 0.28s;
}

.miembro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(11,31,58,0.13);
}

.miembro-photo {
  aspect-ratio: 1/1;
  background: var(--gray-light);
  overflow: hidden;
  position: relative;
}

.miembro-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.miembro-card:hover .miembro-photo img { transform: scale(1.06); }

.miembro-photo.no-img {
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}

.miembro-info {
  padding: 18px 20px 22px;
  border-top: 3px solid var(--accent);
}

.miembro-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.miembro-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.miembro-info p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ══════════════════════════════════
   RESPONSIVE — TABLET  ≤ 900px
══════════════════════════════════ */
@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }

  .about-section.reverse { direction: ltr; }

  .equipo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 640px
══════════════════════════════════ */
@media (max-width: 640px) {
  .page-hero {
    padding: 28px 12px 20px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }

  .about-section.reverse { direction: ltr; }

  .section-img.wide {
    aspect-ratio: 16/7;
  }

  .valores-section {
    padding: 40px 0;
  }

  /* Grid de valores: 2 columnas en móvil */
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-icon { font-size: 24px; }
  .about-card h3 { font-size: 17px; }

  .equipo-section { padding: 40px 0 0; }

  .equipo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Foto del miembro rectangular en móvil */
  .miembro-photo {
    aspect-ratio: 16/9;
  }
}
