:root{
  --primary:#0C1F72;           /* Azul Emporio */
  --primary2:#2E4FA3;          /* Azul medio */
  --accent:#ECD5B3;            /* Dorado */
  --bg:#F6F8FF;                /* Fondo claro */
  --surface:#FFFFFF;           /* Tarjetas / superficies */
  --text:#141A2A;              /* Texto principal */
  --muted:#5B657A;             /* Texto secundario */
  --border:rgba(12,31,114,.14);

  --shadow-lg: 0 22px 55px rgba(0,0,0,.18);
  --shadow-md: 0 14px 28px rgba(0,0,0,.10);
  --shadow-sm: 0 10px 22px rgba(0,0,0,.08);

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  font-family:'Keep Calm','Segoe UI',Roboto,sans-serif;
  margin:0;
  line-height:1.6;
  background:var(--bg);
  color:var(--text);
}

.container{ width:min(1100px, 92%); margin:auto; }

/* =========================
   HERO (1-2-1 pro)
========================= */
.hero{
  padding: 86px 0 66px;
  text-align:center;
  color:#fff;
  position:relative;
  overflow:hidden;

  /* 1-2-1: claro (arriba) - azul (centro) - claro (abajo) */
  background:
    radial-gradient(900px 340px at 50% 8%, rgba(236,213,179,.30) 0%, rgba(236,213,179,0) 62%),
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #f2f5ff 34%,
      #2e4fa3 34%,
      #355fc2 78%,
      #f2f5ff 78%,
      #ffffff 100%
    );
}

/* Brillo de estadio muy sutil */
.hero::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(700px 240px at 18% 44%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 64%),
    radial-gradient(700px 240px at 82% 44%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 64%);
  pointer-events:none;
  filter: blur(2px);
}

.hero-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  position:relative; /* encima de overlays */
  z-index:1;
}

/* =========================
   LOGO (más grande + halo)
========================= */
.logo-box{
  background:#ffffff;
  border-radius: var(--radius-xl);
  padding: 34px 44px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-lg);
  margin-top: 6px;
  margin-bottom: 4px;
  position:relative;
  overflow:visible;

  /* anim */
  animation: softPop .65s var(--ease) both;
}

/* Halo pro (dorado + azul, muy sutil) */
.logo-box::before{
  content:"";
  position:absolute;
  inset:-26px;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(circle at 50% 40%, rgba(236,213,179,.34) 0%, rgba(255,255,255,.18) 28%, rgba(255,255,255,0) 62%),
    radial-gradient(circle at 50% 70%, rgba(46,79,163,.18) 0%, rgba(46,79,163,0) 62%);
  filter: blur(10px);
  z-index:-1;
}

.logo-img{
  /* “doble” pero controlado: grande en desktop, no rompe en móvil */
  height: clamp(220px, 18vw, 380px);
  width:auto;
  display:block;
  image-rendering:auto;
}

.tagline{
  margin: 10px 0 0;
  font-size: clamp(2.0rem, 3.2vw, 3.0rem);
  letter-spacing: 1px;
  line-height:1.05;
  color:#fff;
  text-shadow:0 12px 34px rgba(0,0,0,.25);

  animation: fadeUp .60s var(--ease) both;
  animation-delay:.10s;
}

.subtitle{
  margin:0;
  max-width: 860px;
  font-size: clamp(.98rem, 1.25vw, 1.10rem);
  color:rgba(255,255,255,.92);

  animation: fadeUp .60s var(--ease) both;
  animation-delay:.18s;
}

/* =========================
   Botones de sedes
========================= */
.sedes-quick{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:18px;
  margin-top:14px;

  animation: fadeUp .60s var(--ease) both;
  animation-delay:.26s;
}

.sede-pill{
  min-width: 280px;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  color: var(--primary);
  text-decoration:none;
  font-weight: 900;
  letter-spacing: .35px;
  border: 1px solid rgba(12,31,114,.18);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}

