/* ============================================================
   SHARED.CSS — Estilos compartidos para todo el sitio
   Modifica las variables en :root para cambiar colores globalmente
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   VARIABLES GLOBALES — CAMBIA AQUÍ LOS COLORES DEL SITIO
   ============================================================ */
:root {
  --navy:       #1a2a4a;   /* Azul institucional principal */
  --navy-dark:  #0f1d35;   /* Azul muy oscuro (footer) */
  --navy-mid:   #253a5e;   /* Azul intermedio */
  --gold:       #c8a435;   /* Dorado principal */
  --gold-light: #e8c860;   /* Dorado claro */
  --gold-pale:  #fdf6e3;   /* Fondo dorado muy suave */
  --white:      #ffffff;
  --gray-light: #f4f6f9;
  --gray-mid:   #e0e4ea;
  --gray-text:  #5a6070;
  --black:      #111827;

  /* TIPOGRAFÍA — Cambia los nombres de fuente si lo deseas */
  --font-head: 'Playfair Display', serif;   /* Títulos elegantes */
  --font-ui:   'Montserrat', sans-serif;    /* Menú, botones, etiquetas */
  --font-body: 'Source Serif 4', serif;     /* Texto de lectura */

  /* ESPACIADOS */
  --section-v: 80px;
  --section-h: 60px;
  --radius:    8px;
  --radius-lg: 14px;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 60px;
  font-family: var(--font-ui);
  font-size: 12px;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar .socials { display: flex; gap: 3px; }
.top-bar .socials a {
  color: var(--gold-light);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  transition: background .2s, color .2s;
  font-size: 11px;
}
.top-bar .socials a:hover { background: var(--gold); color: var(--navy); }
.top-bar .contact-info { display: flex; gap: 22px; opacity: .8; flex-wrap: wrap; }
.top-bar .contact-info span { display: flex; align-items: center; gap: 5px; }

.header-social-btn {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  transition: border-color .2s, background .2s, color .2s;
  flex-shrink: 0;
}
.header-social-btn:hover {
  border-color: var(--gold);
  background: rgba(200,164,53,.1);
  color: var(--gold);
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  width: 100%;
  box-sizing: border-box;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 16px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,.09);
}
header h1 {
  white-space: nowrap;
  font-size: clamp(14px, 1.8vw, 22px);
}

    /* ── HEADER DOS NIVELES ── */
    header.header-top {
      background: #0a1628;
      padding: 14px 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 3px solid var(--gold);
      position: static;
      box-shadow: none;
    }
    header.header-top .logo-wrap {
      text-decoration: none;
      display: flex;
      align-items: center;
    }
    header.header-top .logo-container {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    header.header-top .logo-img {
      width: 48px;
      height: 48px;
      object-fit: contain;
    }
    header.header-top .logo-text {
      display: flex;
      flex-direction: column;
    }
    header.header-top h1 {
      color: #ffffff;
      font-family: var(--font-ui);
      font-size: 17px;
      font-weight: 700;
      letter-spacing: 0.3px;
      white-space: nowrap;
      margin: 0;
    }
    .logo-tagline {
      color: rgba(255,255,255,0.38);
      font-family: var(--font-ui);
      font-size: 9.5px;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      margin-top: 2px;
    }
    .header-contact-bar {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .header-contact-item {
      color: rgba(255,255,255,0.5);
      font-family: var(--font-ui);
      font-size: 11.5px;
    }
    .header-contact-item strong {
      color: var(--gold);
      font-weight: 600;
    }
    .header-contact-sep {
      color: rgba(255,255,255,0.15);
      font-size: 13px;
    }

    /* ── NAV NIVEL 2 ── */
    nav.nav-bottom {
      background: #1a2d4f;
      padding: 0 48px;
      position: relative;
    }
    nav.nav-bottom > ul {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      gap: 2px;
    }
    nav.nav-bottom > ul > li {
      position: relative;
    }
    nav.nav-bottom > ul > li > a {
      color: rgba(255,255,255,0.62);
      font-family: var(--font-ui);
      font-size: 11.5px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      padding: 15px 20px;
      display: flex;
      align-items: center;
      text-decoration: none;
      border-bottom: 3px solid transparent;
      transition: color 0.2s, border-color 0.2s, background 0.2s;
    }
    nav.nav-bottom > ul > li > a:hover {
      color: #ffffff;
      background: rgba(255,255,255,0.04);
    }
    nav.nav-bottom > ul > li > a.active {
      color: var(--gold);
      border-bottom: 3px solid var(--gold);
      background: rgba(200,164,53,0.07);
    }
    nav.nav-bottom .dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      background: #0f1d35;
      min-width: 190px;
      list-style: none;
      padding: 8px 0;
      border-top: 2px solid var(--gold);
      border-radius: 0 0 6px 6px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.25);
      z-index: 999;
      display: none;
    }
    nav.nav-bottom > ul > li:hover .dropdown { display: block; }
    nav.nav-bottom .dropdown li a {
      display: block;
      color: rgba(255,255,255,0.72);
      font-family: var(--font-ui);
      font-size: 12.5px;
      font-weight: 600;
      padding: 10px 20px;
      text-decoration: none;
      transition: color 0.15s, background 0.15s;
    }
    nav.nav-bottom .dropdown li a:hover {
      color: var(--gold);
      background: rgba(200,164,53,0.07);
    }

    @media(max-width:900px){
      header.header-top { padding: 12px 20px; flex-direction: column; gap: 10px; align-items: flex-start; }
      .header-contact-bar { flex-wrap: wrap; gap: 8px; }
      .header-contact-sep { display: none; }
      nav.nav-bottom { padding: 0 16px; }
      nav.nav-bottom > ul > li > a { padding: 13px 12px; font-size: 10.5px; }
    }

