/* =========================================================
   U.E.C. Discípulos de Emaús — hoja de estilos
   Paleta tomada del escudo: azul real, azul marino y dorado
   ========================================================= */
:root {
  --royal: #004cae;        /* escudo */
  --royal-dark: #003a87;
  --navy: #1b3c69;         /* laureles y cinta */
  --navy-deep: #12294a;
  --gold: #ffdf56;         /* estrella y nombre */
  --gold-deep: #f0c43a;
  --sky: #d6e4f6;          /* tono claro armónico */
  --sky-soft: #eaf1fb;
  --cream: #fbf7e6;
  --ink: #1d2838;
  --white: #ffffff;

  --font-head: "Figtree", "Google Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-tag: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;

  --w-content: 1280px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(10, 30, 60, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--w-content); margin: 0 auto; padding: 0 40px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy); padding: 8px 14px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ico { width: 1em; height: 1em; flex: none; }
.statement-grid > *, .tab-panel > *, .level-grid > *, .admissions-grid > *, .location-grid > *, .insta-head > *, .insta-track-wrap > * { min-width: 0; }

/* ---------- Botones tipo etiqueta (estilo inclinado) ---------- */
.btn-tag {
  display: inline-block;
  font-family: var(--font-tag);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1;
  padding: 12px 18px 11px;
  transform: rotate(-2deg);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-tag:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.btn-tag--gold { background: var(--gold); color: var(--navy); }
.btn-tag--royal { background: var(--royal); color: var(--white); }
.btn-tag--sky { background: var(--sky); color: var(--navy); }

.btn-small {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 2px;
  transition: background .2s ease, transform .2s ease;
}
.btn-small:hover { background: var(--royal); transform: translateY(-1px); }
.btn-small--light { background: var(--gold); color: var(--navy); }
.btn-small--light:hover { background: var(--white); color: var(--navy); }

/* =================== ENCABEZADO =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--royal);
  color: var(--white);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 20, 60, .3); }
.utility-bar { border-bottom: 1px solid rgba(255, 255, 255, .15); font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.utility-nav { display: flex; justify-content: center; align-items: center; gap: 28px; height: 40px; }
.utility-nav a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; opacity: .92; }
.utility-nav a:hover { opacity: 1; color: var(--gold); }
.utility-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .3); }

.header-main { display: flex; align-items: center; gap: 32px; height: 92px; transition: height .25s ease; }
.site-header.is-scrolled .header-main { height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 70px;
  height: 70px;
  padding: 4px 5px 6px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold);
  overflow: hidden;
  transition: width .25s ease, height .25s ease, padding .25s ease;
}
.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.site-header.is-scrolled .brand-badge { width: 58px; height: 58px; padding: 3px 4px 5px; }
.brand-text { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .14em; color: var(--gold); margin-bottom: 3px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: 6px; }
.main-nav li { position: relative; }
.main-nav a, .nav-toggle {
  display: block;
  background: none; border: 0;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 3px;
}
.nav-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); transition: transform .2s; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-2px) rotate(180deg); }
.main-nav a:hover, .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { color: var(--gold); }
.subnav {
  position: absolute; left: 50%; top: calc(100% + 8px);
  min-width: 230px;
  transform: translate(-50%, 6px);
  background: var(--white);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav a { color: var(--navy); padding: 10px 20px; font-size: 15px; }
.subnav a:hover { background: var(--sky-soft); color: var(--royal); }

.header-cta { flex: none; }

.menu-toggle { display: none; width: 46px; height: 46px; background: transparent; border: 2px solid rgba(255, 255, 255, .5); border-radius: 4px; padding: 0; position: relative; margin-left: auto; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { background: var(--navy); padding: 12px 24px 28px; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-menu nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-menu .btn-tag { margin: 24px 0 18px; }
.mobile-utility { display: grid; gap: 8px; font-size: 14px; opacity: .9; }
.mobile-utility a { text-decoration: none; word-break: break-all; }

/* =================== HERO =================== */
/* continuación del fondo azul del encabezado que se funde con el celeste */
.hero { position: relative; background: linear-gradient(var(--royal) 0, var(--royal) 45%, var(--sky) 100%); padding-top: 4px; }
.hero-frame {
  position: relative;
  aspect-ratio: 1280 / 640;
  min-height: 380px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 223, 86, .28), transparent 38%),
    radial-gradient(circle at 15% 85%, rgba(0, 76, 174, .9), transparent 55%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, var(--royal) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-frame::after { /* textura sutil */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-art { position: absolute; inset: 0; }
.hero-laurel { position: absolute; width: min(58%, 640px); left: 50%; top: 50%; transform: translate(-50%, -46%); color: rgba(255, 255, 255, .07); }
.hero-crest {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: min(30%, 360px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px 20px;
  background: var(--white); border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 223, 86, .9), 0 30px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
.hero-crest img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.star { position: absolute; width: 26px; height: 26px; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: twinkle 3.5s ease-in-out infinite; }
.star.s1 { left: 9%; top: 16%; }
.star.s2 { left: 22%; top: 72%; width: 16px; height: 16px; animation-delay: 1.2s; }
.star.s3 { left: 58%; top: 12%; width: 18px; height: 18px; animation-delay: 2.1s; }
.hero-title {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .35em; flex-wrap: wrap; justify-content: center;
  margin: 0 0 0 -18%;
  font-family: var(--font-tag);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}
.hero-word-wrap { display: inline-block; background: var(--gold); color: var(--navy); padding: .12em .32em .08em; transform: rotate(-3deg); box-shadow: 0 8px 0 rgba(0, 0, 0, .2); text-shadow: none; }
.hero-word { display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.hero-word.is-out { opacity: 0; transform: translateY(14px); }
.hero-pause { position: absolute; left: 20px; bottom: 20px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 14px; }
.hero-frame.is-paused * { animation-play-state: paused !important; }

@keyframes float { 50% { transform: translateY(calc(-50% - 12px)); } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8) rotate(20deg); } }

/* =================== DECLARACIÓN =================== */
.statement { background: var(--sky); padding: 110px 0 100px; }
.statement-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; padding-left: 90px; padding-right: 90px; }
.statement-title { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--navy); margin: 0; }
.statement-body { color: var(--navy); font-size: 1rem; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 90px; }
.level-card { position: relative; display: block; text-decoration: none; color: var(--white); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); transition: transform .3s ease; }
.level-card:hover { transform: translateY(-6px); }
.level-visual { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 25%; transition: transform .5s ease; }
.level-card:hover .level-visual { transform: scale(1.05); }
.level-card--inicial { background: linear-gradient(160deg, #2a6fd0, var(--royal-dark)); }
.level-card--primaria { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.level-card--admisiones { background: linear-gradient(160deg, #ffe680, var(--gold-deep)); color: var(--navy); }
.level-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 26px; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.level-card--admisiones .level-info { background: linear-gradient(transparent, rgba(255, 255, 255, .5)); }
.level-info h3 { font-size: 1.6rem; font-weight: 600; margin-bottom: 2px; }
.level-info p { margin: 0; font-size: .95rem; opacity: .95; }
.big-ico { width: 42%; height: 42%; color: var(--navy); }

.blocks { display: flex; gap: 8px; }
.blocks b { display: grid; place-items: center; width: 70px; height: 70px; font-family: var(--font-tag); font-size: 2.6rem; color: var(--navy); background: var(--gold); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.blocks b:nth-child(2) { background: var(--white); color: var(--royal); transform: translateY(-18px) rotate(6deg); }
.blocks b:nth-child(3) { background: var(--sky); transform: rotate(-6deg); }
.grades { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; }
.grades b { display: grid; place-items: center; height: 64px; font-family: var(--font-tag); font-size: 1.7rem; border: 2px solid rgba(255, 255, 255, .5); color: var(--white); }
.grades b:nth-child(odd) { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* =================== AQUÍ PARA =================== */
.here-for { background: var(--royal); color: var(--white); padding: 100px 0 110px; position: relative; overflow: hidden; }
.here-for::before { content: ""; position: absolute; width: 700px; height: 700px; left: -300px; top: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); box-shadow: 0 0 0 80px rgba(255, 255, 255, .02); }
.display { font-family: var(--font-tag); font-weight: 800; text-transform: uppercase; text-align: center; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.05; color: var(--navy); margin-bottom: 24px; }
.display--light { color: var(--sky); }
.tag-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin-bottom: 70px; }
.tag-tab { font-family: var(--font-tag); font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.6rem); text-transform: uppercase; letter-spacing: .02em; padding: 8px 18px 6px; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.tag-tab:nth-child(odd) { transform: rotate(-2deg); }
.tag-tab:nth-child(even) { transform: rotate(1.5deg); }
.tag-tab:hover { transform: rotate(0) translateY(-2px); }
.tag-tab[aria-selected="true"] { box-shadow: 0 0 0 3px var(--white), 0 6px 0 3px rgba(0, 0, 0, .2); }
.tag-tab[aria-selected="true"]::after { content: " ▾"; font-size: .7em; }
.tag-tab--gold { background: var(--gold); color: var(--navy); }
.tag-tab--outline { background: transparent; color: var(--white); border-color: var(--white); }
.tag-tab--white { background: var(--white); color: var(--royal); }
.tag-tab--navy { background: var(--navy); color: var(--white); }

.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1100px; margin: 0 auto; animation: fadeUp .45s ease; }
.tab-panel[hidden] { display: none; }
.tab-figure { margin: 0; background: var(--white); padding: 16px; transform: rotate(-3deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: 10px solid var(--gold); }
.tab-figure img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.tab-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--white); }
.tab-copy p { font-size: 1.05rem; opacity: .95; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1100px; margin: 90px auto 0; padding-left: 50px; }
.stats strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1.1; color: var(--gold); }
.stats span { font-family: var(--font-head); font-weight: 500; font-size: 1rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =================== NIVELES =================== */
.level-section { background: var(--cream); padding: 110px 0; }
.level-section--alt { background: var(--sky-soft); }
.level-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.level-grid--reverse .level-panel { order: 2; }
.level-panel { position: relative; aspect-ratio: 1 / 1; max-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; box-shadow: var(--shadow); overflow: hidden; }
.level-panel::before { content: ""; position: absolute; inset: 22px; border: 2px dashed rgba(255, 255, 255, .3); pointer-events: none; }
.level-panel--inicial { background: radial-gradient(circle at 30% 20%, #2f78da, var(--royal) 50%, var(--royal-dark)); }
.level-panel--primaria { background: radial-gradient(circle at 70% 20%, #2a5490, var(--navy) 50%, var(--navy-deep)); }
.blocks--lg b { width: 110px; height: 110px; font-size: 4rem; }
.grades--lg { grid-template-columns: repeat(3, 100px); gap: 14px; }
.grades--lg b { height: 100px; font-size: 2.6rem; }
.panel-caption { font-family: var(--font-tag); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 1.3rem; color: var(--white); }
.eyebrow { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--royal); margin-bottom: 10px; }
.level-copy h2 { font-size: clamp(2.2rem, 3.6vw, 3rem); color: var(--navy); margin-bottom: 14px; }
.lead { font-family: var(--font-head); font-size: 1.3rem; color: var(--royal); line-height: 1.4; }
.program-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.program-pills li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--royal); color: var(--white);
  font-family: var(--font-tag); font-weight: 800; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 14px 5px; border-radius: 3px;
  box-shadow: 0 3px 0 var(--navy);
}
.program-pills li:nth-child(2) { background: var(--gold); color: var(--navy); box-shadow: 0 3px 0 var(--gold-deep); }
.program-pills li:nth-child(3) { background: var(--navy); color: var(--white); box-shadow: 0 3px 0 var(--navy-deep); }
.check-list { display: grid; gap: 10px; margin: 22px 0 30px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231b3c69' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.grade-chips { display: grid; gap: 14px; margin: 24px 0 30px; }
.grade-chips div { background: var(--white); border-left: 6px solid var(--gold); padding: 14px 18px; box-shadow: 0 4px 14px rgba(27, 60, 105, .08); }
.grade-chips strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.grade-chips span { font-size: .95rem; }

/* =================== ADMISIONES =================== */
.admissions { background: var(--gold); padding: 110px 0; color: var(--navy); position: relative; overflow-x: clip; }
.admissions-head { max-width: 760px; margin: 0 auto 60px; text-align: center; font-size: 1.1rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; margin-bottom: 60px; }
.steps li { background: var(--white); padding: 34px 24px 26px; position: relative; box-shadow: 0 8px 0 var(--gold-deep); }
.steps li:nth-child(odd) { transform: rotate(-1deg); }
.steps li:nth-child(even) { transform: rotate(1deg); }
.step-num { position: absolute; top: -22px; left: 22px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--royal); color: var(--white); font-family: var(--font-tag); font-weight: 800; font-size: 1.6rem; border-radius: 50%; }
.steps h3 { font-size: 1.25rem; font-weight: 600; margin: 6px 0 6px; }
.steps p { margin: 0; font-size: .97rem; }
.admissions-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; }
.req-card, .contact-card { padding: 40px; }
.req-card { background: var(--cream); }
.req-card h3, .contact-card h3 { font-size: 1.6rem; font-weight: 600; }
.check-list--dark li::before { background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffdf56' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.note { font-size: .92rem; font-style: italic; margin: 0; }
.contact-card { background: var(--navy); color: var(--white); }
.wa-button { display: flex; align-items: center; gap: 16px; background: #25d366; color: #0b3d1f; text-decoration: none; padding: 18px 22px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.2; border-radius: 6px; margin: 18px 0 28px; box-shadow: 0 6px 0 #1a9c4b; transition: transform .2s ease, box-shadow .2s ease; }
.wa-button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #1a9c4b; }
.wa-button .ico { font-size: 2.2rem; color: var(--white); }
.wa-button small { display: block; font-weight: 600; font-size: .95rem; opacity: .85; margin-top: 3px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list li > *:not(.ico) { min-width: 0; overflow-wrap: anywhere; }
.contact-list .ico { font-size: 1.25rem; margin-top: 2px; color: var(--gold); }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 223, 86, .6); word-break: break-word; }
.contact-list a:hover { color: var(--gold); }

/* =================== INSTAGRAM =================== */
.insta { background: var(--navy); color: var(--white); padding: 110px 0 120px; overflow: hidden; }
.insta-head { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: end; margin-bottom: 50px; }
.insta-intro p { max-width: 300px; font-size: .95rem; }
.insta-title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin: 0; }
.insta-title .nowrap { color: var(--gold); }
.insta-track-wrap { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 20px; align-items: center; }
.carousel-controls { display: grid; gap: 14px; justify-items: center; }
.circle-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--white); background: transparent; color: var(--white); display: grid; place-items: center; font-size: 16px; transition: background .2s, color .2s; }
.circle-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.insta-track { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 24px; margin-right: calc(-1 * max(40px, (100vw - var(--w-content)) / 2 + 40px)); scrollbar-width: none; }
.insta-track::-webkit-scrollbar { display: none; }
.insta-card { scroll-snap-align: start; background: var(--cream); color: var(--navy); text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); transition: transform .25s ease; }
.insta-card:hover { transform: translateY(-6px); }
.insta-media { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.insta-media .ico { position: absolute; top: 12px; right: 12px; font-size: 22px; color: var(--white); opacity: .9; }
.insta-media img { width: 78%; height: 78%; object-fit: contain; background: var(--white); padding: 8px; border-radius: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.insta-media.bg-1 { background: linear-gradient(135deg, var(--royal), var(--navy)); }
.insta-media.bg-2 { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.insta-media.bg-3 { background: linear-gradient(135deg, #2f78da, var(--royal-dark)); }
.insta-media.bg-4 { background: linear-gradient(135deg, var(--sky), #a9c5ec); }
.insta-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.insta-body .tag { font-size: .8rem; color: var(--royal); font-weight: 600; margin-bottom: 6px; }
.insta-body h3 { font-size: 1.12rem; font-weight: 600; color: var(--navy); margin-bottom: 18px; }
.insta-more { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(27, 60, 105, .15); display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 600; }
.insta-more .ico { font-size: 18px; }
.insta-embed { scroll-snap-align: start; background: var(--white); border-radius: 4px; overflow: hidden; }
.insta-embed blockquote.instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
.insta-track.has-embeds { grid-auto-columns: 340px; align-items: start; }

/* =================== LEMA =================== */
.impact { background: var(--cream); padding: 110px 0 170px; text-align: center; }
.display--impact { color: var(--royal); }
.hl { display: inline-block; background: var(--sky); color: var(--navy); padding: 0 .25em; transform: rotate(-2deg); }
.quote { max-width: 640px; margin: 70px auto 0; text-align: left; }
.quote p { font-family: var(--font-head); font-size: clamp(1.6rem, 2.8vw, 2.3rem); color: var(--navy); line-height: 1.3; padding-bottom: 28px; margin-bottom: 22px; border-bottom: 1px solid rgba(27, 60, 105, .2); }
.quote footer strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; color: var(--royal); }
.quote footer span { color: var(--navy); font-size: .95rem; }

/* =================== UBICACIÓN =================== */
.location { background: var(--sky); padding: 110px 0 150px; overflow-x: clip; }
.location-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.location-copy h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--navy); }
.location .contact-list { margin: 26px 0 32px; color: var(--navy); }
.location .contact-list .ico { color: var(--royal); }
.location .contact-list a { text-decoration-color: rgba(0, 76, 174, .5); }
.location .contact-list a:hover { color: var(--royal); }
.map-frame { background: var(--white); padding: 10px; box-shadow: var(--shadow); transform: rotate(1deg); }
.map-frame iframe { display: block; width: 100%; height: 440px; border: 0; }

/* =================== PIE DE PÁGINA =================== */
.site-footer { background: var(--royal); color: var(--white); position: relative; padding-bottom: 40px; }
.footer-tags { display: flex; justify-content: center; gap: 20px; transform: translateY(-50%); flex-wrap: wrap; }
.footer-tags .btn-tag { font-size: clamp(1.6rem, 3vw, 2.6rem); padding: 14px 30px 12px; }
.footer-tags .btn-tag:nth-child(2) { transform: rotate(1deg); }
.footer-tags .btn-tag:nth-child(2):hover { transform: rotate(0) translateY(-2px); }
.footer-main { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 40px; align-items: center; padding-top: 30px; padding-bottom: 40px; position: relative; }
.footer-main::after { content: ""; position: absolute; left: 40px; right: 40px; bottom: 0; height: 1px; background: rgba(255, 255, 255, .2); }
.footer-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-badge--lg { width: 104px; height: 104px; padding: 6px 8px 10px; box-shadow: 0 0 0 4px var(--gold); }
.footer-brand .brand-text { font-size: 1.35rem; }
.footer-address { font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-align: center; }
.footer-contact { display: grid; gap: 4px; justify-items: center; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.footer-contact a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .5); word-break: break-all; }
.footer-contact a:hover { color: var(--gold); }
.footer-social { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--royal); font-size: 22px; transition: background .2s, color .2s; }
.footer-social:hover { background: var(--gold); color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer-links a { font-family: var(--font-head); font-weight: 600; font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.copyright { margin: 0; font-size: .85rem; opacity: .85; }

/* Botón flotante WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; font-size: 32px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* Animación de aparición al desplazarse */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =================== RESPONSIVO =================== */
@media (max-width: 1180px) {
  .main-nav a, .nav-toggle { padding: 10px 10px; font-size: 14px; }
  .header-main { gap: 18px; }
  .statement-grid { padding-left: 0; padding-right: 0; gap: 50px; }
}

@media (max-width: 1020px) {
  .utility-bar, .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header-main, .site-header.is-scrolled .header-main { height: 80px; }
  .site-header .brand-badge, .site-header.is-scrolled .brand-badge { width: 58px; height: 58px; padding: 3px 4px 5px; }
  .brand-badge--lg { width: 84px; height: 84px; padding: 5px 6px 8px; }
  html { scroll-padding-top: 90px; }
  .container { padding: 0 24px; }
  .statement { padding: 70px 0; }
  .statement-grid { grid-template-columns: 1fr; gap: 24px; }
  .levels { grid-template-columns: repeat(2, 1fr); margin-top: 60px; }
  .tab-panel, .level-grid, .location-grid, .admissions-grid { grid-template-columns: 1fr; gap: 50px; }
  .level-grid--reverse .level-panel { order: 0; }
  .level-panel { max-height: 440px; aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .insta-head { grid-template-columns: 1fr; gap: 24px; }
  .insta-head .insta-title { order: -1; }
  .stats { padding-left: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; justify-items: start; }
  .footer-address, .footer-contact { text-align: left; justify-items: start; }
  .footer-main::after { left: 24px; right: 24px; }
  .here-for, .level-section, .admissions, .insta { padding: 80px 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-main, .site-header.is-scrolled .header-main { height: 76px; gap: 14px; }
  .site-header .brand-badge, .site-header.is-scrolled .brand-badge { width: 54px; height: 54px; padding: 3px 4px 5px; }
  .brand-text { font-size: 1.04rem; }
  html { scroll-padding-top: 84px; }

  .hero-frame { aspect-ratio: auto; min-height: 440px; flex-direction: column; justify-content: flex-end; padding: 224px 20px 68px; }
  .hero-crest { right: 50%; top: 32px; transform: translateX(50%); width: 176px; padding: 8px 10px 14px; animation: none; }
  .hero-title { margin: 0; max-width: 100%; flex-direction: column; gap: .22em; font-size: clamp(2.1rem, 7.5vw, 3rem); text-align: center; }
  .hero-word-wrap { max-width: 100%; }
  .hero-laurel { width: 105%; }
  .hero-pause { left: 14px; bottom: 14px; }

  .levels { grid-template-columns: 1fr; }
  .level-card { aspect-ratio: 4 / 3.2; }
  .blocks b { width: 58px; height: 58px; font-size: 2.1rem; }
  .blocks--lg b { width: 76px; height: 76px; font-size: 2.8rem; }
  .grades--lg { grid-template-columns: repeat(3, 70px); }
  .grades--lg b { height: 70px; font-size: 1.9rem; }
  .level-panel { gap: 24px; max-height: 360px; }

  .tag-tabs { gap: 12px 14px; margin-bottom: 48px; }
  .tab-panel { gap: 36px; }
  .tab-figure { width: 100%; max-width: 440px; margin: 0 auto; padding: 14px; transform: rotate(-1.5deg); }
  .stats { grid-template-columns: 1fr; gap: 26px; margin-top: 56px; }

  .steps { grid-template-columns: 1fr; row-gap: 38px; }
  .steps li:nth-child(odd), .steps li:nth-child(even) { transform: none; }
  .req-card, .contact-card { padding: 28px 22px; }
  .wa-button { font-size: 1.02rem; padding: 16px; }

  .insta-track-wrap { grid-template-columns: 1fr; }
  .carousel-controls { order: 2; grid-auto-flow: column; justify-content: start; }
  .insta-track { grid-auto-columns: 76%; margin-right: -20px; padding-right: 20px; }
  .insta-track.has-embeds { grid-auto-columns: 86%; }

  .map-frame { transform: none; padding: 8px; }
  .map-frame iframe { height: 320px; }

  .footer-tags { gap: 12px; }
  .footer-tags .btn-tag { font-size: 1.45rem; padding: 12px 18px 10px; }
  .footer-main { grid-template-columns: 1fr; gap: 22px; }
  .footer-main::after { left: 20px; right: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 92px; }

  .impact { padding: 80px 0 110px; }
  .location { padding: 80px 0 120px; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; font-size: 27px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nowrap { white-space: normal; }
  .header-main, .site-header.is-scrolled .header-main { height: 68px; gap: 10px; }
  .brand { gap: 10px; min-width: 0; flex: 1 1 auto; }
  .site-header .brand-badge, .site-header.is-scrolled .brand-badge { width: 46px; height: 46px; padding: 2px 3px 4px; box-shadow: 0 0 0 2px var(--gold); }
  .brand-text { font-size: .92rem; line-height: 1.08; }
  .brand-text small { font-size: .56rem; letter-spacing: .1em; margin-bottom: 2px; }
  .menu-toggle { width: 42px; height: 42px; flex: none; }
  .menu-toggle span { left: 9px; right: 9px; }
  .menu-toggle span:nth-child(1) { top: 12px; }
  .menu-toggle span:nth-child(2) { top: 19px; }
  .menu-toggle span:nth-child(3) { top: 26px; }
  .mobile-menu { padding: 12px 16px 24px; }
  .mobile-menu .btn-tag { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; font-size: .98rem; }
  html { scroll-padding-top: 76px; }

  .hero-frame { min-height: 390px; padding: 186px 14px 60px; }
  .hero-crest { top: 24px; width: 146px; padding: 6px 8px 11px; box-shadow: 0 0 0 5px rgba(255, 223, 86, .9), 0 18px 36px rgba(0, 0, 0, .35); }
  .hero-title { font-size: clamp(1.75rem, 8.2vw, 2.35rem); gap: .18em; }
  .hero-word-wrap { padding: .12em .24em .08em; transform: rotate(-2deg); }
  .hero-pause { left: 12px; bottom: 12px; width: 32px; height: 32px; font-size: 13px; }

  .statement, .here-for, .level-section, .admissions, .insta { padding: 64px 0; }
  .statement-title { font-size: clamp(1.45rem, 6.2vw, 1.8rem); }
  .display { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .level-copy h2, .location-copy h2 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  .lead { font-size: 1.12rem; }
  .insta-title { font-size: clamp(1.38rem, 5.5vw, 1.7rem); }
  .quote { margin-top: 44px; }
  .quote p { font-size: clamp(1.3rem, 5.4vw, 1.65rem); }

  .tag-tabs { gap: 8px 10px; margin-bottom: 36px; }
  .tag-tab { font-size: 1.08rem; padding: 7px 13px 5px; }
  .tab-figure { padding: 10px; transform: none; border-bottom-width: 7px; }
  .level-panel { max-height: 290px; gap: 18px; }
  .level-panel::before { inset: 14px; }
  .blocks--lg b { width: 62px; height: 62px; font-size: 2.2rem; }
  .grades--lg { grid-template-columns: repeat(3, 58px); gap: 10px; }
  .grades--lg b { height: 58px; font-size: 1.6rem; }
  .panel-caption { font-size: 1.05rem; text-align: center; padding: 0 18px; }

  .req-card, .contact-card { padding: 24px 18px; }
  .wa-button { font-size: .95rem; padding: 14px; gap: 12px; }
  .wa-button .ico { font-size: 1.8rem; }
  .wa-button small { font-size: .86rem; }

  .insta-track { grid-auto-columns: 84%; margin-right: -16px; padding-right: 16px; gap: 16px; }
  .insta-track.has-embeds { grid-auto-columns: 90%; }

  .map-frame { padding: 6px; }
  .map-frame iframe { height: 270px; }

  .footer-tags { gap: 8px; }
  .footer-tags .btn-tag { font-size: 1.2rem; padding: 10px 14px 9px; }
  .brand-badge--lg { width: 72px; height: 72px; padding: 4px 5px 7px; }
  .footer-brand .brand-text { font-size: 1.12rem; }
  .footer-main::after { left: 16px; right: 16px; }
  .footer-links { gap: 8px 18px; }

  .impact { padding: 64px 0 96px; }
  .location { padding: 64px 0 104px; }
  .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; font-size: 25px; }
  @keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.4); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
