/* ═══════════════════════════════════════════
   Servidores Mundiales — About Us Stylesheet
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 20px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #1a1f36; background: #fff; line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Tokens ── */
:root {
  --blue: #0019a4; --blue-hover: #1430c8;
  --blue-pale: #dde4f7; --blue-light: #f0f3fd;
  --gray-bg: #f4f6fb; --gray-border: #e2e7f2;
  --gray-mid: #8892b0; --text-dark: #1a1f36;
  --text-body: #3d4766; --white: #fff;
  --radius: 12px; --radius-lg: 18px;
}

/* ── Utility ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-size: 14px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ""; display: block; width: 20px; height: 2px; background: var(--blue);
}
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 400; line-height: 1.2;
  color: var(--text-dark); margin-bottom: 18px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  font-size: 17px; font-weight: 600; padding: 15px 28px;
  border-radius: var(--radius); border: 2px solid var(--blue);
  transition: background .18s, transform .14s;
}
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--blue); font-size: 17px; font-weight: 600;
  padding: 15px 28px; border-radius: var(--radius); border: 2px solid var(--blue);
  transition: background .18s, color .18s, transform .14s;
}
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 82px; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.nav-logo img { max-height: 60px; width: auto; display: block; }
.nav-logo-main { font-size: 19px; font-weight: 800; color: var(--blue); }
.nav-logo-sub { font-size: 12px; font-weight: 500; color: var(--gray-mid); letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 17px; font-weight: 500; color: var(--text-body);
  padding: 9px 16px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-light); color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 4px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; }
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--gray-border); padding: 12px 0 16px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; font-size: 18px; font-weight: 500; color: var(--text-body); padding: 14px 24px; border-bottom: 1px solid var(--gray-border); }

/* ── PAGE HERO ── */
/* Sin fondo azul: ahora usa una imagen de fondo, igual que el hero del home.
   Cambia la ruta de background-image por la foto que quieras usar.
   background-position: center 20% sube el encuadre para que las cabezas
   no queden cortadas — ajusta ese porcentaje si hace falta (más bajo =
   muestra más arriba de la imagen, más alto = muestra más abajo). */
.page-hero {
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
  background-image: url('Imagenes/pilar31.jpg');
  background-size: cover;
  background-position: center 50%;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero::after {
  content: "";
  position: absolute; right: -10px; bottom: -20px;
  font-family: Georgia, serif; font-size: 180px; font-weight: 700;
  color: rgba(255,255,255,0.04); line-height: 1;
  pointer-events: none; user-select: none; letter-spacing: -6px;
}
.page-hero-eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.page-hero-eyebrow::before { content: ""; width: 24px; height: 1px; background: rgba(255,255,255,0.35); }
.page-hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 700; color: #fff; line-height: 1.1;
  margin-bottom: 22px; letter-spacing: -1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.28);
}
.page-hero-sub {
  font-size: 20px; color: #fff; font-weight: 500;
  line-height: 1.75; max-width: 580px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── MISSION / VISION / VALUES ── */
.mvv-section { padding: 96px 0; background: #fff; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.mvv-card {
  background: var(--gray-bg); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border); padding: 34px 30px;
}
.mvv-card-icon {
  width: 48px; height: 48px; background: var(--blue-pale);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.mvv-card-title {
  font-size: 21px; font-weight: 700; color: var(--text-dark);
  margin-bottom: 14px;
}
.mvv-card-text { font-size: 17px; color: var(--text-body); line-height: 1.8; }
.mvv-values-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  margin-top: 2px;
}
.mvv-values-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; color: var(--text-body); line-height: 1.5;
}
.mvv-values-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}