/* ── HERO SLIDER ── */
    .hero { position:relative; height:560px; overflow:hidden; background:var(--navy); }
    .hero-slides { display:flex; height:100%; transition:transform .8s cubic-bezier(.77,0,.175,1); }
    .hero-slide { min-width:100%; height:100%; position:relative; display:flex; align-items:center; padding:0 100px; }
    .hero-slide::before {
      content:''; position:absolute; inset:0;
      background:linear-gradient(to right, rgba(15,29,53,.92) 38%, rgba(15,29,53,.4) 68%, transparent 100%);
      z-index:1;
    }
    .slide-bg { position:absolute; inset:0; background-size:cover; background-position:center; }
    /* ── IMÁGENES DEL SLIDER — Cambia las URLs por tus propias fotos ── */
    .slide-bg-1 { background-image:url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1400&q=80'); }
    .slide-bg-2 { background-image:url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1400&q=80'); }
    .slide-bg-3 { background-image:url('https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1400&q=80'); }
    .hero-content { position:relative; z-index:2; color:var(--white); max-width:620px; }
    .hero-badge {
      display:inline-block; background:var(--gold); color:var(--navy);
      font-family:var(--font-ui); font-size:11px; font-weight:800;
      letter-spacing:3px; text-transform:uppercase;
      padding:5px 16px; border-radius:2px; margin-bottom:22px;
    }
    .hero-content h1 {
      font-family:var(--font-head); font-size:50px; font-weight:700;
      line-height:1.08; margin-bottom:18px;
      text-shadow:0 2px 18px rgba(0,0,0,.3);
    }
    .hero-content h1 em { color:var(--gold-light); font-style:normal; }
    .hero-content p { font-size:17px; line-height:1.72; opacity:.87; margin-bottom:32px; }
    .hero-btns { display:flex; gap:14px; flex-wrap:wrap; }
    /* Flechas del slider */
    .hero-arrow {
      position:absolute; top:50%; transform:translateY(-50%);
      background:rgba(15,29,53,.55); color:var(--white);
      border:2px solid rgba(255,255,255,.28); font-size:18px;
      width:50px; height:50px; border-radius:50%;
      cursor:pointer; z-index:10;
      display:flex; align-items:center; justify-content:center;
      transition:all .2s;
    }
    .hero-arrow:hover { background:var(--gold); color:var(--navy); border-color:var(--gold); }
    .hero-arrow.prev { left:24px; }
    .hero-arrow.next { right:24px; }
    .hero-dots { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); display:flex; gap:10px; z-index:10; }
    .dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.38); cursor:pointer; border:2px solid transparent; transition:all .25s; }
    .dot.active { background:var(--gold); width:28px; border-radius:5px; border-color:rgba(255,255,255,.7); }

    /* ── MODALIDADES / ESPECIALIDADES ── */
    .especialidades-strip { display:grid; grid-template-columns:repeat(3,1fr); }
    .esp-block {
      padding:52px 48px; color:var(--white);
      display:flex; flex-direction:column; gap:14px;
      position:relative; overflow:hidden; transition:filter .3s;
    }
    .esp-block:nth-child(1) { background:var(--navy); }
    .esp-block:nth-child(2) { background:var(--navy-mid); }
    .esp-block:nth-child(3) { background:#1e3460; }
    .esp-block::after { content:''; position:absolute; bottom:-50px; right:-50px; width:170px; height:170px; border-radius:50%; background:rgba(200,164,53,.1); pointer-events:none; }
    .esp-icon { font-size:38px; line-height:1; }
    .esp-tag { display:inline-block; background:var(--gold); color:var(--navy); font-family:var(--font-ui); font-size:10px; font-weight:900; letter-spacing:3px; padding:4px 12px; text-transform:uppercase; border-radius:2px; width:fit-content; }
    .esp-block h3 { font-family:var(--font-head); font-size:24px; font-weight:700; }
    .esp-block p { font-size:14px; opacity:.8; line-height:1.6; }
    .esp-link { font-family:var(--font-ui); font-size:11.5px; font-weight:700; color:var(--gold-light); letter-spacing:1.5px; text-transform:uppercase; border-bottom:2px solid var(--gold); padding-bottom:3px; width:fit-content; transition:color .2s; margin-top:4px; }
    .esp-link:hover { color:var(--white); }

    /* ── STATS ── */
    .stats-bar { background:var(--navy-dark); display:grid; grid-template-columns:repeat(4,1fr); border-top:3px solid var(--gold); }
    .stat-item { padding:40px 20px; text-align:center; color:var(--white); border-right:1px solid rgba(255,255,255,.07); transition:background .2s; }
    .stat-item:last-child { border-right:none; }
    .stat-item:hover { background:rgba(200,164,53,.08); }
    .stat-num { font-family:var(--font-head); font-size:42px; font-weight:700; color:var(--gold); line-height:1; margin-bottom:8px; }
    .stat-label { font-family:var(--font-ui); font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; opacity:.6; }

    /* ── NOTICIAS ── */
    .noticias-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:28px; }
    .noticia-featured { display:flex; flex-direction:column; }
    .noticia-featured .noticia-img { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
    .noticia-featured .card-body { flex:1; border-radius:0 0 var(--radius-lg) var(--radius-lg); border:1px solid var(--gray-mid); border-top:none; }
    .noticia-sm { display:flex; gap:16px; align-items:flex-start; padding:18px; background:var(--white); border-radius:var(--radius); border:1px solid var(--gray-mid); transition:box-shadow .2s, transform .2s; cursor:pointer; }
    .noticia-sm:hover { box-shadow:0 8px 24px rgba(0,0,0,.1); transform:translateY(-3px); }
    .noticia-sm-img { width:86px; height:70px; object-fit:cover; border-radius:6px; flex-shrink:0; }
    .noticia-sm-body { flex:1; display:flex; flex-direction:column; gap:5px; }
    .noticia-sm-cat { font-family:var(--font-ui); font-size:9.5px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--gold); }
    .noticia-sm-title { font-family:var(--font-ui); font-size:13px; font-weight:700; color:var(--navy); line-height:1.4; }
    .noticia-sm-date { font-size:11.5px; color:#aaa; font-family:var(--font-ui); }
    .noticias-sidebar { display:flex; flex-direction:column; gap:14px; }

    /* ── SOBRE EL LICEO ── */
    .about-img { border-radius:var(--radius-lg); width:100%; height:440px; object-fit:cover; box-shadow:0 20px 48px rgba(0,0,0,.15); }
    .about-features { display:flex; flex-direction:column; gap:14px; margin:20px 0; }
    .feat { display:flex; align-items:flex-start; gap:14px; }
    .feat-icon { width:36px; height:36px; background:var(--gold); color:var(--navy); border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
    .feat-text h5 { font-family:var(--font-ui); font-size:13.5px; font-weight:700; color:var(--navy); margin-bottom:2px; }
    .feat-text p { font-size:13px; color:var(--gray-text); line-height:1.55; }

    /* ── ACCESOS RÁPIDOS ── */
    .links-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:36px; }
    .quick-link {
      background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.11);
      border-radius:var(--radius); padding:26px 14px; text-align:center;
      color:var(--white); display:flex; flex-direction:column; align-items:center; gap:10px;
      transition:background .2s, border-color .2s, transform .2s;
    }
    .quick-link:hover { background:var(--gold); color:var(--navy); border-color:var(--gold); transform:translateY(-4px); }
    .ql-icon { font-size:30px; }
    .ql-label { font-family:var(--font-ui); font-size:11.5px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; line-height:1.3; }

    /* ── ACADEMIAS PREVIEW ── */
    .academias-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
    .academia-card {
      border-radius:var(--radius-lg); overflow:hidden; position:relative;
      aspect-ratio:3/4; cursor:pointer;
      box-shadow:0 4px 20px rgba(0,0,0,.12);
      transition:transform .3s, box-shadow .3s;
    }
    .academia-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,.2); }
    .academia-card img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
    .academia-card:hover img { transform:scale(1.05); }
    .academia-card-overlay {
      position:absolute; inset:0;
      background:linear-gradient(to top, rgba(15,29,53,.92) 40%, transparent 100%);
      display:flex; flex-direction:column; justify-content:flex-end; padding:24px 20px;
      color:var(--white);
    }
    .academia-card-overlay .ac-icon { font-size:30px; margin-bottom:8px; }
    .academia-card-overlay h4 { font-family:var(--font-head); font-size:19px; font-weight:700; margin-bottom:4px; }
    .academia-card-overlay p { font-size:12.5px; opacity:.8; }

    @media(max-width:1100px){
      .noticias-grid { grid-template-columns:1fr; }
      .especialidades-strip { grid-template-columns:1fr; }
      .stats-bar { grid-template-columns:repeat(2,1fr); }
      .links-grid { grid-template-columns:repeat(3,1fr); }
      .academias-grid { grid-template-columns:repeat(2,1fr); }
    }

