/* =========================================================
   Colegio Avanza — estilos
   Paleta del logo oficial: azul Avanza, celeste, verde y rojo.
   ========================================================= */
:root {
  --blue: #0944A7;
  --blue-700: #073785;
  --blue-900: #062A66;
  --blue-50: #E8F0FB;
  --sky: #0077D7;
  --sky-50: #E5F2FC;
  --green: #60C314;
  --green-600: #3F8F0A;
  --green-50: #EEF8E5;
  --coral: #FA050F;
  --coral-600: #D2000A;
  --coral-50: #FFEAEB;
  --cream: #FBF8F1;
  --ink: #15233F;
  --muted: #5A6578;
  --line: #E6E1D6;
  --white: #fff;
  --wa: #25D366;

  --font-head: "Poppins", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 34px;
  --shadow: 0 1px 2px rgba(21, 35, 63, .06), 0 10px 30px -12px rgba(21, 35, 63, .18);
  --shadow-lg: 0 30px 60px -25px rgba(13, 39, 82, .35);
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --sec: clamp(72px, 10vw, 128px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.025em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #06341A; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn--wa:hover { background: #1fc05b; }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -12px rgba(250, 5, 15, .9); }
.btn--coral:hover { background: var(--coral-600); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--blue-900); }
.btn--light:hover { background: var(--green); color: var(--blue-900); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(21, 35, 63, .4); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 196px; height: auto; overflow: visible; }
.footer .brand__logo { width: 210px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.nav a:not(.btn):hover { background: var(--blue-50); color: var(--blue); }
.nav__cta { margin-left: 8px; }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--blue-50); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--blue); transition: transform .25s, opacity .25s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Marcadores de foto ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r);
  background:
    linear-gradient(135deg, transparent 62%, rgba(96, 195, 20, .16) 62% 80%, transparent 80%),
    linear-gradient(225deg, transparent 72%, rgba(250, 5, 15, .12) 72%),
    linear-gradient(135deg, var(--blue-50), #D6E6F8);
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B4F9C' stroke-width='1.4' opacity='.35'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-8 8'/%3E%3C/svg%3E") center / 56px no-repeat;
}
.ph__tag {
  position: relative; margin: 14px; padding: 6px 12px; border-radius: 999px;
  max-width: calc(100% - 28px); background: rgba(255, 255, 255, .88); color: var(--blue-700); font-size: 13px; font-weight: 700; line-height: 1.3;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img { background: var(--blue-50); }
.ph.has-img::before, .ph.has-img .ph__tag { display: none; }
.ph.has-img img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.level:hover .ph img, .space:hover .ph img, .gallery .ph:hover img, .about__media:hover .ph img { transform: scale(1.06); }
.gallery .ph.is-zoomable { cursor: zoom-in; }
.gallery .ph.is-zoomable::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230944A7' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4.2-4.2M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s;
}
.gallery .ph.is-zoomable:hover::after, .gallery .ph.is-zoomable:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Portada ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -260px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 195, 20, .18), transparent 65%); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--blue); background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; margin-bottom: 24px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px rgba(96, 195, 20, .25); }

