/* Inner pages. Each block names its Elementor widget in data-el (toggle the overlay, bottom-left). */

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.menu a[aria-current="page"]::after, .menu a.is-section::after { transform: scaleX(1); }
.mobile-nav a[aria-current="page"], .mobile-nav a.is-section { color: var(--sun); }

/* Page hero — Container with background image + gradient overlay + Shape Divider */
.page-hero { position: relative; min-height: min(78svh, 760px); display: flex; align-items: center; padding: 150px 0 150px; overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 112%; object-fit: cover; object-position: 75% 35%; animation: kenburns 12s ease-out both; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 36%, rgba(255,255,255,0) 64%); }
.page-hero .hero-copy { max-width: 620px; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 84px); }
.page-hero .lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 500px; animation: fade 1s .5s both; }
.page-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; animation: fade 1s .65s both; }
.page-hero .sticker { position: absolute; right: max(24px, calc((100vw - var(--max)) / 2)); top: auto; bottom: clamp(56px, 7%, 84px); z-index: 2; font: 700 clamp(26px, 3vw, 40px)/1 var(--hand); color: var(--navy-deep); background: var(--sun); padding: 14px 22px; border-radius: 20px; transform: rotate(6deg); box-shadow: 0 18px 40px rgba(0,42,64,.2); }
.page-hero.is-compact { min-height: 0; padding: 150px 0 120px; }
.page-hero.is-compact::before { background: var(--sky); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--sun); font-weight: 800; }
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Intro — big statement */
.intro { padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 50px); }
.intro p.big { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.25; letter-spacing: -.02em; color: var(--navy); font-weight: 600; max-width: 30ch; }
.intro p.big em { font-style: normal; background: linear-gradient(transparent 62%, rgba(255,117,34,.7) 62%); }

/* Split — Container 2 columnas: Image + Heading + Text Editor + Icon List */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media .main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; box-shadow: 0 30px 60px rgba(0,42,64,.12); }
.split-media .main img { width: 100%; height: 100%; object-fit: cover; }
.split-media .note { position: absolute; left: -22px; bottom: 30px; background: #fff; color: var(--navy); font: 700 26px/1.05 var(--hand); padding: 14px 20px; border-radius: 18px; transform: rotate(-5deg); box-shadow: 0 18px 40px rgba(0,42,64,.18); max-width: 230px; }
.split.reverse .split-media .note { left: auto; right: -22px; transform: rotate(5deg); }
.split h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.03em; color: var(--navy); }
.split .text p { color: var(--muted); margin-top: 18px; }
.split .text p.kick { margin-top: 0; }
.split .text .btn { margin-top: 28px; }