.logo-wrap { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.3px;
}
.logo-name span { color: var(--gold); }
.logo-sub {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gray-text);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.partner-logo {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 5px;
  padding: 5px 13px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: border-color .2s;
}
.partner-logo:hover { border-color: var(--gold); }
.header-btn {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.header-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ============================================================
   NAVEGACIÓN PRINCIPAL
   ============================================================ */
nav {
  background: var(--navy);
  position: sticky;
  top: 81px;
  z-index: 998;
  box-shadow: 0 3px 14px rgba(0,0,0,.22);
}

/* Nav de dos niveles: estático dentro del wrapper site-header */
nav.nav-bottom {
  position: static !important;
  margin-top: 0 !important;
}

/* El wrapper sticky que contiene header + nav juntos */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 14px rgba(0,0,0,.3);
}
nav > ul { display: flex; padding: 0 60px; flex-wrap: wrap; }
nav > ul > li { position: relative; }
nav > ul > li > a {
  display: block;
  color: rgba(255,255,255,.88);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 14px 16px;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
nav > ul > li > a:hover,
nav > ul > li > a.active,
nav > ul > li:hover > a {
  background: var(--gold);
  color: var(--navy);
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  border-top: 3px solid var(--gold);
  z-index: 1000;
}
nav > ul > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-mid);
  transition: background .15s, color .15s, padding-left .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--gray-light); color: var(--gold); padding-left: 26px; }