.sede-pill:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(0,0,0,.16);
  background:#fff;
}

.sede-pill:focus-visible{
  outline: 3px solid rgba(236,213,179,.75);
  outline-offset: 3px;
}

/* =========================
   Botones generales (CTA)
========================= */
.hero-btns{
  margin-top: 8px;

  animation: fadeUp .60s var(--ease) both;
  animation-delay:.34s;
}

.btn{
  padding: 12px 26px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  display:inline-block;
  text-transform:uppercase;
  font-size: .82rem;
  letter-spacing: .6px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
  will-change: transform;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.btn:focus-visible{
  outline: 3px solid rgba(236,213,179,.75);
  outline-offset: 3px;
}

.btn-primary{
  background: var(--accent);
  color: var(--primary);
  border: 1px solid rgba(236,213,179,.72);
}

.btn-primary:hover{
  background: rgba(236,213,179,.92);
}

/* Secundario tipo “glass” para que SIEMPRE sea visible */
.btn-secondary{
  margin-left: 10px;
  background: rgba(255,255,255,.16);
  color:#fff;
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.65);
}

/* Si algún día lo fuerzas sobre fondo claro */
.hero .btn-secondary.on-light{
  background:#ffffff;
  color:var(--primary);
  border:1px solid rgba(12,31,114,.22);
}

/* =========================
   Secciones
========================= */
.intro{
  padding: 58px 0 10px;
}

.intro h2{
  margin:0 0 10px;
  color:var(--primary);
  letter-spacing:.2px;
}

.intro p{
  margin:0;
  color:var(--muted);
}

.sedes{
  padding: 42px 0 10px;
}

.sedes h2{
  margin:0 0 6px;
  color:var(--primary);
}

/* =========================
   Cards
========================= */
.grid-sedes{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:24px;
  margin-top:24px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(12,31,114,.22);
}

.card-img{
  height: 210px;

  /* Para LOGOS (evita “gigante” y recorte) */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color:#ffffff;
}

.card-body{
  padding:22px;
  text-align:center;
}

.card-body h3{
  margin:0 0 6px;
  color:var(--primary);
}

.card-body p{
  margin:0 0 14px;
  color:var(--muted);
}

.btn-card{
  background: var(--primary);
  color:#fff;
  border:1px solid rgba(12,31,114,.25);
  border-radius: 12px;
}

.btn-card:hover{
  background:#0a1a61;
}

/* =========================
   Valores
========================= */
.bg-alt{
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(12,31,114,.05) 0%, rgba(236,213,179,.10) 100%);
}

.valores{
  padding: 58px 0 12px;
}

.vision-mision{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap:18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(0,0,0,.05);
}

.vision-mision h3{
  margin:0 0 6px;
  color:var(--primary);
}

.vision-mision p{
  margin:0;
  color:var(--muted);
}

.valores-grid{
  display:flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap:16px;
  margin-top: 28px;
  padding: 24px 0 6px;
  border-top: 1px solid rgba(12,31,114,.12);
}

.valores-grid span{
  font-weight: 950;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================
   Footer
========================= */
footer{
  padding: 30px 0;
  text-align:center;
  font-size: .85rem;
  color: rgba(26,31,43,.75);
}

/* =========================
   Animaciones
========================= */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(12px); }
  to{ opacity:1; transform: translateY(0); }
}

@keyframes softPop{
  from{ opacity:0; transform: translateY(10px) scale(.985); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce){
  .logo-box, .tagline, .subtitle, .sedes-quick, .hero-btns{
    animation: none !important;
  }
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px){
  .hero{ padding: 70px 0 56px; }
  .btn-secondary{ margin-left: 0; margin-top: 10px; display:inline-block; }
  .sede-pill{ min-width: 240px; }
}

@media (max-width: 520px){
  .hero{ padding: 60px 0 48px; }
  .tagline{ letter-spacing:.6px; }
  .logo-box{ padding: 26px 28px; border-radius: 22px; }
}
