/* Site styles shared by every page (Elementor: Kit globals + Theme Builder header/footer + home sections) */
:root {
  --x-display: var(--display); --x-weight: 800; --x-team-bg: #fff; --x-spaces-bg: var(--sky); --x-cal-bg: #fff;
  --navy: #003C58;
  --navy-deep: #002A40;
  --sun: #FF7522;
  --sky: #E9F1F4;
  --leaf: #4E9A4F;
  --ink: #1B2440;
  --muted: #55607A;
  --white: #FFFFFF;
  --r-lg: 28px;
  --r-md: 18px;
  --max: 1240px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --rg-hand-font: "Caveat", cursive;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--display); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* Header — Elementor Theme Builder header + Sticky */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .35s, box-shadow .35s, padding .35s; padding: 18px 0; }
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,60,88,.08); padding: 10px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; flex: none; }
.logo-text { line-height: 1.05; }
.logo-text small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.logo-text strong { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.menu { display: flex; gap: 30px; list-style: none; padding: 0; font-size: 15px; font-weight: 600; }
.menu a { text-decoration: none; color: var(--navy); position: relative; padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.menu a:hover::after { transform: scaleX(1); }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--display); text-decoration: none; padding: 16px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--navy-deep); box-shadow: 0 10px 24px rgba(255,117,34,.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: rgba(255,255,255,.7); }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px auto; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav, .nav-scrim { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 170px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg > img, .hero-bg > video { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; object-position: 70% 30%; opacity: 0; transform: scale(1.12); filter: blur(6px); transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s ease; }
.hero-bg > .is-active { opacity: 1; filter: none; z-index: 1; animation: kenburns 9s ease-out both; }
.hero-bg > video.is-active { animation: none; transform: none; }
.hero-bg > .talking-video { object-position: 40% 30%; }
.hero-bg > .is-leaving { opacity: 0; transform: scale(1.02); }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Hero slideshow controls (Elementor: Background Slideshow has no UI; this is a small HTML widget) */
.hero-nav { position: absolute; right: max(20px, calc((100vw - var(--max)) / 2)); bottom: clamp(96px, 11vw, 160px); z-index: 3; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-radius: 999px; background: rgba(255,255,255,.78); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,42,64,.14); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots[hidden] { display: none; }
.hero-nav:has(.hero-dots[hidden]) { padding: 6px; }
.hero-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: rgba(0,60,88,.22); cursor: pointer; overflow: hidden; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.hero-dots button[aria-current="true"] { width: 38px; }
.hero-dots button::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: left; }
.hero-dots button[aria-current="true"]::after { transform: scaleX(1); }
.hero-dots.playing button[aria-current="true"]::after { animation: dot-fill var(--slide-ms, 6000ms) linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-pause { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: inline; }

/* Talking-head speech bubbles (Elementor: HTML widget synced to the background video) */
.talk-layer { position: absolute; z-index: 2; pointer-events: none; --fw: 1440px; }
.talk-bubble { position: absolute; left: 0; top: 0; max-width: 28%; width: max-content; transform-origin: 100% 100%;
  background: #fff; color: var(--navy); border-radius: calc(var(--fw) * .018); padding: calc(var(--fw) * .011) calc(var(--fw) * .016);
  font: 800 calc(var(--fw) * .0175)/1.15 var(--display); letter-spacing: -.01em; text-align: left;
  box-shadow: 0 18px 40px rgba(0,42,64,.18), 0 2px 0 rgba(0,42,64,.06);
  opacity: 0; transform: translateY(18px) scale(.4) rotate(-4deg);
  transition: transform .55s cubic-bezier(.2,1.6,.4,1), opacity .3s ease; }
.talk-bubble::after { content: ""; position: absolute; right: calc(var(--fw) * -.012); bottom: calc(var(--fw) * .012); width: calc(var(--fw) * .03); height: calc(var(--fw) * .022);
  background: inherit; clip-path: polygon(0 0, 100% 70%, 0 100%); }
.talk-bubble p { margin: 0; }
.talk-bubble .w { opacity: .14; transition: opacity .18s ease, color .18s ease; }
.talk-bubble .w.said { opacity: 1; }
.talk-bubble .hl { background: linear-gradient(transparent 62%, rgba(255,117,34,.75) 62%); }
.talk-bubble .hand { font: 700 1.55em/0.9 var(--hand); color: var(--leaf); display: inline-block; transform: rotate(-4deg); }
.talk-bubble.below { transform-origin: 70% 0; }
.talk-bubble.below::after { right: auto; left: 72%; bottom: auto; top: calc(var(--fw) * -.016); clip-path: polygon(30% 0, 100% 100%, 0 100%); }
.talk-bubble.below.past, .talk-bubble.below.gone { opacity: 0; transform: scale(.9); }
.talk-bubble.is-cta { background: var(--sun); color: var(--navy-deep); }
.talk-bubble.is-cta .hand { color: var(--navy); font-size: 1.8em; }
.talk-bubble.on { opacity: 1; transform: none; animation: bubble-float 3.2s ease-in-out .6s infinite; }
.talk-bubble.past { opacity: .5; transform: translateY(-118%) scale(.78); transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s ease; }
.talk-bubble.gone { opacity: 0; transform: translateY(-190%) scale(.6); transition: transform .7s ease-in, opacity .4s ease; }
@keyframes bubble-float { 50% { translate: 0 calc(var(--fw) * -.004); rotate: -1deg; } }
.hero.is-talking .motto { opacity: 0; transition: opacity .6s; }
.motto { transition: opacity .6s; }
.hero-sound { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 7px 14px 7px 10px; background: var(--sun); color: var(--navy-deep); font: 700 14px/1 var(--display); cursor: pointer; }
.hero-sound .i-mute, .hero-sound[aria-pressed="true"] .i-wave { display: none; }
.hero-sound[aria-pressed="true"] .i-mute { display: inline; }
.hero-sound[aria-pressed="true"] { background: var(--navy); color: #fff; }
.hero-sound[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .talk-bubble.on { animation: none; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.88) 34%, rgba(255,255,255,0) 62%); }
.hero-copy { max-width: 600px; }
.hello { font: 700 30px/1 var(--hand); color: var(--navy); display: inline-flex; align-items: center; gap: 10px; transform: rotate(-4deg); margin-bottom: 18px; }
h1 { font-size: clamp(46px, 7vw, 92px); line-height: .98; letter-spacing: -.035em; font-weight: 800; color: var(--navy); }
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .line > span { display: inline-block; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
h1 .line:nth-child(2) > span { animation-delay: .12s; }
h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.underlined { position: relative; display: inline-block; }
.underlined svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.hero p.lead { margin-top: 26px; font-size: 19px; color: var(--muted); max-width: 470px; animation: fade 1s .6s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: fade 1s .75s both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.motto { position: absolute; right: 6%; top: 21%; z-index: 2; }
.motto p { font: 700 clamp(30px, 3.4vw, 46px)/.95 var(--hand); color: #fff; transform: rotate(-9deg); text-shadow: 0 2px 18px rgba(0,42,64,.45); }
.motto .m2 { margin-left: .7em; }
.motto .m3 { margin-left: 1.4em; color: var(--sun); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: clamp(70px, 9vw, 140px); }

/* Section heads */
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 52px; flex-wrap: wrap; }
.head h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; color: var(--navy); font-weight: 800; max-width: 14ch; }
.head p { color: var(--muted); max-width: 420px; }
.scribble { font: 700 28px/1 var(--hand); color: var(--leaf); display: inline-block; transform: rotate(-5deg); margin-bottom: 10px; }

/* Values */
.values { background: var(--white); padding-top: 40px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--sky); }
.value { padding: 40px 34px 10px 0; position: relative; }
.value + .value { padding-left: 34px; border-left: 2px solid var(--sky); }
.value h3 { font: 700 clamp(48px, 5vw, 66px)/1 var(--hand); color: var(--navy); transform: rotate(-3deg); transform-origin: left; display: inline-block; }
.value:nth-child(2) h3 { color: var(--leaf); }
.value:nth-child(3) h3 { color: #C24E0C; }
.value p { margin-top: 16px; color: var(--muted); max-width: 32ch; }

/* Stages — Elementor: Call to Action widget (Pro) with image zoom on hover */
.stages { background: var(--sky); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; isolation: isolate; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,42,64,0) 35%, rgba(0,42,64,.88) 100%); transition: background .5s; }
.stage:hover img { transform: scale(1.08); }
.stage:hover::after { background: linear-gradient(180deg, rgba(0,42,64,.15) 0%, rgba(0,42,64,.92) 100%); }
.stage-body { padding: 30px; width: 100%; }
.stage .ages { font: 700 24px/1 var(--hand); color: var(--sun); display: inline-block; transform: rotate(-4deg); }
.stage h3 { font-size: 38px; letter-spacing: -.02em; line-height: 1.05; margin: 6px 0 0; }
.stage .more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .5s, margin .5s; color: rgba(255,255,255,.88); }
.stage:hover .more, .stage:focus-visible .more { max-height: 140px; opacity: 1; margin-top: 12px; }
.stage .badge { position: absolute; top: 22px; left: 22px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--navy-deep); }
.stage:nth-child(2) .badge { background: #8EC5F2; }
.stage:nth-child(3) .badge { background: #8FD18F; }

/* Project — split */
.project { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.project-media { position: relative; }
.project-media .main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/4.3; }
.project-media .main img { width: 100%; height: 120%; object-fit: cover; }
.project-media .note { position: absolute; right: -28px; top: 34px; background: var(--sun); color: var(--navy-deep); font: 700 30px/1 var(--hand); padding: 20px 24px; border-radius: 20px; transform: rotate(6deg); box-shadow: 0 18px 40px rgba(0,42,64,.18); max-width: 220px; }
.project-media .float { position: absolute; left: -36px; bottom: -40px; width: 44%; border-radius: var(--r-md); overflow: hidden; border: 8px solid #fff; box-shadow: 0 24px 50px rgba(0,42,64,.2); aspect-ratio: 1; }
.project-media .float img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: start; font-weight: 600; color: var(--navy); }
.checks svg { flex: none; margin-top: 2px; }
.checks small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

/* Counters band */
.band { background: var(--navy); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat b { display: block; font-size: clamp(44px, 5vw, 68px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--sun); }
.stat > span { font-size: 15px; color: rgba(255,255,255,.8); }

/* Life gallery — Elementor Pro: Gallery (justified) / Media Carousel */
.life-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 18px; }
.tile { position: relative; border-radius: var(--r-md); overflow: hidden; }
.tile:first-child { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.95); color: var(--navy); font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 999px; }

/* Testimonial */
.quote { display: grid; grid-template-columns: 420px 1fr; gap: 70px; align-items: center; background: var(--sky); border-radius: var(--r-lg); padding: 50px; }
.quote img { border-radius: 22px; aspect-ratio: 1; object-fit: cover; width: 100%; }
blockquote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.015em; color: var(--navy); font-weight: 600; }
.quote cite { display: block; margin-top: 22px; font: 700 26px/1 var(--hand); color: var(--leaf); font-style: normal; transform: rotate(-3deg); transform-origin: left; }