/* ── TEAM ── */
.team-section { padding: 96px 0; background: var(--gray-bg); }
.team-intro { max-width: 620px; margin-bottom: 60px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Executive Director — full-width featured card */
.team-card-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 320px 1fr;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.team-card-featured:hover { box-shadow: 0 8px 40px rgba(0,25,164,0.09); transform: translateY(-2px); }
.team-card-featured .card-img {
  height: 100%; min-height: 320px;
  object-fit: cover; object-position: top;
  width: 100%;
}
.team-card-featured .card-body {
  padding: 40px 40px; display: flex; flex-direction: column; justify-content: center;
}
.team-card-featured .card-role {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 6px 14px;
  border-radius: 20px; margin-bottom: 16px;
}
.team-card-featured .card-name {
  font-family: Georgia, serif; font-size: 34px;
  color: var(--text-dark); font-weight: 400;
  margin-bottom: 18px; line-height: 1.2;
}
.team-card-featured .card-bio {
  font-size: 18px; color: var(--text-body); line-height: 1.8;
}

/* Regular team cards */
.team-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.team-card:hover { box-shadow: 0 8px 40px rgba(0,25,164,0.09); transform: translateY(-2px); }
.team-card .card-photo {
  width: 100%; aspect-ratio: 4/4.2; overflow: hidden;
  background: var(--blue-pale);
}
.team-card .card-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .4s;
}
.team-card:hover .card-photo img { transform: scale(1.03); }
.team-card .card-body { padding: 24px 26px 28px; }
.team-card .card-role {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.team-card .card-name {
  font-size: 21px; font-weight: 700; color: var(--text-dark);
  margin-bottom: 14px; line-height: 1.25;
}
.team-card .card-bio { font-size: 16px; color: var(--text-body); line-height: 1.75; }

/* ── GALLERY ── */
.gallery-section { padding: 96px 0; background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 12px; margin-top: 52px;
}
.gallery-item {
  border-radius: 12px; overflow: hidden;
  background: var(--gray-bg);
}
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }

/* ── CTA ── */
.cta-section { padding: 96px 0; background: var(--blue); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.cta-title {
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  color: #fff; font-weight: 400; line-height: 1.25; margin-bottom: 14px;
}
.cta-sub { font-size: 19px; color: rgba(255,255,255,0.78); line-height: 1.7; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue);
  font-size: 17px; font-weight: 700; padding: 16px 30px;
  border-radius: var(--radius); border: 2px solid #fff; transition: all .18s; white-space: nowrap;
}
.btn-hero:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue);
  font-size: 17px; font-weight: 700; padding: 16px 30px;
  border-radius: var(--radius); border: 2px solid #fff;
  transition: all .18s; white-space: nowrap;
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.9); transform: translateY(-1px); }

/* ── FOOTER ── */
.footer { background: #fff; border-top: 1px solid var(--gray-border); padding: 56px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand-name { font-size: 19px; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.footer-brand-tagline { font-size: 13px; color: var(--gray-mid); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-brand-desc { font-size: 16px; color: var(--text-body); line-height: 1.75; max-width: 280px; }
.footer-col h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 16px; color: var(--text-body); transition: color .15s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--gray-border); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 15px; color: var(--gray-mid); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
  .nav-logo img { max-height: 50px; }
  .mvv-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card-featured { grid-template-columns: 1fr; }
  /* La foto del director es un recorte vertical (cabeza a torso). El
     archivo real (Absael sin fondo.png) NO tiene transparencia — es un
     PNG con fondo blanco sólido de fábrica. Por eso NO se le pone ningún
     color de relleno aquí: la tarjeta (.team-card-featured) ya es blanca,
     así que el blanco de la foto se funde con el blanco de la tarjeta sin
     dejar ningún borde ni caja visible. Con object-fit: contain se ve la
     persona completa, sin recortar nada. */
  .team-card-featured .card-img {
    height: 400px;
    width: 100%;
    object-fit: contain;
    object-position: center;
  }
  .team-card-featured .card-body { padding: 28px 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px 200px 200px; }
  .gallery-item.large { grid-column: span 2; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .page-hero::after { font-size: 100px; }
}
@media (max-width: 600px) {
  html { font-size: 19px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card-featured { grid-column: 1; }
  .team-card-featured .card-img { height: 340px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .gallery-item.large { grid-column: 1 / -1; grid-row: span 1; }
  .mvv-grid { grid-template-columns: 1fr; }
  .mvv-section, .team-section, .gallery-section, .cta-section { padding: 64px 0; }
}