.hero__title { font-size: clamp(40px, 6vw, 76px); font-weight: 700; color: var(--blue-900); margin-bottom: 24px; }
.hl { position: relative; white-space: nowrap; isolation: isolate; }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; border-radius: 6px; z-index: -1; transform-origin: left center; animation: draw-line 1s cubic-bezier(.65, 0, .35, 1) .5s both; }
@keyframes draw-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hl--green { color: var(--green-600); }
.hl--green::after { background: rgba(96, 195, 20, .28); }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__chips li { position: relative; padding-left: 26px; font-weight: 700; font-size: 15px; color: var(--ink); }
.hero__chips li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero__art { position: relative; min-height: 520px; }
.ph--hero { align-items: flex-start; justify-content: flex-end; position: absolute; inset: 0 0 64px 56px; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; box-shadow: var(--shadow-lg); }
.ph--hero-sm { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border: 6px solid var(--cream); border-radius: var(--r); box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--green-50), #D6EFC2); }
.hero__badge {
  position: absolute; right: -8px; bottom: 28px; display: flex; align-items: center; gap: 12px;
  background: var(--blue); color: #fff; padding: 16px 20px; border-radius: 20px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__badge strong { font: 800 44px/1 var(--font-head); color: var(--green); }
.hero__badge span { font-size: 14px; line-height: 1.3; font-weight: 600; }
.hero__shape { position: absolute; pointer-events: none; }
.hero__shape--a { width: 64px; top: -14px; left: 18px; animation: float 7s ease-in-out infinite reverse; }
.hero__shape--b { width: 40px; top: 40%; right: -14px; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cifras ---------- */
.stats { background: var(--blue); color: #fff; position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 24px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .14); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 clamp(36px, 4vw, 52px)/1 var(--font-head); color: var(--green); margin-bottom: 8px; }
.stat > span { font-size: 15px; color: rgba(255, 255, 255, .85); }

/* ---------- Secciones ---------- */
.section { padding: var(--sec) 0; }
.section--tint { background: #fff; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; }
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: currentColor; }
.kicker--light { color: var(--green); }
.h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; color: var(--blue-900); margin-bottom: 22px; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .kicker { justify-content: center; }
.head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head__lead { font-size: 18px; color: var(--muted); }

/* ---------- Párrafos justificados ---------- */
.hero__lead, .about__copy > p:not(.kicker), .head__lead, .inclusion p:not(.kicker) {
  text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto;
}
.head--center .head__lead { text-align-last: center; }

/* ---------- Segunda casa ---------- */
.home { background: #fff; }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; transition: transform .25s, box-shadow .25s; }
.promise:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promise h3 { font-size: 19px; color: var(--blue-900); margin: 16px 0 8px; }
.promise p { margin: 0; font-size: 15.5px; color: var(--muted); }
.promise__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.promise__ic svg { width: 26px; height: 26px; }
.promise__ic--coral { background: var(--coral-50); color: var(--coral); }
.promise__ic--blue { background: var(--blue-50); color: var(--blue); }
.promise__ic--green { background: var(--green-50); color: var(--green-600); }
.promise__ic--sky { background: var(--sky-50); color: var(--sky); }
.official {
  position: relative; overflow: hidden; margin: 40px auto 0; max-width: 860px; text-align: center;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 5vw, 56px);
  border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-900) 100%);
  box-shadow: var(--shadow-lg);
}
.official::before, .official::after { content: ""; position: absolute; pointer-events: none; }
.official::before { width: 180px; height: 150px; left: -40px; bottom: -50px; background: var(--sky); clip-path: polygon(0 40%, 100% 0, 56% 100%); opacity: .5; }
.official::after { width: 70px; height: 56px; right: 28px; top: 22px; background: var(--coral); clip-path: polygon(0 44%, 100% 0, 54% 100%); }
.official > * { position: relative; }
.official__ic { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: var(--blue-900); box-shadow: 0 0 0 8px rgba(96, 195, 20, .25); }
.official__ic svg { width: 38px; height: 38px; }
.official__eyebrow { margin: 0 0 6px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.official__title { font-size: clamp(22px, 2.8vw, 32px); color: #fff; margin-bottom: 10px; }
.official__text { margin: 0 auto 20px; max-width: 36em; color: rgba(255, 255, 255, .85); }
.official__seals { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.official__seals li { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-weight: 800; font-size: 14px; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__media { position: sticky; top: 110px; }
.ph--tall { aspect-ratio: 4 / 5; border-radius: 160px var(--r-lg) var(--r-lg) var(--r-lg); box-shadow: var(--shadow-lg); }
.about__copy > p { color: var(--muted); font-size: 18px; }
.about__copy strong { color: var(--ink); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar h3 { font-size: 20px; margin: 14px 0 8px; color: var(--blue-900); }
.pillar p { font-size: 15.5px; color: var(--muted); margin: 0; }
.pillar__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.pillar__ic svg { width: 24px; height: 24px; }
.pillar__ic--blue { background: var(--sky-50); color: var(--sky); }
.pillar__ic--green { background: var(--green-50); color: var(--green-600); }
.pillar__ic--coral { background: var(--coral-50); color: var(--coral); }

/* ---------- Cita ---------- */
.quote { padding: clamp(56px, 8vw, 96px) 0; background: var(--green-50); position: relative; overflow: hidden; }
.quote::before { content: "“"; position: absolute; left: 50%; top: -40px; transform: translateX(-50%); font: 800 280px/1 var(--font-head); color: rgba(96, 195, 20, .25); pointer-events: none; }
.quote blockquote { position: relative; margin: 0 auto; max-width: 900px; text-align: center; }
.quote p { font: 700 clamp(26px, 3.6vw, 44px)/1.2 var(--font-head); color: var(--blue-900); letter-spacing: -.02em; margin-bottom: 18px; }
.quote cite { font-style: normal; font-weight: 700; color: var(--green-600); }

/* ---------- Niveles ---------- */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level { background: var(--cream); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.level:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ph--card { aspect-ratio: 4 / 3; border-radius: 0; }
.level--green .ph--card { background: linear-gradient(135deg, var(--green-50), #D6EFC2); }
.level__body { padding: clamp(24px, 3vw, 36px); }
.level__tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.level--green .level__tag { background: var(--green); color: var(--blue-900); }
.level--blue .level__tag { background: var(--blue); color: #fff; }
.level--coral .level__tag { background: var(--coral); color: #fff; }
.level--coral .ph--card { background: linear-gradient(135deg, var(--coral-50), #FFD3D5); }
.level--coral .checks li::before { background-color: var(--coral); }
.level h3 { font-size: clamp(26px, 2.6vw, 32px); color: var(--blue-900); margin-bottom: 10px; }
.level__body > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.level--green .checks li::before { background-color: var(--green-600); }

/* ---------- Inclusión ---------- */
.inclusion { background: var(--blue-900); color: #fff; position: relative; overflow: hidden; }
.inclusion::before, .inclusion::after { content: ""; position: absolute; pointer-events: none; }
.inclusion::before { width: 420px; height: 420px; left: -160px; bottom: -200px; background: var(--sky); clip-path: polygon(0 40%, 100% 0, 56% 100%); opacity: .45; }
.inclusion::after { width: 120px; height: 100px; right: 6%; top: 40px; background: var(--coral); clip-path: polygon(0 44%, 100% 0, 54% 100%); opacity: .95; }
.inclusion__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.inclusion .h2 { color: #fff; }
.inclusion p { color: rgba(255, 255, 255, .82); font-size: 18px; margin-bottom: 28px; }
.inclusion strong { color: #fff; }
.inclusion__card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); backdrop-filter: blur(6px); }
.inclusion__card h3 { font-size: 22px; margin-bottom: 20px; }
.pills { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pills li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-weight: 700; font-size: 15px; line-height: 1.3;
  transition: background-color .2s;
}
.pills li:hover { background: rgba(255, 255, 255, .18); }
.pills li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--green);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360C314' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 700; font-size: 15px; transition: background-color .2s, color .2s; }
.tags li:hover { background: var(--green); color: var(--blue-900); border-color: var(--green); }

/* ---------- Talleres ---------- */
.workshops { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.workshops .ws { flex: 0 1 calc((100% - 60px) / 4); }
.ws { position: relative; background: #fff; border-radius: var(--r); padding: 30px 28px; border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.ws::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; clip-path: polygon(0 20%, 100% 0, 40% 100%); opacity: .14; transition: transform .4s, opacity .3s; }
.ws:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); }
.ws:hover::after { transform: scale(1.3) rotate(12deg); opacity: .25; }
.ws svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; margin-bottom: 18px; transform-origin: center; }
.ws:nth-child(1):hover svg { animation: ic-pulse .9s ease-in-out; }
.ws:nth-child(2):hover svg { animation: ic-hop .7s ease-in-out; }
.ws:nth-child(3):hover svg { animation: ic-wave .8s ease-in-out; }
.ws:nth-child(4):hover svg { animation: ic-tilt .7s ease-in-out; }
.ws:nth-child(5):hover svg { animation: ic-sway .9s ease-in-out; }
.ws:nth-child(6):hover svg { animation: ic-turn .8s ease-in-out; }
.ws:nth-child(7):hover svg { animation: ic-spin .9s ease-in-out; }
@keyframes ic-pulse { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.15); } 60% { transform: scale(.95); } }
@keyframes ic-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px); } 70% { transform: translateY(1px); } }
@keyframes ic-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
@keyframes ic-tilt { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-10deg) scale(1.08); } }
@keyframes ic-sway { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-4px) rotate(-8deg); } 75% { transform: translateX(4px) rotate(8deg); } }
@keyframes ic-turn { from { transform: rotate(0); } to { transform: rotate(180deg); } }
@keyframes ic-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.ws h3 { font-size: 22px; color: var(--blue-900); margin-bottom: 6px; }
.ws p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ws--coral svg { background: var(--coral-50); color: var(--coral); }
.ws--coral::after { background: var(--coral); }
.ws--green svg { background: var(--green-50); color: var(--green-600); }
.ws--green::after { background: var(--green); }
.ws--blue svg { background: var(--sky-50); color: var(--sky); }
.ws--blue::after { background: var(--sky); }

/* ---------- Instalaciones ---------- */
.spaces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ph--sq { aspect-ratio: 1; }
.ph--sq::before { background-size: 40px; }
.space h3 { font-size: 17px; margin-top: 14px; color: var(--blue-900); }
.space:nth-child(2n) .ph { background: linear-gradient(135deg, var(--green-50), #D6EFC2); }
.space:nth-child(3n) .ph { background: linear-gradient(135deg, var(--coral-50), #FFD3D5); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery .g1 { grid-column: span 2; grid-row: span 2; }
.gallery .g2, .gallery .g3 { grid-row: span 2; }
.link-arrow { font-weight: 800; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--green); padding-bottom: 2px; margin-bottom: 22px; }
.link-arrow:hover { color: var(--coral); border-color: var(--coral); }

/* ---------- Admisión ---------- */
.admission { background: var(--cream); }
.steps { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; }
.step__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 22px/1 var(--font-head); margin-bottom: 18px; box-shadow: 0 0 0 6px var(--blue-50); }
.step:nth-child(2) .step__n { background: var(--green-600); box-shadow: 0 0 0 6px var(--green-50); }
.step:nth-child(3) .step__n { background: var(--coral); box-shadow: 0 0 0 6px var(--coral-50); }
.step:nth-child(4) .step__n { background: var(--blue-900); }
.step h3 { font-size: 21px; color: var(--blue-900); margin-bottom: 8px; }
.step p { margin: 0; font-size: 15.5px; color: var(--muted); }
.admission__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; margin-bottom: 48px; }
.cinfo { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 20px; }
.cinfo li { display: flex; gap: 16px; align-items: flex-start; }
.cinfo__ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue); }
.cinfo__ic svg { width: 22px; height: 22px; }
.cinfo b { display: block; font-family: var(--font-head); font-size: 18px; color: var(--blue-900); }
.cinfo span { color: var(--muted); }
.cinfo small { font-size: 14px; }
.cinfo a { color: var(--blue); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.cinfo a:hover { color: var(--coral); }
.socials { display: flex; gap: 12px; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; transition: transform .2s, background-color .2s; }
.socials a:hover { transform: translateY(-3px); background: var(--coral); }
.socials svg { width: 22px; height: 22px; }

.form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form h3 { font-size: 26px; color: var(--blue-900); }
.form__note { margin: -8px 0 4px; color: var(--muted); font-size: 15px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: 500 16px/1.4 var(--font-body); color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.form .is-invalid { border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-50); }
.form textarea { resize: vertical; }

.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); height: 380px; background: var(--blue-50); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pie ---------- */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, .78); padding: 56px 0 96px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; align-items: start; }
.footer__brand p { margin: 16px 0 0; max-width: 32em; }
.footer__brand .footer__legal { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.footer__nav a { text-decoration: none; font-weight: 700; color: #fff; }
.footer__nav a:hover { color: var(--green); }
.footer__copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.footer__credit { font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer__credit a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer__credit a:hover { color: var(--green); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .9); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Aparición al hacer scroll (solo si el JS está activo) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Triángulos del logo flotando en el fondo ---------- */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; opacity: .13; animation: drift 18s ease-in-out infinite; }
.deco--sky { background: var(--sky); clip-path: polygon(0 40%, 100% 0, 56% 100%); }
.deco--green { background: var(--green); clip-path: polygon(0 20%, 100% 0, 50% 100%); }
.deco--red { background: var(--coral); clip-path: polygon(0 44%, 100% 0, 54% 100%); opacity: .16; }
.deco--1 { width: 150px; height: 120px; top: 8%; left: -30px; }
.deco--2 { width: 70px; height: 56px; top: 18%; right: 6%; animation-duration: 14s; animation-delay: -4s; }
.deco--3 { width: 110px; height: 100px; bottom: 6%; right: -20px; animation-duration: 22s; animation-delay: -9s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  33% { transform: translate(14px, -18px) rotate(6deg); }
  66% { transform: translate(-10px, 10px) rotate(-5deg); }
}

/* ---------- Galería ampliada ---------- */
.no-scroll, .no-scroll body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 56px 16px; background: rgba(6, 18, 44, .92); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: var(--r); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.96); transition: transform .35s; }
.lightbox.is-open .lightbox__fig img { transform: none; }
.lightbox__fig figcaption { color: rgba(255, 255, 255, .85); font-weight: 600; text-align: center; }
.lightbox__close, .lightbox__nav {
  flex: none; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14);
  border-radius: 50%; font: 400 34px/1 var(--font-body); transition: background-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--coral); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; }