/* CTA */
.cta { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: 40px; }
.cta-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: 100px 0; position: relative; }
.cta h2 { font: 700 clamp(52px, 7vw, 96px)/.95 var(--hand); transform: rotate(-4deg); transform-origin: left; color: #fff; }
.cta h2 em { font-style: normal; color: var(--sun); }
.cta p { margin-top: 26px; color: rgba(255,255,255,.8); max-width: 420px; margin-bottom: 28px; }
.sun { position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; opacity: .9; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Handwritten doodle tweaks (classes from rigel-wow.css) */
.hello .rg-burst { margin-left: .9em; }
.value h3 .rg-heart { --rg-accent: #C24E0C; }
.stage .ages { transform: rotate(-4deg); }
.band .rg-circle { --rg-accent: #fff; }
.cta h2 em.rg-underline::after { bottom: -.02em; }
.cta-note { display: inline-block; font: 700 30px/1 var(--hand); color: var(--sun); transform: rotate(-5deg); margin-top: 26px; }
.cta-note .rg-arrow { --rg-accent: var(--sun); }

/* Visit form — Elementor Pro Form widget */
.visit-form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.3); position: relative; z-index: 1; }
.visit-form h3 { font: 700 36px/1 var(--hand); color: var(--navy); justify-self: start; --rg-rotate: -3deg; }
.visit-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.visit-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.visit-form .opt { font-weight: 400; color: var(--muted); }
.visit-form input:not([type="checkbox"]), .visit-form select, .visit-form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--sky); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.visit-form textarea { resize: vertical; }
.visit-form input:focus, .visit-form select:focus, .visit-form textarea:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255,117,34,.45); }
.visit-form .check { display: flex; align-items: start; gap: 10px; font-weight: 400; color: var(--muted); }
.visit-form .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.visit-form .btn { justify-self: start; margin-top: 4px; }
.visit-form .form-msg { color: var(--leaf); font-weight: 600; }
.visit-form .field-error { border-color: #C62828 !important; }
.visit-form .check input.field-error { outline: 2px solid #C62828; outline-offset: 2px; }
.visit-form .check:has(.field-error) span { color: #C62828; }

footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 0 0 40px; font-size: 15px; }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 34px; }
footer a { color: #fff; text-decoration: none; }

/* Tablet */
/* Lema 2026-2027 — Elementor: Container con fondo imagen (mismo patrón que las cabeceras) + bloque tipo «proyecto» */
.lema-sec { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); background: var(--white); }
.lema-banner { position: relative; isolation: isolate; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(420px, 42vw, 540px); display: flex; align-items: center; }
.lema-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 55%; z-index: -2; }
.lema-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 32%, rgba(255,255,255,0) 58%); }
.lema-copy { padding: clamp(28px, 5vw, 64px); max-width: 560px; }
.lema-copy h2 { font: 800 clamp(40px, 5.4vw, 72px)/1 var(--display); letter-spacing: -.04em; color: var(--navy); margin: 6px 0 22px; }
.lema-copy p { font-size: 18px; color: var(--muted); max-width: 34ch; }
.lema-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; margin-top: clamp(70px, 9vw, 120px); }
.lema-media { position: relative; }
.lema-media .main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.3; }
.lema-media .main img { width: 100%; height: 100%; object-fit: cover; }
.lema-media .note { position: absolute; right: -28px; bottom: 40px; max-width: 280px; background: var(--sun); color: var(--navy-deep); font: 700 28px/1.05 var(--hand); padding: 18px 22px; border-radius: 20px; transform: rotate(-4deg); box-shadow: 0 20px 40px -18px rgba(0,42,64,.5); }
.lema-row h3 { font: 800 clamp(30px, 3.6vw, 48px)/1.04 var(--display); letter-spacing: -.03em; color: var(--navy); margin: 0; max-width: 16ch; }
@media (max-width: 860px) {
  .lema-banner { display: block; min-height: 0; background: var(--sky); }
  .lema-bg { position: static; height: auto; aspect-ratio: 16 / 10; object-position: 62% 50%; }
  .lema-banner::before { display: none; }
  .lema-copy { max-width: none; padding: 26px 22px 30px; }
  .lema-row { grid-template-columns: 1fr; }
  .lema-media .note { right: 10px; font-size: 24px; padding: 14px 18px; }
}