/* ============================================================
   BOTONES REUTILIZABLES
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all .22s;
  cursor: pointer;
  border: none;
}
.btn-gold  { background: var(--gold); color: var(--navy); }
.btn-gold:hover  { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200,164,53,.35); }
.btn-navy  { background: var(--navy); color: var(--white); }
.btn-navy:hover  { background: var(--navy-mid); transform: translateY(-2px); }
.btn-outline-navy { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.7); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* ============================================================
   PAGE HERO (encabezado interior de páginas)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 72px 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(200,164,53,.1);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(200,164,53,.06);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 17px;
  line-height: 1.7;
  opacity: .85;
  max-width: 580px;
}
.page-hero .gold-line {
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 20px 0;
}

/* ============================================================
   SECCIÓN GENÉRICA
   ============================================================ */
.section {
  padding: var(--section-v) var(--section-h);
}
.section-alt { background: var(--gray-light); }
.section-dark { background: var(--navy); color: var(--white); }
.section-gold { background: var(--gold-pale); }

.section-header { margin-bottom: 48px; }
.section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.section-label.dark { color: var(--gold-light); }
.section-title {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 52px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title.white { color: var(--white); }
.section-title.white::after { background: var(--gold-light); }
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-desc {
  font-size: 16px;
  color: var(--gray-text);
  max-width: 640px;
  line-height: 1.75;
  margin-top: 4px;
}
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 12px auto 0; }