/* Feature cards — Container grid · Icon Box */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-grid.four { grid-template-columns: repeat(4, 1fr); }
.feat { background: #fff; border-radius: var(--r-md); padding: 30px 28px; box-shadow: 0 14px 34px rgba(0,42,64,.08); border: 1.5px solid rgba(0,60,88,.06); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.feat:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,42,64,.14); }
.feat .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--sun); color: var(--navy-deep); margin-bottom: 18px; }
.feat:nth-child(3n+2) .ico { background: #8EC5F2; }
.feat:nth-child(3n) .ico { background: #8FD18F; }
.feat h3 { font-size: 22px; letter-spacing: -.01em; color: var(--navy); line-height: 1.15; }
.feat p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.feat .tag { display: inline-block; margin-top: 14px; font: 700 20px/1 var(--hand); color: var(--leaf); transform: rotate(-3deg); }
.on-sky { background: var(--sky); }
.on-sky .feat { border-color: transparent; }

/* Photo cards — Call to Action (Pro) skin Cover */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.photo-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; text-decoration: none; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.photo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,42,64,0) 35%, rgba(0,42,64,.9) 100%); }
.photo-card:hover img { transform: scale(1.06); }
.photo-card div { padding: 26px; }
.photo-card h3 { font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.photo-card p { color: rgba(255,255,255,.88); margin-top: 8px; font-size: 16px; }
.photo-card .ages { font: 700 22px/1 var(--hand); color: var(--sun); display: inline-block; transform: rotate(-4deg); }

/* A day at school — Container · repeated Icon Box (or Loop Grid of a CPT) on a line */
.day { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; counter-reset: day; }
.day::before { content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 3px; background: repeating-linear-gradient(90deg, var(--sun) 0 14px, transparent 14px 24px); }
.day li { list-style: none; position: relative; text-align: center; }
.day .time { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 6px #fff; }
.on-sky .day .time { box-shadow: 0 0 0 6px var(--sky); }
.day b { display: block; margin-top: 16px; color: var(--navy); font-size: 18px; line-height: 1.2; }
.day span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.day li:nth-child(even) .time { background: var(--sun); color: var(--navy-deep); }

/* Timetable planner — HTML widget (or Form with Calculated field) */
.planner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 44px); box-shadow: 0 30px 70px rgba(0,42,64,.12); }
.planner fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.planner legend { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 11px 16px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: 15px; border: 2px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.choice input:checked + span { background: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.planner-out { background: var(--navy-deep); color: #fff; border-radius: var(--r-md); padding: 30px; display: grid; align-content: start; gap: 18px; position: relative; overflow: hidden; }
.planner-out .hours { font-size: clamp(54px, 6vw, 80px); font-weight: 800; line-height: 1; color: var(--sun); letter-spacing: -.03em; }
.planner-out .hours small { font-size: 20px; color: #fff; font-weight: 600; letter-spacing: 0; }
.planner-out .pack { font: 700 32px/1 var(--hand); transform: rotate(-3deg); transform-origin: left; }
.planner-out ul { list-style: none; padding: 0; display: grid; gap: 8px; color: rgba(255,255,255,.85); }
.planner-out li::before { content: "✓"; color: var(--sun); font-weight: 800; margin-right: 10px; }
.planner-out .bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.planner-out .bar i { height: 12px; border-radius: 4px; background: rgba(255,255,255,.14); transition: background .3s; }
.planner-out .bar i.on { background: var(--sun); }
.planner-out .bar-legend { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.6); margin-top: -10px; }
.planner-out .note { font-size: 14px; color: rgba(255,255,255,.65); }

/* Subjects / chips cloud */
.cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.cloud li { list-style: none; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 8px 20px rgba(0,42,64,.06); }
.cloud li:nth-child(3n+1) { background: var(--sun); color: var(--navy-deep); }

/* Downloads — Icon List / Loop Grid of «Documentos» */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; }
.docs a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1.5px solid rgba(0,60,88,.1); text-decoration: none; color: var(--navy); font-weight: 700; transition: border-color .2s, transform .2s; }
.docs a:hover { border-color: var(--sun); transform: translateX(4px); }
.docs .pdf { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--navy); }
.docs small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* FAQ — Accordion / Nested Accordion (native <details>) */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: #fff; border-radius: 18px; border: 1.5px solid rgba(0,60,88,.1); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--sun); box-shadow: 0 18px 40px rgba(0,42,64,.08); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; color: var(--navy); font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--sun) no-repeat center / 12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23002A40' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }

/* Steps — Container · 4× Icon Box numerado */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; background: #fff; border-radius: var(--r-md); padding: 74px 24px 26px; box-shadow: 0 14px 34px rgba(0,42,64,.08); }
.steps li::before { content: counter(step); position: absolute; left: 24px; top: 20px; font: 700 54px/1 var(--hand); color: var(--sun); transform: rotate(-6deg); }
.steps li:nth-child(even)::before { color: var(--leaf); }
.steps b { display: block; color: var(--navy); font-size: 20px; line-height: 1.2; }
.steps span { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Price/plan cards — Price Table (Pro) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border-radius: var(--r-lg); padding: 34px 30px; box-shadow: 0 14px 34px rgba(0,42,64,.08); display: flex; flex-direction: column; gap: 14px; border: 2px solid transparent; }
.plan.featured { border-color: var(--sun); transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,42,64,.14); }
.plan h3 { color: var(--navy); font-size: 24px; }
.plan .ages { font: 700 22px/1 var(--hand); color: var(--leaf); }
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 16px; }
.plan li::before { content: "✓"; color: var(--leaf); font-weight: 800; margin-right: 10px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .price { font-size: 15px; color: var(--muted); }
.plan .price b { display: block; font-size: 30px; color: var(--navy); letter-spacing: -.02em; }

/* News — Posts / Loop Grid (Pro) + Taxonomy Filter */
.news-tools { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { font: 700 15px/1 var(--display); padding: 12px 18px; border-radius: 999px; border: 2px solid var(--sky); background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search { position: relative; }
.search input { font: inherit; font-size: 16px; padding: 12px 18px 12px 44px; border-radius: 999px; border: 2px solid var(--sky); background: #fff; min-width: 260px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255,117,34,.45); }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 14px 34px rgba(0,42,64,.08); display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.post:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(0,42,64,.14); }
.post[hidden] { display: none; }
.post figure { aspect-ratio: 3/2; overflow: hidden; }
.post figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.post:hover figure img { transform: scale(1.05); }
.post .body { padding: 22px 24px 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.post .meta { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.post .cat { font-weight: 700; color: var(--navy); background: var(--sky); padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.post h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; color: var(--navy); }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
.post p { color: var(--muted); font-size: 16px; }
.post.featured { grid-column: span 3; display: grid; grid-template-columns: 1.3fr 1fr; }
.post.featured figure { aspect-ratio: auto; min-height: 360px; }
.post.featured .body { padding: 40px; align-content: center; }
.post.featured h3 { font-size: clamp(26px, 3vw, 38px); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty b { display: block; font: 700 34px/1 var(--hand); color: var(--navy); margin-bottom: 8px; }
.empty[hidden] { display: none; }

/* Single post — Theme Builder › Single Post */
.article { max-width: 760px; margin-inline: auto; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; margin: -40px 0 50px; box-shadow: 0 30px 60px rgba(0,42,64,.14); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 19px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; color: var(--navy); margin-top: 1.6em; }
.prose blockquote { font-size: 26px; border-left: 5px solid var(--sun); padding-left: 24px; }
.prose ul { padding-left: 1.2em; }
.prose figure img { border-radius: var(--r-md); }
.prose figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 50px; padding-top: 26px; border-top: 2px solid var(--sky); }
.share b { color: var(--navy); margin-right: 6px; }
.share a, .share button { font: 700 14px/1 var(--display); padding: 11px 16px; border-radius: 999px; background: var(--sky); color: var(--navy); border: 0; cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { background: var(--sun); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; }
.post-nav a { color: var(--navy); font-weight: 700; text-decoration: none; }

/* Contact — Icon Box cards + Google Maps widget */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.c-card { background: #fff; border-radius: var(--r-md); padding: 26px; box-shadow: 0 14px 34px rgba(0,42,64,.08); display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; transition: transform .3s; }
a.c-card:hover { transform: translateY(-5px); }
.c-card .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--sun); color: var(--navy-deep); display: grid; place-items: center; margin-bottom: 8px; }
.c-card b { color: var(--navy); font-size: 18px; }
.c-card span { color: var(--muted); font-size: 16px; }
.map-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: stretch; }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; background: var(--sky); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.how { background: var(--navy-deep); color: #fff; border-radius: var(--r-lg); padding: 36px; display: grid; gap: 18px; align-content: start; }
.how h3 { font: 700 34px/1 var(--hand); color: var(--sun); transform: rotate(-3deg); transform-origin: left; }
.how ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; color: rgba(255,255,255,.85); }
.how li b { display: block; color: #fff; }
.how .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--sun); }
.how .btn { justify-self: start; }

/* Forms on light backgrounds reuse .visit-form */
.form-sec .visit-form { box-shadow: 0 30px 70px rgba(0,42,64,.14); }
.form-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.form-split h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.03em; color: var(--navy); }
.form-split .text p { color: var(--muted); margin-top: 18px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }

/* Big quote band */
.say { background: var(--sun); border-radius: var(--r-lg); padding: clamp(36px, 5vw, 70px); display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.say p { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; color: var(--navy-deep); font-weight: 700; letter-spacing: -.02em; }
.say cite { display: block; margin-top: 16px; font: 700 26px/1 var(--hand); color: var(--navy); font-style: normal; }
.say img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; }

/* Small CTA band at the end of inner pages */
.mini-cta { background: var(--navy-deep); color: #fff; border-radius: var(--r-lg); padding: clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 26px; position: relative; overflow: hidden; }
.mini-cta h2 { font: 700 clamp(40px, 5vw, 64px)/.95 var(--hand); transform: rotate(-3deg); transform-origin: left; }
.mini-cta h2 em { font-style: normal; color: var(--sun); }
.mini-cta p { color: rgba(255,255,255,.8); margin-top: 10px; max-width: 46ch; }
.mini-cta .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.mini-cta .btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.mini-cta .sun { width: 220px; height: 220px; right: -70px; top: -70px; opacity: .5; }

/* Legal */
.legal { max-width: 820px; }
.legal section + section { margin-top: 60px; padding-top: 50px; border-top: 2px solid var(--sky); }
.legal h2 { font-size: 34px; color: var(--navy); letter-spacing: -.02em; scroll-margin-top: 110px; }
.legal p, .legal li { color: var(--muted); margin-top: 12px; }
.pending { display: inline-block; font-size: 13px; font-weight: 700; color: #8A3500; background: #FFEADC; padding: 3px 10px; border-radius: 999px; }

/* Toast for prototype-only links */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; translate: -50% 20px; opacity: 0; background: var(--navy-deep); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.25); font-size: 15px; font-weight: 600; transition: opacity .3s, translate .3s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }

.sec-tight { padding: clamp(50px, 6vw, 90px) 0; }
.center { text-align: center; }
.head.center { justify-content: center; text-align: center; }
.head.center h2 { max-width: none; }

@media (max-width: 1024px) {
  .feat-grid, .feat-grid.four, .photo-grid, .plans, .news-grid { grid-template-columns: 1fr 1fr; }
  .post.featured { grid-column: span 2; }
  .steps, .contact-grid { grid-template-columns: 1fr 1fr; }
  .day { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .day::before { display: none; }
  .planner, .map-wrap, .form-split { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .page-hero .sticker { display: none; }
}
@media (max-width: 680px) {
  .page-hero { align-items: flex-end; padding: 110px 0 110px; min-height: 86svh; }
  .page-hero::before { background: linear-gradient(180deg, rgba(255,255,255,0) 8%, rgba(255,255,255,.88) 50%, #fff 72%); }
  .page-hero-bg img { height: 64%; object-position: 70% 30%; }
  .page-hero.is-compact { min-height: 0; padding: 120px 0 90px; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media .note, .split.reverse .split-media .note { left: 10px; right: auto; bottom: -18px; font-size: 22px; }
  .feat-grid, .feat-grid.four, .photo-grid, .plans, .news-grid, .steps, .contact-grid, .docs { grid-template-columns: 1fr; }
  .post.featured { grid-column: auto; grid-template-columns: 1fr; }
  .post.featured figure { min-height: 220px; }
  .post.featured .body { padding: 24px; }
  .day { grid-template-columns: 1fr 1fr; }
  .search, .search input { width: 100%; min-width: 0; }
  .say { grid-template-columns: 1fr; }
  .say img { width: 100px; height: 100px; }
  .prose { font-size: 17px; }
  .article-cover { margin-top: -20px; }
}

.post-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 14px; font-size: 15px; }
.post-meta .cat, .post .cat { font-weight: 700; color: var(--navy); background: #fff; padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.post .cat { background: var(--sky); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Keeps the transparent header readable over the photo */
.page-hero-bg::after { content: ""; position: absolute; inset: 0 0 auto; height: 150px; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,0)); }
.photo-grid.two { grid-template-columns: 1fr 1fr; }
.photo-grid.two .photo-card { min-height: 460px; }
.text .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.text .chips li { padding: 8px 14px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: 14px; }
@media (max-width: 680px) { .photo-grid.two { grid-template-columns: 1fr; } .photo-grid.two .photo-card { min-height: 380px; } }

.photo-grid.one { grid-template-columns: 1fr; }
.photo-grid.one .photo-card { min-height: 420px; }

/* Family app block (contacta.html#app-familias): logo + store buttons, pending real assets */
.app-block { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: 0 14px 34px rgba(0,42,64,.08); }
.app-logo { width: 96px; height: 96px; border-radius: 24px; background: var(--sky); border: 2px dashed rgba(0,60,88,.35); display: grid; place-items: center; text-align: center; padding: 8px; }
.app-logo span { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.app-copy h2 { font-size: clamp(26px, 3vw, 34px); color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.app-copy p { color: var(--muted); margin-top: 8px; }
.app-copy p.pending { color: #8A3500; margin-top: 12px; }
.app-stores { display: grid; gap: 10px; }
.store-btn { display: grid; min-width: 180px; padding: 10px 18px; border-radius: 14px; background: var(--navy-deep); color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; line-height: 1.15; }
.store-btn small { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.store-btn:hover { background: var(--navy); }
.store-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (max-width: 680px) { .app-block { grid-template-columns: 1fr; } .app-stores { grid-template-columns: 1fr 1fr; } .store-btn { min-width: 0; } }

/* Proyecto educativo (colegio.html#proyecto): numbered principles + biblical message */
.principles { list-style: none; padding: 0; margin: 0; }
.feat .ico.num { font: 800 26px/1 var(--display); color: var(--navy-deep); }
.verse { margin: 60px auto 0; max-width: 760px; text-align: center; }
.verse p { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.02em; color: var(--navy); font-weight: 800; }
.verse cite { display: inline-block; margin-top: 14px; font: 700 28px/1 var(--hand); font-style: normal; color: #8A3500; transform: rotate(-3deg); }

/* Real team photos are shown untouched (no colour filter) */
.t-card img, .t-card:hover img { filter: none; }

/* App download: footer strip (all pages) + contact block with official badges */
.foot-app { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 40px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.foot-app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.foot-app-copy { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
.foot-app-copy b { font-size: 18px; color: #fff; }
.foot-app-copy span { font-size: 14.5px; color: rgba(255,255,255,.82); }
.foot-app-stores { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-app-stores a { display: inline-flex; border-radius: 10px; }
.foot-app-stores img { height: 44px; width: auto; display: block; }
.foot-app-stores a:focus-visible, .app-stores-badges a:focus-visible { outline: 3px solid #FF7522; outline-offset: 3px; }
.app-logo-img { border: 0; padding: 0; background: none; width: 120px; height: 120px; border-radius: 28px; object-fit: cover; box-shadow: 0 12px 30px rgba(0,42,64,.2); }
.app-stores-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-stores-badges a { display: inline-flex; border-radius: 10px; }
.app-stores-badges img { height: 52px; width: auto; display: block; }
@media (max-width: 680px) {
  .foot-app { padding: 18px; gap: 14px; }
  .foot-app-stores { width: 100%; }
  .foot-app-stores img { height: 42px; }
}

/* ===== Vertical rhythm + shape dividers (QA pass, Nov 2026) =====
   One spacing scale for every section (Elementor: Container padding top/bottom per breakpoint).
   Before: .sec/.x-sec clamp(80px,10vw,140px), .sec-tight clamp(50px,6vw,90px), heads 48–52px. */
:root {
  --sec-y: clamp(44px, 6.2vw, 88px);        /* 44px mobile · ~63px at 1024 · 88px desktop */
  --sec-y-tight: clamp(36px, 4.4vw, 64px);
  --head-gap: clamp(28px, 3vw, 40px);
}
.sec, .x-sec { padding-block: var(--sec-y); }
.sec-tight { padding-block: var(--sec-y-tight); }
.team-sec { padding-bottom: clamp(24px, 3vw, 44px); } /* the carousel track adds 60px of its own */
.intro { padding: clamp(48px, 6vw, 88px) 0 clamp(16px, 2vw, 28px); }
.lema-sec { padding-block: clamp(32px, 4vw, 56px) var(--sec-y); }
.lema-row { margin-top: clamp(48px, 6vw, 88px); }
.head, .x-head { margin-bottom: var(--head-gap); }
.ig-lead { margin: calc(24px - var(--head-gap)) auto 32px; }
/* Two white sections in a row: one gap, not two */
main > :is(.sec, .x-sec, .sec-tight):not(.on-sky, .spaces-sec, .ig-sec, .pe-sec) + :is(.sec, .x-sec, .sec-tight):not(.on-sky, .spaces-sec, .ig-sec, .pe-sec) { padding-top: calc(var(--sec-y) * .25); }

/* Shape dividers where the background colour changes (Elementor: Container › Style › Shape Divider,
   top = flipped, bottom = normal). One wave for the whole site, same family as the hero wave.
   Colour = the neighbouring section's background. Behind the content, no pointer events. */
:root { --divider-h: clamp(28px, 4vw, 60px); --foot-bg: #002A40; }
.sec-divider { position: absolute; left: 0; right: 0; height: var(--divider-h); line-height: 0; pointer-events: none; z-index: 0; }
.sec-divider svg { display: block; width: 100%; height: 100%; }
.sec-divider.is-top { top: -1px; transform: scaleY(-1); }
.sec-divider.is-bottom { bottom: -1px; }
main > section:has(> .sec-divider) { position: relative; }
main > section:has(> .sec-divider) > .wrap { position: relative; z-index: 1; }
main > section:has(> .sec-divider.is-top) { padding-top: calc(var(--sec-y) + var(--divider-h) * .5); }
main > section:has(> .sec-divider.is-bottom) { padding-bottom: calc(var(--sec-y) + var(--divider-h) * .5); }
main > section.sec-tight:has(> .sec-divider.is-top) { padding-top: calc(var(--sec-y-tight) + var(--divider-h) * .5); }
main > section.sec-tight:has(> .sec-divider.is-bottom) { padding-bottom: calc(var(--sec-y-tight) + var(--divider-h) * .5); }

/* Madrugadores: wider media column, crop focused on the people */
.split.split-wide { grid-template-columns: 1fr 1.45fr; }
.split-wide .split-media .main { aspect-ratio: 4/3; }
.split-wide .split-media .main img { object-position: 22% 70%; transform: scale(1.12); transform-origin: 22% 70%; }
@media (max-width: 1024px) { .split.split-wide { grid-template-columns: 1fr; } }

/* Iglesias: 7 cards, the incomplete last row is centred (Elementor: Container › Flex wrap + justify center) */
.ig-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.ig-grid li { flex: 0 1 calc((100% - 3 * 18px) / 4); min-width: 0; }
@media (max-width: 1024px) { .ig-grid li { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 680px) { .ig-grid li { flex-basis: 100%; } }

/* Home: Iglesias (sky) meets the visit CTA (navy) directly through a divider: no white strip,
   no rounded top (Elementor: Container margin 0, border radius 0). The CTA's own padding holds both dividers. */
.cta { margin-top: 0; border-radius: 0; }
.cta-inner { padding-block: calc(clamp(56px, 6vw, 88px) + var(--divider-h) * .5); }

/* Admission steps that are links: the padding lives on the <a>, not on the card (was doubled: 74px + 74px) */
.steps.steps-link li { padding: 0; }

@media (max-width: 680px) {
  /* Calendar tabs: three equal tabs on one row instead of a lone third tab */
  .cal-tabs [role="tablist"] { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 22px; }
  .cal-tabs [role="tab"] { padding: 13px 4px; font-size: 13.5px; white-space: nowrap; }
  /* Prototype-only toggles: one compact row (Elementor overlay left, content origin right) */
  .el-toggle, .og-toggle { bottom: 12px; padding: 9px 12px; font-size: 12px; }
  .el-toggle { left: 12px; }
  .og-toggle { left: auto; right: 12px; }
  .og-legend { left: auto; right: 12px; bottom: 56px; }
  .site-footer { padding-bottom: 76px; } /* the last footer line stays readable above the toggles */
}
/* Page-hero H1 on phones: the longest word («descubrimientos») must fit 320px; .line clips overflow for the rise animation */
@media (max-width: 680px) { .page-hero h1 { font-size: clamp(34px, 10.8vw, 44px); } }
/* Footer column titles are h2 (heading order: h2 → h2, was h2 → h4); same look as before */
.site-footer .foot-h { color: #fff; font-size: 16px; line-height: 1.6; letter-spacing: 0; margin: 0 0 14px; }
/* Single-column grids may shrink below their content's min width (fixes 5px overflow of forms at 360px) */
@media (max-width: 1024px) { .form-split, .cta-inner, .planner, .map-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .visit-form .row.two { grid-template-columns: minmax(0, 1fr); }
  .visit-form input:not([type="checkbox"]), .visit-form select, .visit-form textarea { min-width: 0; width: 100%; }
  .cta h2 { font-size: clamp(42px, 12.5vw, 52px); }
  .motto { right: 26px; }
}
/* Tablets: the copy column is wider relative to the photo, so the white veil reaches further
   (lead text was sitting on faces at 768px). Phones keep their vertical gradient. */
@media (min-width: 681px) and (max-width: 1024px) {
  /* Elementor: Background Overlay › Gradient, 2 colours: #FFFFFF 94% at 54% → transparent at 84%, angle 90° */
  .hero::before, .page-hero:not(.is-compact)::before { background: linear-gradient(90deg, rgba(255,255,255,.94) 54%, rgba(255,255,255,0) 84%); }
}
/* Tablets: the hand-written motto (photo slides) sat on the end of the H1; lift it under the header */
@media (min-width: 681px) and (max-width: 1024px) { .motto { top: 14%; right: 4%; } }
/* Chip lists (<ul class="cloud">) started 40px in from the text column: browser default list padding */
.cloud { padding: 0; }
/* Single post meta (category · date · author) wraps as whole items on phones instead of squeezing the date */
.post-meta { flex-wrap: wrap; row-gap: 6px; }
.post-meta > * { white-space: nowrap; }
@media (max-width: 680px) { .share a, .share button { padding-block: 13px; } } /* ≥40px tap height */