@media (max-width: 1024px) {
  .menu, .nav > .btn { display: none; }
  .burger { display: block; }
  /* Side nav (Elementor Pro: Off-Canvas widget, from the right) */
  .mobile-nav { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 86vw); z-index: 90; background: var(--navy); padding: 104px 34px 30px; border-radius: 28px 0 0 28px; box-shadow: none; visibility: hidden; transform: translateX(105%); transition: transform .55s cubic-bezier(.7,0,.2,1), box-shadow .3s, visibility 0s .55s; overflow-y: auto; }
  .menu-open .mobile-nav { transform: none; visibility: visible; box-shadow: -30px 0 60px rgba(10,24,60,.28); transition: transform .55s cubic-bezier(.7,0,.2,1), box-shadow .3s .2s, visibility 0s; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(12,26,62,.42); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .45s; }
  .menu-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .menu-open .burger span { background: #fff; }
  .menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .site-header .logo { transition: opacity .3s; }
  .menu-open .site-header .logo { opacity: 0; pointer-events: none; }
  .side-hello { font: 700 32px/1 var(--hand); color: var(--sun); transform: rotate(-4deg); margin: 0 0 18px; }
  .mobile-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
  .mobile-nav > ul > li { opacity: 0; transform: translateX(30px); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
  .menu-open .mobile-nav > ul > li { opacity: 1; transform: none; }
  .menu-open .mobile-nav > ul > li:nth-child(2) { transition-delay: .05s; } .menu-open .mobile-nav > ul > li:nth-child(3) { transition-delay: .1s; }
  .menu-open .mobile-nav > ul > li:nth-child(4) { transition-delay: .15s; } .menu-open .mobile-nav > ul > li:nth-child(5) { transition-delay: .2s; }
  .menu-open .mobile-nav > ul > li:nth-child(6) { transition-delay: .25s; } .menu-open .mobile-nav > ul > li:nth-child(7) { transition-delay: .3s; }
  .mobile-nav a { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
  .mobile-nav li a { font-size: 26px !important; }
  .mobile-nav .btn { margin-top: 26px; font-size: 17px; align-self: flex-start; }
  .side-contact { margin-top: auto; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.75); font-size: 14.5px; line-height: 1.7; }
  .side-contact a { font-size: 14.5px; font-weight: 600; letter-spacing: 0; }
  .hero-bg > .talking-video { object-position: 80% 30%; }
  .stage-grid { grid-template-columns: 1fr 1fr; }
  .stage:last-child { grid-column: span 2; min-height: 380px; }
  .project { grid-template-columns: 1fr; }
  .project-media .note { right: 10px; }
  .band-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .quote { grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 36px; }
  .cta-inner { grid-template-columns: 1fr; }
}
/* Mobile */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { align-items: flex-end; padding: 120px 0 130px; min-height: 92svh; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,0) 10%, rgba(255,255,255,.85) 52%, #fff 78%); }
  .hero-bg > img, .hero-bg > video { object-position: 62% 20%; height: 70%; }
  .hero-bg > .talking-video { object-position: 72% 20%; }
  .motto { top: 104px; right: 18px; font-size: 30px; }
  .talk-layer { left: 16px !important; right: 16px; top: 76px !important; width: auto !important; height: auto !important; --fw: 860px; }
  .talk-bubble.past, .talk-bubble.gone { opacity: 0; transform: translateY(-30%) scale(.9); }
  .hero.is-talking .hello { margin-top: 28px; }
  .talk-bubble { position: absolute; left: 0; right: auto; top: 0; max-width: 78%; transform-origin: 0 100%; }
  .talk-bubble.is-big { max-width: 86%; }
  .talk-bubble::after { right: auto; left: 70%; bottom: calc(var(--fw) * -.016); clip-path: polygon(0 0, 100% 0, 30% 100%); }
  .hero-nav { bottom: 74px; right: 16px; padding: 6px 8px 6px 12px; }
  .hello { font-size: 25px; }
  .values-grid { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 30px 0; border-left: 0; border-bottom: 2px solid var(--sky); }
  .stage-grid { grid-template-columns: 1fr; }
  .stage, .stage:last-child { grid-column: auto; min-height: 420px; }
  .stage .more { max-height: none; opacity: 1; margin-top: 10px; }
  .project-media .float { left: 10px; bottom: -30px; width: 42%; }
  .project-media .note { font-size: 24px; padding: 14px 18px; }
  .life-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 170px 170px; }
  .tile:first-child { grid-column: span 2; grid-row: auto; }
  .quote { grid-template-columns: 1fr; padding: 24px; }
  .cta-inner { padding: 80px 0; }
  .sun { width: 180px; height: 180px; }
  .visit-form .row.two { grid-template-columns: 1fr; }
  .motto p { font-size: 28px; }
}