/* ============================================================
   CARDS GENÉRICAS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: transform .28s, box-shadow .28s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.13);
}
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-body { padding: 24px; }
.card-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.card-text { font-size: 14px; color: var(--gray-text); line-height: 1.65; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color .2s, gap .2s;
}
.card-link:hover { color: var(--gold); gap: 9px; }

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-align-center { align-items: center; }

/* ============================================================
   ANIMACIONES DE SCROLL
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.72);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 60px 44px;
}
.footer-brand .logo-name { color: var(--white); font-size: 20px; margin-bottom: 4px; }
.footer-brand .logo-sub { margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.75; opacity: .78; margin-bottom: 20px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13px; align-items: flex-start; line-height: 1.5; }
.footer-contact-icon { color: var(--gold); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.09);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
  transition: background .2s, transform .2s;
}
.social-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,164,53,.22);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,.58); font-size: 13px; transition: color .2s, padding-left .2s; display: block; }
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom {
  background: #060e1d;
  text-align: center;
  padding: 16px 60px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  color: rgba(255,255,255,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --section-h: 36px; }
  .top-bar, header, nav > ul, .footer-main, .footer-bottom { padding-left: 28px; padding-right: 28px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-v: 52px; --section-h: 20px; }
  .top-bar { padding: 6px 16px; }
  header { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  nav > ul { padding: 0 8px; }
  nav > ul > li > a { padding: 11px 10px; font-size: 11px; }
  .page-hero { padding: 48px 20px; }
  .page-hero h1 { font-size: 30px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; padding: 40px 20px; gap: 28px; }
  .footer-bottom { padding: 14px 20px; }
}
.logo-container {
    display: flex;
    align-items: center; /* centra verticalmente */
    gap: 12px; /* espacio entre logo y texto */
    width: 50px; /* ajusta tamaño */
    height: auto;
}
.esp-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.esp-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.noticias-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.noticias-desc {
  max-width: 680px;
  margin-top: 10px;
}

.noticias-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
}

.noticia-link-block {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.noticia-link-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.noticia-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b68b2c;
}