.lightbox__nav { width: 52px; height: 52px; }
.lightbox__count { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-weight: 700; font-size: 14px; }
@media (max-width: 600px) {
  .lightbox { padding: 64px 8px 96px; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}

/* Movimiento reducido: solo se apagan los efectos intrusivos (flotar / pulso) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__badge, .hero__shape, .wa-float::before, .deco { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav a:not(.btn) { padding: 8px 9px; font-size: 14.5px; }
  .spaces { grid-template-columns: repeat(3, 1fr); }
  .levels { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr 1fr; }
  .workshops .ws { flex-basis: calc((100% - 40px) / 3); }
}

@media (max-width: 920px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 16px var(--pad) 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(21, 35, 63, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 17px; }
  .nav__cta { margin: 8px 0 0; }

  .hero__grid, .about, .inclusion__grid, .contact { grid-template-columns: 1fr; }
  .hero__art { min-height: 420px; }
  .about__media { position: static; }
  .ph--tall { aspect-ratio: 16 / 10; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .workshops .ws { flex-basis: calc((100% - 20px) / 2); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand__logo { width: 150px; }
  .hero__art { min-height: 340px; }
  .ph--hero { inset: 0 0 48px 28px; border-bottom-left-radius: 80px; }
  .hero__badge { right: 0; bottom: 12px; padding: 12px 14px; }
  .hero__badge strong { font-size: 34px; }
  .hero__ctas .btn { width: 100%; }
  .pillars, .steps, .promises, .levels, .pills { grid-template-columns: 1fr; }
  .workshops .ws { flex-basis: 100%; }
  .spaces { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery .g1 { grid-column: span 2; }
  .stat { padding: 26px 12px; }
  .map { height: 300px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