/* Real logo + footer */
.logo-img { display: block; height: 46px; width: auto; }
.site-footer { background: #002A40; color: rgba(255,255,255,.72); padding: 70px 0 30px; font-size: 15px; line-height: 1.6; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 40px; }
.foot-logo { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.foot-brand p { max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #FF7522; }
.foot-sda { display: grid; justify-items: end; align-content: start; gap: 18px; }
.foot-sda img { width: 72px; height: auto; filter: brightness(0) invert(1); opacity: .85; }
.foot-ethic { border: 1.5px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding-top: 24px; font-size: 14px; }
.foot-bottom a { margin-left: 18px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-sda { justify-items: start; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } .foot-bottom a { margin: 0 18px 0 0; } }
b:has(.rg-circle) { margin-bottom: 14px; }

/* ===== Client content doc (Nov 2026): proyecto, servicios, espacios, admisión, iglesias ===== */
.t-card img { object-position: 50% 12%; }

/* Proyecto educativo: intro + 8 principles */
.pe { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pe-intro h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; color: var(--navy); font-weight: 800; margin: 6px 0 16px; }
.pe-intro > p { color: var(--muted); max-width: 40ch; }
.pe-verse { margin: 28px 0; padding: 28px 30px; border-radius: 24px; background: var(--navy); color: #fff; transform: rotate(-1.5deg); box-shadow: 0 18px 40px rgba(0,42,64,.18); }
.pe-verse blockquote { margin: 0; color: #fff; padding: 0; border: 0; background: none; font: 700 clamp(28px, 2.6vw, 36px)/1.1 var(--hand); }
.pe-verse figcaption { margin-top: 10px; font-weight: 700; color: var(--sun); }
.pe-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; counter-reset: pe; }
.pe-list li { counter-increment: pe; position: relative; background: #fff; border-radius: 20px; padding: 22px 22px 22px 76px; box-shadow: 0 12px 30px rgba(0,42,64,.08); }
.pe-list li::before { content: counter(pe); position: absolute; left: 22px; top: 14px; font: 700 46px/1 var(--hand); color: var(--sun); transform: rotate(-6deg); }
.pe-list li:nth-child(4n+2)::before, .pe-list li:nth-child(4n+3)::before { color: var(--navy); }
.pe-list b { display: block; color: var(--navy); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.pe-list span { display: block; margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.pe-sec { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }

/* Servicios */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { display: block; text-decoration: none; background: #fff; border: 2px solid var(--sky); border-radius: 22px; padding: 26px 24px; color: var(--navy); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.svc:hover, .svc:focus-visible { transform: translateY(-6px); border-color: var(--sun); box-shadow: 0 18px 36px rgba(0,42,64,.12); }
.svc-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sun); color: var(--navy); margin-bottom: 16px; }
.svc:nth-child(even) .svc-ico { background: var(--sky); }
.svc h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; }
.svc p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* Espacios: 9 real photos */
.spaces.spaces-9 { grid-template-columns: repeat(3, 1fr); }
.spaces-9 .space { min-height: 400px; }
.space.is-pending { background: repeating-linear-gradient(135deg, var(--navy) 0 18px, #003C58 18px 36px); }
.space-pending { position: absolute; top: 50%; left: 50%; translate: -50% -60%; font: 700 15px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; border: 2px dashed rgba(255,255,255,.6); border-radius: 12px; color: #fff; z-index: -1; }

/* Admisión: linked steps + mid CTA */
.steps-link li { padding: 0; }
.steps-link a { display: block; height: 100%; padding: 74px 24px 26px; border-radius: inherit; text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s; }
.steps-link a:hover, .steps-link a:focus-visible { transform: translateY(-4px); }
.steps-link li:hover { box-shadow: 0 20px 40px rgba(0,42,64,.14); }
.mid-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--sun); color: var(--navy-deep, #002A40); border-radius: 28px; padding: 32px clamp(24px, 4vw, 48px); }
.mid-cta h3 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; max-width: 22ch; }
.mid-cta-kick { margin: 0 0 4px; font: 700 26px/1 var(--hand); }

/* Iglesias */
.ig-sec { background: var(--sky); }
.ig-lead { text-align: center; color: var(--muted); max-width: 56ch; margin: -28px auto 36px; }
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; justify-content: center; }
.ig-grid li { background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 10px 26px rgba(0,42,64,.07); }
.ig-grid li:nth-child(5) { grid-column: 1 / span 1; }
.ig-ico { color: var(--sun); margin-bottom: 6px; }
.ig-grid b { color: var(--navy); font-size: 17px; }
.ig-grid li > span:not(.ig-ico) { color: var(--muted); font-size: 14.5px; }
.ig-map { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; }
.ig-map:hover, .ig-map:focus-visible { color: #8A3500; }

@media (max-width: 1024px) {
  .pe { grid-template-columns: 1fr; }
  .svc-grid, .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .spaces.spaces-9 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .pe-list, .svc-grid, .ig-grid, .spaces.spaces-9 { grid-template-columns: 1fr; }
  .spaces-9 .space { min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc, .steps-link a { transition: none; }
  .svc:hover, .svc:focus-visible, .steps-link a:hover { transform: none; }
}

/* Lema fused 3D image (Nov 2026): copy sits on the sky (top-left) so the girl planting stays visible.
   Elementor: Container min-height + Background Overlay › Gradient › Radial › Top Left. */
@media (min-width: 861px) {
  .lema-banner { min-height: clamp(480px, 50vw, 660px); align-items: flex-start; }
  .lema-bg { object-position: 50% 15%; }
  .lema-banner::before { background: radial-gradient(ellipse 62% 64% at 0% 0%, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 45%, rgba(255,255,255,0) 100%); }
  .lema-copy { padding-top: clamp(28px, 3.4vw, 48px); max-width: 640px; }
  .lema-copy h2 { margin-bottom: 16px; }
}
@media (min-width: 1280px) {
  .lema-copy p { max-width: 46ch; }
}

/* Lema as ONE section (Nov 2026): image banner + attached white panel in a single card. */
.lema-card { border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -40px rgba(0,42,64,.45), 0 0 0 1px rgba(0,42,64,.06); }
.lema-card .lema-banner { border-radius: 0; }
.lema-panel { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 4vw, 56px); padding: clamp(26px, 3.6vw, 48px); align-items: start; }
.lema-panel-intro p { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 34ch; }
.lema-panel-list .scribble { margin-bottom: 14px; display: inline-block; }
.lema-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); margin: 0; }
@media (min-width: 861px) {
  .lema-card .lema-banner { min-height: clamp(420px, 44vw, 600px); }
  .lema-card .lema-bg { object-position: 50% 20%; }
  .lema-card .lema-banner::before { background: radial-gradient(ellipse 52% 58% at 0% 0%, rgba(255,255,255,.92) 0%, rgba(255,255,255,.8) 45%, rgba(255,255,255,0) 100%); }
}
@media (max-width: 860px) {
  .lema-card .lema-banner { background: none; }
  .lema-card .lema-copy { padding: 22px 22px 0; }
  .lema-panel { grid-template-columns: 1fr; padding-top: 14px; }
  .lema-checks { grid-template-columns: 1fr; }
  .lema-panel-intro { display: contents; }
  .lema-panel-intro p { margin: 0; }
  .lema-panel .btn { order: 3; justify-self: start; }
}

/* Lema: big centered motto above the card, like the school poster. */
.lema-head { text-align: center; margin: 0 auto clamp(26px, 3.4vw, 44px); }
.lema-badge { display: inline-block; background: var(--sun); color: var(--navy-deep); font: 800 clamp(13px, 1.2vw, 15px)/1 var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 11px 20px; border-radius: 999px; }
.lema-title { font: 700 clamp(60px, 9vw, 128px)/.95 var(--hand); color: var(--navy); margin: clamp(14px, 1.6vw, 22px) 0 6px; letter-spacing: -.01em; }
.lema-title em { font-style: normal; color: #C24E0C; }
.lema-title .q { color: var(--sun); opacity: .55; }
.lema-heart { display: block; margin: 0 auto; }
.lema-card .lema-banner { min-height: 0 !important; display: block; }
.lema-card .lema-bg { position: static; width: 100%; height: auto; aspect-ratio: 16 / 7.4; object-position: 50% 62%; }
.lema-card .lema-banner::before { display: none; }
.lema-title em { white-space: nowrap; }

/* Lema = school poster recreated (Nov 2026): same composition, live text placed where the poster has it.
   Uses container query units so the overlay scales exactly with the 16:9 image. */
.lema-poster { aspect-ratio: 16 / 9; min-height: 0 !important; display: block !important; }
.lema-card .lema-poster .lema-bg { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; }
.lema-poster-copy { position: absolute; left: 5.5%; top: 11%; width: 46%; display: flex; flex-direction: column; align-items: flex-start; }
.lema-logo { width: min(21vw, 353px); height: auto; display: block; }
.lema-course { display: inline-flex; align-items: center; gap: .7em; margin: 0; font: 800 min(1.2vw, 20px)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #8F3606; }
.lema-course i { width: 1.6em; height: 2px; background: currentColor; border-radius: 2px; }
.lema-poster .lema-title { font: 700 min(6.6vw, 111px)/.92 var(--hand); color: var(--navy); margin: min(1.6vw, 27px) 0 0 0; text-align: left; }
.lema-poster .lema-title em { font-style: normal; color: #B8470A; display: inline-block; margin-left: min(17.5vw, 294px); }
.lema-poster .lema-heart { width: min(3vw, 50px); height: auto; margin: min(.6vw, 10px) 0 0 min(29vw, 487px); }
@media (max-width: 860px) {
  .lema-poster { aspect-ratio: auto; display: flex !important; flex-direction: column; }
  .lema-card .lema-poster .lema-bg { position: static; aspect-ratio: 16 / 10; object-position: 30% 60%; order: 2; }
  .lema-poster-copy { position: static; width: auto; padding: 24px 22px 18px; align-items: center; text-align: center; }
  .lema-logo { width: 200px; }
  .lema-course { margin: 0; font-size: 12px; }
  .lema-poster .lema-title { font-size: clamp(54px, 15vw, 76px); margin: 10px 0 0; text-align: center; }
  .lema-poster .lema-title em { margin-left: 0; }
  .lema-poster .lema-heart { width: 36px; margin: 6px auto 0; }
}

/* Lema full-bleed (Nov 2026): the poster illustration spans the whole width and melts into the page
   with the same white wave Shape Dividers used elsewhere. No card. */
.lema-sec.lema-full { padding: 0 0 var(--sec-y, 80px); background: #fff; }
.lema-full .lema-poster { position: relative; aspect-ratio: auto; }
.lema-art { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 940px; overflow: hidden; }
.lema-art .lema-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; z-index: 0; }
.lema-art .sec-divider { z-index: 1; }
.lema-full .lema-poster-copy { position: absolute; z-index: 2; left: 6%; top: 12%; width: 46%; }
.lema-full .lema-course { font-size: min(1.15vw, 19px); }
.lema-full .lema-title { font-size: min(6.4vw, 108px); }
.lema-full .lema-title em { margin-left: min(17vw, 286px); }
.lema-full .lema-heart { width: min(3vw, 50px); margin-left: min(28vw, 470px); }
.lema-full .lema-panel { padding: clamp(10px, 2vw, 24px) 0 0; background: none; }
@media (max-width: 860px) {
  .lema-full .lema-poster { display: flex; flex-direction: column; }
  .lema-art { aspect-ratio: 16 / 11; }
  .lema-art .lema-bg { object-position: 30% 60%; }
  .lema-full .lema-poster-copy { position: static; width: auto; padding: 8px 22px 0; align-items: center; text-align: center; }
  .lema-full .lema-course { font-size: 12px; }
  .lema-full .lema-title { font-size: clamp(54px, 15vw, 76px); }
  .lema-full .lema-title em { margin-left: 0; }
  .lema-full .lema-heart { width: 36px; margin: 6px auto 0; }
  .lema-full .lema-panel { padding: 18px 0 0; }
}

/* Left sun-ray doodles sit outside the text box: give left-aligned scribble headings room so the
   strokes never touch the screen edge. Elementor: Advanced › Margin left 1em on those headings. */
.scribble:has(> .rg-burst, > .rg-burst-l):not(.center *, .lema-head *) { margin-left: 1em; }

/* Cap the lema illustration: it keeps its 16:9 shape and stops growing at 1680px (no endless zoom).
   On wider screens it is centred and its sides fade into the white page.
   Elementor: Container max-width 1680px + Image mask (Advanced › Mask) or a side gradient overlay. */
.lema-full .lema-poster { max-width: 1680px; margin-inline: auto; }
.lema-art { max-height: none; }
.lema-art .lema-bg { object-position: 50% 50%; }
.lema-full .lema-course { font-size: min(1.15vw, 19px); }
.lema-full .lema-title { font-size: min(6.4vw, 108px); }
.lema-full .lema-title em { margin-left: min(17vw, 286px); }
.lema-full .lema-heart { width: min(3vw, 50px); margin-left: min(28vw, 470px); }
@media (min-width: 1681px) {
  .lema-fade { display: block; }
}

/* Proyecto Educativo de Centro — own section built from the PEC document (Nov 2026). */
.pec .pec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.pec h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; color: var(--navy); font-weight: 800; margin: 6px 0 16px; }
.pec-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink); max-width: 46ch; margin: 0; }
.pec-lead b { color: var(--navy); }
.pec-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pec-facts li { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 12px 30px rgba(0,42,64,.08); }
.pec-facts b { display: block; font: 800 clamp(34px, 3.4vw, 46px)/1 var(--display); color: var(--sun); letter-spacing: -.03em; }
.pec-facts li:nth-child(even) b { color: var(--navy); }
.pec-facts span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.pec-sub { font: 800 clamp(22px, 2vw, 28px)/1.15 var(--display); color: var(--navy); letter-spacing: -.02em; margin: 0 0 18px; }
.pec-list { grid-template-columns: repeat(4, 1fr); margin-bottom: clamp(40px, 5vw, 64px); }
.pec-pillars { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pec-pillars li { background: #fff; border-radius: 20px; padding: 24px 22px; border-top: 4px solid var(--sun); box-shadow: 0 12px 30px rgba(0,42,64,.08); }
.pec-pillars li:nth-child(even) { border-top-color: var(--navy); }
.pec-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #FFF1E7; color: #C24E0C; margin-bottom: 14px; }
.pec-ico svg { width: 26px; height: 26px; }
.pec-pillars b { display: block; color: var(--navy); font-size: 18px; line-height: 1.25; }
.pec-pillars li > span:not(.pec-ico) { display: block; margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.pec-doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: center; background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); }
.pec-cover { display: block; transform: rotate(-4deg); transition: transform .3s ease; }
.pec-cover:hover, .pec-cover:focus-visible { transform: rotate(-1deg) translateY(-4px); }
.pec-cover img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.2); }
.pec-verse { margin: 0 0 18px; }
.pec-verse blockquote { margin: 0; padding: 0; border: 0; background: none; color: #fff; font: 700 clamp(26px, 2.4vw, 34px)/1.1 var(--hand); }
.pec-verse figcaption { margin-top: 6px; font-weight: 700; color: var(--sun); }
.pec-doc h3 { font: 800 clamp(24px, 2.2vw, 32px)/1.1 var(--display); margin: 0 0 10px; color: #fff; }
.pec-doc p { color: rgba(255,255,255,.86); max-width: 60ch; margin: 0 0 22px; }
.pec-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-light { border-color: #fff; color: #fff; background: transparent; }
.pec-meta { display: block; margin-top: 14px; color: rgba(255,255,255,.7); font-size: 14px; }
@media (max-width: 1080px) { .pec-list, .pec-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .pec .pec-head { grid-template-columns: 1fr; }
  .pec-doc { grid-template-columns: 1fr; text-align: left; }
  .pec-cover { width: 60%; max-width: 240px; }
}
@media (max-width: 560px) { .pec-list, .pec-pillars { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pec-cover { transition: none; } }

/* Side fades for screens wider than 1680px: two absolutely positioned containers with a
   white → transparent gradient (Elementor: Container · Position absolute · Background gradient). */
.lema-fade { display: none; position: absolute; top: 0; bottom: 0; width: 7%; z-index: 1; pointer-events: none; }
.lema-fade.is-l { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.lema-fade.is-r { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
@media (min-width: 1681px) { .lema-fade { display: block; } }

/* Guía para familias (colegio.html) — reuses the PEC card styles. */
.guia-grid { grid-template-columns: repeat(3, 1fr); }
.guia-grid li > span:not(.pec-ico) b { color: var(--navy); }
.guia-grid li.is-alert { border-top-color: #C62828; }
.guia-grid li.is-alert .pec-ico { background: #FDECEC; color: #C62828; }
.guia-doc { grid-template-columns: 340px minmax(0, 1fr); }
.guia-cover { transform: rotate(-3deg); }
@media (max-width: 1080px) { .guia-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .guia-doc { grid-template-columns: 1fr; } .guia-cover { width: 80%; max-width: 340px; } }
@media (max-width: 560px) { .guia-grid { grid-template-columns: 1fr; } }
.pec-pillars li > span:not(.pec-ico) b { display: inline; font-size: inherit; line-height: inherit; }

/* Hero option B: static illustration instead of video (toggled in the prototype). */
.hero-static { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero.is-static .hero-static { display: block; }
.hero.is-static .hero-bg video, .hero.is-static [data-talk-layer], .hero.is-static .hero-nav { display: none !important; }
.hero.is-static .hero-bg > .hero-static { display: block; opacity: 1 !important; visibility: visible !important; transform: none !important; filter: none !important; animation: none !important; height: 100%; object-position: 62% 40%; z-index: 1; }
.hero.is-static .hero-bg { transform: none !important; }
.hero.is-static .hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.8) 34%, rgba(255,255,255,0) 60%); pointer-events: none; }
@media (max-width: 760px) {
  .hero.is-static .hero-bg > .hero-static { object-position: 82% 70%; }
  .hero.is-static .hero-bg::after { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 52%, rgba(255,255,255,.2) 72%, rgba(255,255,255,0) 82%); }
}
@media (max-width: 760px) {
  .hero.is-static { padding-bottom: calc(72vw + 90px) !important; }
  .hero.is-static .hero-bg > .hero-static { object-position: 80% 100%; }
  .hero.is-static .hero-bg::after { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,0) 68%); }
}
.hero.is-static::before { display: none; }
@media (max-width: 760px) {
  .hero.is-static .hero-bg > .hero-static { top: auto !important; bottom: 0; height: calc(72vw + 110px) !important; object-position: 78% 55%; }
  .hero.is-static .hero-bg::after { background: linear-gradient(180deg, #fff 0%, #fff 52%, rgba(255,255,255,0) 64%); }
}
/* Image hero: the illustration is busy at the top, so the header always gets its white glass background
   (Elementor: Header container · background rgba(255,255,255,.92) + Backdrop blur, same as the sticky state). */
body:has(.hero.is-static) .site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,60,88,.08); }
@media (min-width: 761px) { .hero.is-static .hero-bg::after { background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 38%, rgba(255,255,255,.6) 48%, rgba(255,255,255,0) 60%); } }
@media (min-width: 761px) { .hero.is-static .hero-bg::after { background: linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 62%); } }
.pec .pec-head:not(:has(.pec-facts)) { grid-template-columns: 1fr; }
/* PEC cover: real first-page capture, kept straight and sharp. */
.pec .pec-cover img { border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.cal-sec.cal-sky { background: var(--sky); }
/* Sections whose own padding beats the divider rule: keep content clear of the top/bottom wave. */
main > section.x-sec:has(> .sec-divider.is-top), main > section.sec:has(> .sec-divider.is-top) { padding-top: calc(var(--sec-y) + var(--divider-h) * .8) !important; }
main > section.x-sec:has(> .sec-divider.is-bottom) { padding-bottom: calc(clamp(56px, 7vw, 100px) + var(--divider-h)); }
/* Header is identical on every page: always the white glass bar, so the menu reads over any photo.
   Elementor (Theme Builder › Header): Container background rgba(255,255,255,.92) + Backdrop blur 12px. */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,60,88,.08); }
/* Contact block and footer share the brand navy: a hairline marks where the footer starts. */
.site-footer { border-top: 1px solid rgba(255,255,255,.08); }

/* Lema · second poster (mirror) next to its three messages. */
.lema-mirror { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; max-width: 1100px; margin: clamp(36px, 5vw, 64px) auto 0; padding-inline: 24px; }
.lema-mirror-img { margin: 0; border-radius: var(--r-lg); overflow: hidden; transform: rotate(-2deg); box-shadow: 0 30px 60px -30px rgba(0,42,64,.45); aspect-ratio: 4 / 5; }
.lema-mirror-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lema-mirror-copy h3 { font: 800 clamp(28px, 3vw, 42px)/1.06 var(--display); letter-spacing: -.02em; color: var(--navy); margin: 10px 0 22px; }
.lema-mirror-copy .lema-checks-col { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 0 22px; }
.lema-mirror-copy > p { color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
@media (max-width: 860px) { .lema-mirror { grid-template-columns: 1fr; } .lema-mirror-img { transform: none; max-width: 480px; } }
/* Lema panoramic (21:9) — one image joining both posters; heading sits on the sky, upper centre. */
.lema-art { aspect-ratio: 1914 / 822; }
.lema-art .lema-bg { object-position: 50% 50%; }
.lema-full .lema-poster-copy { left: 37%; top: 9%; width: 30%; }
.lema-full .lema-title em { margin-left: min(8vw, 134px); }
.lema-full .lema-heart { margin-left: min(17vw, 286px); }
@media (min-width: 1680px) { .lema-full .lema-poster-copy { top: calc(var(--divider-h, 60px) + 10px); } }
@media (max-width: 860px) { .lema-art { aspect-ratio: 16 / 9; } .lema-art .lema-bg { object-position: 40% 50%; } .lema-full .lema-title em, .lema-full .lema-heart { margin-left: 0; } }
@media (max-width: 860px) {
  .lema-full .lema-poster-copy { position: static; width: auto; padding: 14px 22px 0; align-items: center; text-align: center; }
  .lema-full .lema-course { font-size: 12px; }
  .lema-full .lema-title { font-size: clamp(54px, 15vw, 76px); text-align: center; }
  .lema-full .lema-title em { margin-left: 0; }
  .lema-full .lema-heart { width: 36px; margin: 6px auto 0; }
}
@media (min-width: 861px) { .lema-full .lema-poster-copy { left: 39.5%; top: 15%; } .lema-full .lema-title { font-size: min(5.6vw, 94px); } .lema-full .lema-title em { margin-left: min(6vw, 100px); } .lema-full .lema-heart { margin-left: min(14vw, 235px); } }
/* Lema panorama v3: meadow first (left), boy + mirror second (right). Heading on the sky, upper left inside the window. */
.lema-art { aspect-ratio: 1817 / 866; }
@media (min-width: 861px) {
  .lema-full .lema-poster-copy { left: 12%; top: 13%; width: 32%; }
  .lema-full .lema-title { font-size: min(5.6vw, 94px); }
  .lema-full .lema-title em { margin-left: min(8vw, 134px); }
  .lema-full .lema-heart { margin-left: min(16vw, 268px); }
}
@media (max-width: 860px) { .lema-art { aspect-ratio: 16 / 9; } .lema-art .lema-bg { object-position: 55% 50%; } }

/* Lema: title ABOVE the illustration (not on it), large and centred. */
.lema-full .lema-poster-copy.lema-above { position: static !important; width: auto !important; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(10px, 2vw, 24px) 24px clamp(18px, 2.4vw, 32px); }
.lema-full .lema-above .lema-course { display: inline-block; background: var(--sun); color: var(--navy-deep); font: 800 clamp(12px, 1.1vw, 15px)/1 var(--display) !important; letter-spacing: .14em; padding: 10px 18px; border-radius: 999px; }
.lema-full .lema-above .lema-course i { display: none; }
.lema-full .lema-above .lema-title { font-size: clamp(56px, 8vw, 128px) !important; margin: 14px 0 4px !important; text-align: center; }
.lema-full .lema-above .lema-title br { display: none; }
.lema-full .lema-above .lema-title em { margin-left: 0 !important; display: inline; }
.lema-full .lema-above .lema-heart { width: 44px !important; margin: 4px auto 0 !important; }
.lema-art { aspect-ratio: 1400 / 660; }
.lema-art .lema-bg { object-position: 50% 50%; }
@media (max-width: 860px) { .lema-art { aspect-ratio: 4 / 3; } .lema-art .lema-bg { object-position: 62% 50%; } .lema-full .lema-above .lema-title br { display: inline; } }
.lema-full .lema-above .lema-title em { margin-left: .22em !important; }
@media (max-width: 860px) {
  .lema-full .lema-above .lema-title em { margin-left: 0 !important; }
  .lema-art { aspect-ratio: 1400 / 660 !important; }
  .lema-art .lema-bg { object-position: 50% 50% !important; }
}
/* Lema image follows each option's own proportions (prototype comparison). */
.lema-art { aspect-ratio: auto !important; max-height: none; }
.lema-art .lema-bg { position: static !important; width: 100%; height: auto !important; display: block; }
/* Image hero on mobile: illustration first (top, under the header), text below it. */
@media (max-width: 760px) {
  .hero.is-static { align-items: flex-start !important; padding: calc(72px + 66vw + 12px) 0 120px !important; min-height: 0 !important; }
  .hero.is-static .hero-bg > .hero-static { top: 72px !important; bottom: auto !important; height: 66vw !important; object-position: 72% 50% !important; }
  .hero.is-static .hero-bg::after { background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) calc(72px + 54vw), #fff calc(72px + 66vw), #fff 100%) !important; }
}
/* Lema illustration: always show the whole picture on every screen (no side crop). */
.lema-art, .lema-full .lema-art { aspect-ratio: auto !important; height: auto !important; }
.lema-art .lema-bg, .lema-card .lema-poster .lema-bg { position: static !important; width: 100% !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; }