.card-title {
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.card-text {
  margin-bottom: 18px;
  line-height: 1.65;
  color: #4f5b6a;
}

.card-link {
  font-weight: 700;
  color: #16325c;
}

.noticias-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.noticia-sm {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.noticia-sm:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
}

.noticia-sm-img {
  width: 110px;
  height: 95px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.noticia-sm-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.noticia-sm-cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b68b2c;
}

.noticia-sm-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
  color: #172b4d;
}

.noticia-sm-date {
  font-size: 0.88rem;
  color: #6c7887;
}

.about-grid {
  gap: 72px;
}

.about-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eef3fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feat-text h5 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #172b4d;
}

.feat-text p {
  margin: 0;
  color: #5f6b7a;
  line-height: 1.55;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.about-stat {
  min-width: 120px;
  background: #f7f9fc;
  border-radius: 16px;
  padding: 16px 18px;
}

.about-stat strong {
  display: block;
  font-size: 1.5rem;
  color: #16325c;
}

.about-stat span {
  font-size: 0.92rem;
  color: #5f6b7a;
}

.about-btn {
  margin-top: 24px;
}

@media (max-width: 992px) {
  .noticias-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .about-img {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .noticia-img {
    height: 220px;
  }

  .noticia-sm {
    flex-direction: column;
    align-items: flex-start;
  }

  .noticia-sm-img {
    width: 100%;
    height: 180px;
  }

  .card-title {
    font-size: 1.35rem;
  }

  .about-img {
    height: 280px;
  }
}

/* ============================================================
   FOOTER NUEVO — Dos niveles con banda dorada
   ============================================================ */
.footer-new { background: #0f1d35; }
.footer-new .footer-main { display: block; padding: 0; gap: 0; }

.fn-band { background: var(--gold); height: 4px; }

.fn-top { background: #162847; border-bottom: 1px solid rgba(255,255,255,.06); margin: 0; }
.footer-new * { margin-top: 0; }
.fn-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 60px;
}
.fn-top-left { display: flex; align-items: center; gap: 14px; }
.fn-logo-img { width: 42px; height: 42px; object-fit: contain; }
.fn-name { color: #fff; font-family: var(--font-ui); font-size: 15px; font-weight: 700; }
.fn-sub { color: rgba(255,255,255,.35); font-family: var(--font-ui); font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.fn-socials { display: flex; gap: 8px; }
.fn-sb {
  height: 32px; padding: 0 14px;
  background: rgba(255,255,255,.07); border-radius: 5px;
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.6); font-family: var(--font-ui); font-size: 10.5px; font-weight: 700;
  transition: background .2s, color .2s;
}
.fn-sb:hover { background: var(--gold); color: var(--navy); }
.fn-sb b { color: var(--gold); font-size: 13px; }
.fn-sb:hover b { color: var(--navy); }

.fn-main {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px; padding: 32px 60px 28px;
}
.fn-col-title {
  color: rgba(255,255,255,.9); font-family: var(--font-ui);
  font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  margin-bottom: 18px;
}
.fn-ci {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px;
}
.fn-ci-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  background: rgba(200,164,53,.15); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.fn-ci-text { font-family: var(--font-ui); font-size: 11.5px; color: rgba(255,255,255,.5); line-height: 1.5; }
.fn-ci-text strong { display: block; color: rgba(255,255,255,.85); font-size: 12.5px; margin-bottom: 1px; }
.fn-links { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.fn-links li { display: flex; align-items: center; gap: 8px; }
.fn-links li::before { content: ''; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.fn-links li a { color: rgba(255,255,255,.5); font-family: var(--font-ui); font-size: 12.5px; transition: color .2s; }
.fn-links li a:hover { color: var(--gold-light); }

.fn-bottom {
  background: #060e1d; padding: 14px 60px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.fn-bottom span { color: rgba(255,255,255,.22); font-family: var(--font-ui); font-size: 11px; }
.fn-bottom a { color: var(--gold); }

@media(max-width:900px) {
  .fn-top-inner { padding: 14px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .fn-main { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; }
  .fn-bottom { padding: 12px 20px; flex-direction: column; text-align: center; }
}
