/* Distrito, an escuelas template. Rebuilt 2026-11-10 as plain HTML/CSS (no scripts, no source photos) from the Webflow
   cloneable "Purcell Schools Website" by Ben Parker (https://webflow.com/made-in-webflow/website/purcell-schools-website),
   dedicated to the public domain under CC0 1.0 (see LICENSE).
   Fonts: Poppins (in place of the commercial Circular Std) and Open Sans, SIL Open Font License, via Google Fonts.
   Icons: Lucide. Copyright (c) 2026 Lucide Icons and Contributors. ISC License:
   Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby
   granted, provided that the above copyright notice and this permission notice appear in all copies.
   THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
   INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
   THIS SOFTWARE.
   Some Lucide icons derive from Feather: Copyright (c) 2013-present Cole Bemis. MIT License:
   Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
   documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
   rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
   persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and
   this permission notice shall be included in all copies or substantial portions of the Software.
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
   WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
   COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
   OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

:root{
  /* The school's colours (TEMPLATE-SPEC "Colours are never fixed"): the source's own by default.
     The builder overrides these after this stylesheet; everything below derives from them. */
  --esc-primary:#ba1f26;   /* the source's firebrick: header band, hero, page titles, gallery, footer, buttons */
  --esc-secondary:#e1ff00; /* the source's alert-banner border */
  --esc-accent:#ba1f26;    /* the source's link red: links, date titles, "clases suspendidas" */
  --esc-bg:#ffffff;
  --esc-text:#333333;      /* Webflow's body text */
  --esc-primary-ink:#ffffff;--esc-secondary-ink:#000000;--esc-accent-ink:#ffffff;--esc-bg-ink:#333333;
  --esc-primary-text:#ba1f26;--esc-secondary-text:#5f6b00;--esc-accent-text:#ba1f26;
  /* The source's greys, now mixes of text into the page colour (so a dark page works too). */
  --white-smoke:color-mix(in srgb,var(--esc-text) 4%,var(--esc-bg));
  --gainsboro-3:color-mix(in srgb,var(--esc-text) 15%,var(--esc-bg));
  --gainsboro:color-mix(in srgb,var(--esc-text) 18%,var(--esc-bg));
  --dark-grey:color-mix(in srgb,var(--esc-text) 42%,var(--esc-bg));
  --rule:color-mix(in srgb,var(--esc-text) 20%,transparent);
  --rule-soft:color-mix(in srgb,var(--esc-text) 9%,transparent);
  --band-line:color-mix(in srgb,var(--esc-primary-ink) 45%,transparent);
  --band-soft:color-mix(in srgb,var(--esc-primary-ink) 85%,var(--esc-primary));
  --pill-hover:color-mix(in srgb,var(--esc-bg) 86%,var(--esc-text));
  --link:var(--esc-accent-text);
  --head:"Poppins",sans-serif;
  --body:"Open Sans",sans-serif;
}

/* ---------- base (Webflow + the source's tag styles) ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100%;background:var(--esc-bg);color:var(--esc-text);font-family:var(--body);font-size:15px;line-height:24px;overflow-x:hidden}
img{display:block;max-width:100%;border:0}
figure{margin:0}
h1,h2,h3,h4,h5,h6{font-family:var(--head);font-weight:600;color:inherit}
h1{margin:20px 0 10px;font-size:38px;line-height:44px}
h2{margin:20px 0 10px;font-size:32px;line-height:38px}
h3{margin:20px 0 10px;font-size:24px;line-height:30px;font-weight:500}
h4{margin:10px 0 10px;font-size:18px;line-height:24px;font-weight:500}
p{margin:0 0 10px;font-family:var(--body);line-height:24px}
a{color:var(--link);text-decoration:underline}
a:hover{text-decoration:none}
ul,ol{margin:0 0 10px;padding-left:25px}
blockquote{margin:0 0 10px;padding:10px 20px;background:var(--white-smoke);border-left:5px solid var(--esc-primary);border-radius:0 30px 30px 0;font-family:var(--head);font-size:18px;line-height:26px}
:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.sr,.redtexto--icono{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.w-container{max-width:940px;margin:0 auto}
.w-richtext>:first-child{margin-top:0}
.w-richtext p:last-child{margin-bottom:0}
.footline svg,.footerql svg,.banner-icon svg,.doclinks svg,.lilist--faq svg,.menubutton svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* The source's repeating school-icon pattern on every coloured band, drawn as a mask so it takes the band's ink. */

/* ---------- header (.navbar over the first band) ---------- */
.navbar{position:absolute;top:0;left:0;right:0;z-index:10;margin-top:15px;color:var(--esc-primary-ink)}
.navcontain{max-width:1240px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;flex:0 1 auto;min-width:0}
.brandcircle,.footerlogo{position:relative;flex:none;display:block;border-radius:50%;background:var(--esc-bg);color:var(--esc-primary-text);overflow:hidden}
.brandcircle{width:70px;height:70px}
.brandlogo{position:absolute;inset:0;z-index:1;min-height:0;border-radius:50%;overflow:hidden;background:var(--esc-bg)}
.brandlogo img{width:100%;height:100%;object-fit:contain;padding:8%}
.brandinitials{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--head);font-weight:600;font-size:24px;line-height:1}
.brandlogo:not([data-esc-empty])+.brandinitials{display:none}
.brandname{font-family:var(--head);font-weight:500;font-size:18px;line-height:22px;max-width:11em;overflow-wrap:break-word}
.navmenu{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;row-gap:4px}
.navlink{color:var(--esc-primary-ink);margin:0 7px;padding:6px 0 3px;border-bottom:3px solid transparent;font-family:var(--head);font-size:15px;font-weight:500;line-height:22px;text-decoration:none;white-space:nowrap}
.navlink:hover,.navlink[aria-current]{border-bottom-color:var(--esc-primary-ink)}
.navlink.navbutton{margin:0 0 0 8px;padding:10px 16px;border:0;border-radius:25px;background:var(--esc-bg);color:var(--esc-primary-text);transition:background-color .2s}
.navlink.navbutton:hover,.navlink.navbutton[aria-current]{background:var(--pill-hover)}
.menubutton{display:none;flex:none;width:48px;height:48px;padding:10px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--esc-primary-ink);cursor:pointer}
.menubutton svg{width:28px;height:28px}
.menubutton .icon-close,.esc-nav-open .menubutton .icon-open{display:none}
.esc-nav-open .menubutton .icon-close{display:block}

/* ---------- hero (.herosection: crest + title, and the "2 Minute Drill" column) ---------- */
.herosection{background-color:var(--esc-primary);color:var(--esc-primary-ink);padding:125px 20px 40px}
.herocontain{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center}
.herocol-left{text-align:center}
.heroimg{width:220px;height:220px;margin:0 auto 10px;border-radius:50%;overflow:hidden;background:var(--esc-bg);min-height:0}
.heroimg img{width:100%;height:100%;object-fit:contain;padding:12%}
.herotitle{margin:1px 0 6px;color:var(--esc-primary-ink);text-align:center;overflow-wrap:break-word}
.herolevels{color:var(--band-soft);font-family:var(--head);font-size:16px;margin:0}
.hero2minutewrapper{padding:15px 10px;border-radius:15px}
.herovideo{width:100%;aspect-ratio:16/9;overflow:hidden;margin:0 0 10px}
.herovideo img{width:100%;height:100%;object-fit:cover}
._2drilldiv{border-top:1px solid var(--band-line);border-bottom:1px solid var(--band-line);margin:10px 0;padding:10px 0}
._2drilldiv p{color:var(--esc-primary-ink);margin:0 0 8px}
._2drilldiv p:last-child{margin-bottom:0}
.qldiv{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;padding-top:15px;border-top:1px solid var(--band-line)}
._2drilldiv+.qldiv{border-top:0;padding-top:5px}
.messagebutton,.qlbutton{display:block;border-radius:25px;background:var(--esc-bg);color:var(--esc-primary-text);font-family:var(--head);text-align:center;text-decoration:none;transition:background-color .2s}
.messagebutton{flex:1 1 100%;padding:14px 20px;font-size:16px;font-weight:500}
.qlbutton{flex:1 1 auto;padding:12px 16px;font-size:14px}
.messagebutton:hover,.qlbutton:hover{background:var(--pill-hover)}

/* ---------- ¿Hay clases hoy? (.some-message-banner: the alert band with its 5px border) ---------- */
.message-section{background:var(--esc-primary);color:var(--esc-primary-ink);border:5px solid var(--esc-secondary);padding:34px 20px}
.message-section--normal{background:var(--white-smoke);color:var(--esc-text);border-color:var(--esc-primary)}
.message-section--especial{background:var(--esc-secondary);color:var(--esc-secondary-ink);border-color:var(--esc-primary)}
.message-section--suspendidas{background:var(--esc-accent);color:var(--esc-accent-ink);border-color:var(--esc-secondary);padding:48px 20px}
.banner-label{margin:0 0 4px;font-family:var(--head);font-size:15px;font-weight:500}
.some-message-banner h2{display:flex;align-items:center;gap:12px;margin:0 0 8px}
.message-section--normal h2{color:var(--esc-primary-text)}
.banner-icon{display:flex;flex:none}
.banner-icon svg{width:32px;height:32px}
.banner-text{margin:0;max-width:760px}

/* ---------- accesos rápidos (the hero's white pills on a band) ---------- */
.quicksection{background:var(--esc-primary);padding:20px}
.quickrow{display:flex;flex-wrap:wrap;gap:8px}

/* ---------- news (.newssection + the white .juicerdiv card) ---------- */
.newssection{padding:55px 25px}
.newsheading{margin:0 auto 35px;color:var(--esc-primary-text);text-align:center}
.juicerdiv{background:var(--esc-bg);border-radius:25px;padding:25px;box-shadow:0 1px 18px -2px rgba(0,0,0,.14)}
.newsgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:30px}
.newsimg{aspect-ratio:16/10;border-radius:10px;overflow:hidden;margin:0 0 12px}
.newsimg img{width:100%;height:100%;object-fit:cover}
.newsmeta{margin:0 0 4px;font-size:13px;font-weight:700;line-height:20px}
.newskind{color:var(--esc-primary-text)}
.newstitle{margin:0 0 6px;font-size:18px;line-height:24px;font-weight:500}
.newstitle a{color:var(--link);text-decoration:none}
.newstitle a:hover{text-decoration:underline}
.newssummary{margin:0}
.buttonrow{margin:30px 0 0;text-align:center}
.buttonrow--left{text-align:left;margin-top:20px}
.button{display:inline-block;padding:10px 20px;border:3px solid var(--esc-primary);border-radius:30px;background:var(--esc-primary);color:var(--esc-primary-ink);font-family:var(--head);font-size:15px;font-weight:500;line-height:22px;text-decoration:none;transition:background-color .2s,color .2s}
.button:hover{background:transparent;color:var(--esc-primary-text)}
.ctacard{text-align:center;max-width:720px;margin:0 auto;padding:35px 25px}
.ctacard .newsheading{margin-bottom:10px}
.ctatext{font-size:16px;margin:0}
.ctacard .buttonrow{margin-top:20px}

/* ---------- dates (.seasonalsection + .calendardiv card + the "Athletic Information" .seasonaldiv list) ---------- */
.seasonalsection{background:var(--white-smoke);padding:55px 20px}
.calendardiv{max-width:560px;margin:0 auto;padding:20px 20px 25px;background:var(--esc-bg);border-radius:15px;box-shadow:0 1px 18px -2px rgba(0,0,0,.24)}
.calendarpage{max-width:700px;margin:0 auto}
.calendarheading{margin:0 0 20px;text-align:center;font-size:25px;line-height:32px;font-weight:500}
.seasonaldiv{list-style:none;margin:0;padding:0;border-top:5px solid var(--esc-primary)}
.seasonalitem{min-height:70px;padding:10px;border:1px solid var(--gainsboro-3);border-top:0;font-size:15px}
.seasonaltitle{margin:0;color:var(--link);font-family:var(--body);font-size:16px;line-height:22px;font-weight:400}
.seasonaldescription{margin:5px 0 0;font-size:14px;line-height:20px;font-weight:700}
.seasonalnote{margin:4px 0 0;font-size:14px;line-height:20px}

/* ---------- inner page blocks (.pagetitlebar, .pagesection, rich text) ---------- */
.pagetitlebar{background-color:var(--esc-primary);color:var(--esc-primary-ink);padding:110px 20px 18px}
.titlecontain{border-top:1px solid color-mix(in srgb,var(--esc-primary-ink) 27%,transparent);margin-top:10px}
.pagetitle{margin:10px 0 0;color:var(--esc-primary-ink);overflow-wrap:break-word}
.pagesubtitle{margin:4px 0 0;color:var(--band-soft);font-size:16px}
.pagesection{padding:55px 0}
.pagesection+.esc-anchor+.pagesection,.pagesection+.pagesection{padding-top:15px}
.pagecontain{padding:0 20px}
.sectionheading{margin:0 0 25px}
.narrowtext{max-width:700px}
.w-row{display:grid;grid-template-columns:7fr 5fr;gap:30px;align-items:start}
.w-row--solo{grid-template-columns:minmax(0,760px)}
.roundphoto{aspect-ratio:4/3;border-radius:15px;overflow:hidden}
.roundphoto img{width:100%;height:100%;object-fit:cover}
.valuelist li{margin-bottom:4px}

/* ---------- people (.adminwrapper pills of the Administration page) ---------- */
.adminlist{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}
.adminwrapper{display:flex;align-items:center;background:var(--white-smoke);border-radius:78px;margin-bottom:17px;padding:5px;min-height:100px}
.adminimg{flex:none;width:100px;height:100px;min-height:0;border-radius:100%;overflow:hidden}
.adminimg img{width:100%;height:100%;object-fit:cover}
.adminholder{flex:1 1 auto;min-width:0;margin:10px 30px 10px 45px}
.adminimg+.adminholder{margin-left:20px}
.adminimg[data-esc-empty]+.adminholder{margin-left:45px}
.adminname{margin:5px 10px 0 0;padding-bottom:4px;border-bottom:1px solid var(--rule-soft);font-size:22px;line-height:28px;font-weight:500;overflow-wrap:break-word}
.adminposition{margin:6px 0 0;font-size:14px;line-height:20px}
.adminwrapper--sign{max-width:460px;margin-top:25px}
/* Staff without photos, six or more (often 20–40 people): a tight list of small pills, name + role beside a small initial,
   three to a row (two on phones; a short last row centred), so a whole team takes a screen or two instead of a wall of big empty circles. */
.admininitial{display:none}
.adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty]))){display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty])))>.adminwrapper{flex:0 0 calc((100% - 20px)/3);min-width:0;min-height:0;margin:0;padding:8px 14px 8px 8px;border-radius:30px;width:auto}
.adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty])))>.adminwrapper>.adminimg{width:40px;height:40px;min-height:0}
.adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty])))>.adminwrapper>.admininitial{display:flex;flex:none;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--esc-primary);color:var(--esc-primary-ink);font-family:var(--head);font-size:17px;font-weight:600;line-height:1}
html:has(meta[name="esc-owner"]) .adminlist .adminimg[data-esc-empty]+.admininitial{display:none}
.adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty]))) .adminholder{margin:0 0 0 12px}
.adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty]))) .adminname{margin:0;padding-bottom:2px;font-size:16px;line-height:21px}
.adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty]))) .adminposition{margin:3px 0 0;font-size:13px;line-height:18px}

/* ---------- levels (.schoolrow columns of the Schools page) ---------- */
.schoolrow{display:flex;flex-wrap:wrap;justify-content:center;gap:30px}
.schoolcol{flex:1 1 100%;min-width:0}
.schoolname{margin:12px 0 10px}
.roundphoto--small{margin-bottom:4px}
.buttonsite{display:inline-block;margin:0 0 10px;padding:6px 16px;border-radius:30px;background:var(--esc-primary);color:var(--esc-primary-ink);font-size:13px;line-height:20px}

/* ---------- numbers (.transitionsection with the big .hashtagheader type) ---------- */
.transitionsection{padding:90px 20px;background-image:radial-gradient(circle,color-mix(in srgb,var(--esc-bg) 70%,transparent),var(--esc-bg));background-color:color-mix(in srgb,var(--esc-primary) 16%,var(--esc-bg))}
.statrow{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,260px);justify-content:center;gap:30px 40px}
/* Each number is sized to its own column (container units), so "3870 m" stays on one line in a row of four. */
.statitem{margin:0;text-align:center;min-width:0;container-type:inline-size}
.hashtagheader{display:block;color:var(--esc-primary-text);font-family:var(--head);font-weight:600;font-size:min(72px,24cqi);line-height:1}
.statlabel{display:block;margin-top:10px;font-family:var(--head);font-size:18px;line-height:24px}

/* ---------- admissions + day to day (.rowaschedule / .rowbschedule: the Bell Schedule rows) ---------- */
.admrow{grid-template-columns:8fr 4fr}
.sort{display:inline-block;margin:0 0 6px;padding:9px 25px;border-radius:25px;background:var(--esc-primary);color:var(--esc-primary-ink);font-family:var(--head);font-size:16px;line-height:22px}
.admperiod{margin-top:8px}
.schedule{list-style:none;margin:10px 0 20px;padding:0}
.schedule>li,.schedule>div{display:grid;grid-template-columns:60px 1fr;gap:10px;align-items:baseline;margin:0;padding:12px 10px;border-radius:3px}
.rowaschedule{background:var(--white-smoke)}
.rowbschedule{background:var(--gainsboro-3)}
.schedtime{margin:0;font-family:var(--head);font-size:24px;line-height:30px;font-weight:600}
.schedtext{margin:0;font-size:15px}
.schedule--daily>div{grid-template-columns:4fr 8fr;gap:20px;padding:16px 10px}
.schedule--daily .schedtime{font-size:22px;line-height:28px;font-weight:500}
.sidebox{margin-bottom:25px}
.sidebox h4,.sidebox h3{margin-top:0}
.doclist{padding-left:20px}
.doclist li{margin-bottom:6px}

/* ---------- needs (.clubscontainer of Clubs & Activities) ---------- */
.clubscontainer{background:var(--white-smoke);border-radius:40px;margin-bottom:25px;padding:22px 40px 26px 45px}
.clubheading{margin:0 0 8px;font-size:27px;line-height:34px;font-weight:500}
.needsection .narrowtext{margin-bottom:25px}
.clubscontainer:not(:has(.w-richtext>*)) .clubheading{margin:0}

/* ---------- gallery (.gallerysection: "Student Life" band) ---------- */
.gallerysection{background-color:var(--esc-primary);color:var(--esc-primary-ink);padding:55px 20px}
.galleryheading{margin:0 0 30px;text-align:center;color:var(--esc-primary-ink)}
/* Three to a row; a short last row sits centred (5, 7 photos), never a lone photo against an empty column. */
.gallerygrid{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}
.galleryitem{flex:0 0 calc((100% - 40px)/3);min-width:0}
.galleryimg{aspect-ratio:4/3;border-radius:15px;overflow:hidden}
.galleryimg img{width:100%;height:100%;object-fit:cover}
.galleryitem figcaption{margin-top:8px;text-align:center;font-size:14px;line-height:20px;color:var(--esc-primary-ink)}
.galleryimg[data-esc-empty]+figcaption{display:none}
html:not(:has(meta[name="esc-owner"])) .galleryitem:has(>.galleryimg[data-esc-empty]){display:none}

/* ---------- avisos, cuentos, preguntas (.lilist cards of the teacher directory) ---------- */
.lilist{display:block;background:var(--white-smoke);border-radius:80px;margin-bottom:25px;padding:25px 40px}
.lilist--long,.lilist--faq{border-radius:30px}
.lilist--long{padding:30px 40px}
.name{margin:0;font-family:var(--head);font-size:22px;line-height:28px;font-weight:500}
.lilistmeta{margin:8px 0 0}
.bname{margin-right:8px;color:var(--esc-primary-text);font-size:15px;font-weight:700}
.position{font-size:14px}
.lilistimg{aspect-ratio:16/9;max-width:640px;border-radius:15px;overflow:hidden;margin:15px 0 0}
.lilistimg img{width:100%;height:100%;object-fit:cover}
.detailrow{border-top:1px solid var(--rule);margin-top:12px;padding-top:12px}
.lilist--faq summary{display:flex;justify-content:space-between;align-items:center;gap:15px;cursor:pointer;list-style:none}
.lilist--faq summary::-webkit-details-marker{display:none}
.lilist--faq summary svg{flex:none;width:24px;height:24px;color:var(--esc-primary-text);transition:transform .2s}
.lilist--faq[open] summary svg{transform:rotate(180deg)}

/* ---------- contact (Contact page: .concol1 lines + social circles) ---------- */
.contactrow{grid-template-columns:minmax(240px,1fr) 2fr;gap:40px}
.footerpara.contactpara{color:var(--esc-text);font-family:var(--head);font-size:15px;line-height:22px}
.footline{display:flex;gap:8px;align-items:flex-start;margin:0 0 16px;font-family:var(--head)}
.footline svg{flex:none;width:18px;height:18px;margin-top:2px}
.footline small{font-size:13px}
.contactlink{color:var(--link);overflow-wrap:anywhere}
.redes{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 10px}
.socialmedialink{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 16px;border-radius:24px;background:var(--esc-bg);color:var(--esc-primary-text);font-family:var(--head);font-size:14px;text-decoration:none}
.socialmedialink:hover{background:var(--gainsboro-3)}
.socialmedialink.linksm{background:var(--esc-primary);color:var(--esc-primary-ink)}
.socialmedialink.linksm:hover{background:color-mix(in srgb,var(--esc-primary) 80%,var(--esc-text))}
.socialmedialink[data-red=facebook],.socialmedialink[data-red=instagram],.socialmedialink[data-red=youtube]{width:48px;padding:0}
.socialmedialink[data-red=facebook] .redtexto,.socialmedialink[data-red=instagram] .redtexto,.socialmedialink[data-red=youtube] .redtexto{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.socialmedialink[data-red=facebook]::before,.socialmedialink[data-red=instagram]::before,.socialmedialink[data-red=youtube]::before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.socialmedialink[data-red=facebook]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E")}
.socialmedialink[data-red=instagram]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='20' x='2' y='2' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' x2='17.51' y1='6.5' y2='6.5'/%3E%3C/svg%3E")}
.socialmedialink[data-red=youtube]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17'/%3E%3Cpath d='m10 15 5-3-5-3z'/%3E%3C/svg%3E")}

/* ---------- documents (Documents page: rich-text columns of links) ---------- */
.docheading{margin:0 0 15px}
.doclinks{list-style:none;padding:0;margin:0;columns:3 240px;column-gap:30px}
.doclinks li{break-inside:avoid;margin:0 0 10px}
.doclinks a{display:inline-flex;gap:8px;align-items:flex-start}
.doclinks svg{flex:none;width:18px;height:18px;margin-top:3px}

/* ---------- footer (.footersection) ---------- */
.footersection{background-color:var(--esc-primary);color:var(--esc-primary-ink);padding:35px 20px 20px}
.footrow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:start}
.footerheading{margin:0 0 12px;color:var(--esc-primary-ink);font-size:24px;line-height:30px;font-weight:500}
.footerpara{color:var(--esc-primary-ink);font-family:var(--head);font-size:15px;line-height:22px}
.footerpara p{font-family:var(--head)}
.footmotto{margin-top:6px}
.footerlinkphone{color:var(--esc-primary-ink);overflow-wrap:anywhere}
.footerql{display:flex;align-items:center;gap:4px;width:90%;margin-bottom:4px;padding:5px;border:1px solid color-mix(in srgb,var(--esc-primary-ink) 32%,transparent);border-top:2px solid var(--esc-primary-ink);border-radius:2px;color:var(--esc-primary-ink);font-family:var(--head);font-size:14px;line-height:20px;text-decoration:none}
.footerql svg{flex:none;width:14px;height:14px}
.footerql:hover{background:var(--esc-bg);color:var(--esc-primary-text)}
.footcol4{display:flex;justify-content:center}
.footerlogo{width:min(100%,220px);aspect-ratio:1}
.footerlogo .brandlogo img{padding:12%}
.footerlogo .brandinitials{font-size:64px}
/* Without a crest the big circle would only repeat initials ("E" for "Escuela 247"): visitors get three columns instead. */
@media (min-width:992px){html:not(:has(meta[name="esc-owner"])) .footrow:has(.footcol4 .brandlogo[data-esc-empty]){grid-template-columns:repeat(3,minmax(0,1fr))}}
html:not(:has(meta[name="esc-owner"])) .footcol4:has(.brandlogo[data-esc-empty]){display:none}
.footlegal{margin-top:25px;padding-top:15px;border-top:1px solid color-mix(in srgb,var(--esc-primary-ink) 30%,transparent)}
.footlegal p{margin:0;color:var(--band-soft);font-family:var(--head);font-size:13px;line-height:20px}
.footlegal a{color:var(--esc-primary-ink)}

/* ---------- photos in rows (10 Nov 2026, from testing with real photos) ---------- */
@media (min-width:768px){
  /* Avisos on the home page (up to 3): one column each; a single aviso sits beside its photo instead of a page-wide one. */
  .newsgrid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  .newsitem:only-child:has(>.newsimg:not([data-esc-empty])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:30px;align-items:start}
  .newsitem:only-child>.newsimg{grid-row:1/span 3;margin:0}
  /* Niveles: thirds (two share the row, four sit in quarters); a short last row is centred; a single level sits beside its photo, like "Nuestra escuela". */
  .schoolcol{flex:0 1 calc((100% - 60px)/3)}
  .schoolcol:first-child:nth-last-child(2),.schoolcol:first-child:nth-last-child(2)~.schoolcol{flex-basis:calc((100% - 30px)/2)}
  .schoolcol:only-child{flex-basis:100%}
  .schoolcol:only-child:has(>.roundphoto:not([data-esc-empty])){display:grid;grid-template-columns:5fr 7fr;grid-template-rows:auto auto 1fr;column-gap:30px;align-items:start;justify-items:start}
  .schoolcol:only-child>.roundphoto{grid-row:1/span 3;justify-self:stretch;margin:0}
  .schoolcol:only-child>.schoolname{margin-top:0}
  /* A card without a photo next to cards with one keeps the same shape: its name becomes a tile in the photo's place,
     a small band of the school colour like the page-title bar (name at the bottom, above the thin rule). */
  html:not(:has(meta[name="esc-owner"])) .schoolrow:has(.roundphoto:not([data-esc-empty])) .schoolcol:has(>.roundphoto[data-esc-empty])>.schoolname,
  html:not(:has(meta[name="esc-owner"])) .newsgrid:has(.newsimg:not([data-esc-empty])) .newsitem:has(>.newsimg[data-esc-empty])>.newstitle{display:flex;align-items:flex-end;aspect-ratio:4/3;margin:0 0 14px;padding:20px 22px;border-radius:15px;background:var(--esc-primary);color:var(--esc-primary-ink)}
  html:not(:has(meta[name="esc-owner"])) .newsgrid:has(.newsimg:not([data-esc-empty])) .newsitem:has(>.newsimg[data-esc-empty]){display:flex;flex-direction:column}
  html:not(:has(meta[name="esc-owner"])) .newsgrid:has(.newsimg:not([data-esc-empty])) .newsitem:has(>.newsimg[data-esc-empty])>.newstitle{order:-1;aspect-ratio:16/10;margin-bottom:12px;padding:16px 18px;border-radius:10px}
  html:not(:has(meta[name="esc-owner"])) .newsgrid:has(.newsimg:not([data-esc-empty])) .newsitem:has(>.newsimg[data-esc-empty])>.newstitle a{color:var(--esc-primary-ink)}
  /* /avisos (and cuentos): the photo sits beside the text in the template's 7/5 columns, filling the card's width. */
  .lilist--long:has(>.lilistimg:not([data-esc-empty])){display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-rows:auto auto 1fr;column-gap:30px;align-items:start}
  .lilist--long:has(>.lilistimg:not([data-esc-empty]))>*{grid-column:1}
  .lilist--long:has(>.lilistimg:not([data-esc-empty]))>.lilistimg{grid-column:2;grid-row:1/span 3;max-width:none;aspect-ratio:4/3;margin:0}
  .lilist--long:has(>.lilistimg:not([data-esc-empty]))>.detailrow{grid-row:3}
  /* Personal: an odd last person is centred under the two columns. */
  .adminlist>.adminwrapper:last-child:nth-child(odd):not(:first-child){grid-column:1/-1;justify-self:center;width:calc(50% - 10px)}
}
@media (min-width:992px){
  /* Hero: the school's photo is the big thing. The hero spans the header's 1240px width, the photo column takes 7/12 at 3:2. */
  .herocontain{max-width:1240px;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:50px}
  .herovideo{aspect-ratio:3/2}
  .herotitle{font-size:46px;line-height:54px}
  .schoolcol:first-child:nth-last-child(4),.schoolcol:first-child:nth-last-child(4)~.schoolcol{flex-basis:calc((100% - 90px)/4)}
}

/* ---------- responsive (the source's breakpoints: 991, 767, 479) ---------- */
@media (max-width:991px){
  .w-container{max-width:728px}
  .navcontain{position:relative}
  .menubutton{display:block}
  .navmenu{display:none;position:absolute;top:calc(100% + 10px);left:15px;right:15px;flex-direction:column;align-items:stretch;padding:10px 15px;border-radius:20px;background:var(--esc-primary);box-shadow:0 8px 24px rgba(0,0,0,.3)}
  .esc-nav-open .navmenu{display:flex}
  .navlink{margin:0;padding:12px 15px;border-bottom:1px solid transparent;font-size:17px;white-space:normal}
  .navlink:hover,.navlink[aria-current]{border-bottom-color:var(--band-line)}
  .navlink.navbutton{margin:10px 0 5px;text-align:center}
  .herocontain{gap:20px}
  .herovideo{aspect-ratio:4/3} /* the hero photo keeps real height in the narrow column and on phones */
  .qlbutton{font-size:13px;padding:12px}
  .footrow{grid-template-columns:1fr 1fr;gap:30px 20px}
  .adminname{font-size:20px}
}
@media (max-width:767px){
  .herosection{padding:115px 15px 25px}
  .herocontain{grid-template-columns:1fr}
  .heroimg{width:160px;height:160px}
  .herotitle{font-size:32px;line-height:38px}
  .qlbutton{font-size:15px;flex-basis:100%}
  .w-row,.admrow,.contactrow{grid-template-columns:1fr}
  .adminlist{grid-template-columns:1fr}
  .adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty]))){gap:8px}
  .adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty])))>.adminwrapper{flex-basis:calc((100% - 8px)/2)}
  .adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty])))>.adminwrapper{padding:7px 10px 7px 7px;border-radius:24px}
  .adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty])))>.adminwrapper>.admininitial{width:32px;height:32px;font-size:14px}
  .adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty])))>.adminwrapper>.adminimg{width:32px;height:32px}
  .adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty]))) .adminholder{margin-left:9px}
  .adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty]))) .adminname{font-size:14px;line-height:19px;overflow-wrap:anywhere}
  .adminlist:has(>.adminwrapper:nth-child(6)):not(:has(.adminimg:not([data-esc-empty]))) .adminposition{font-size:12px;line-height:16px}
  /* Galería on phones: two to a row; with an odd count the first photo leads at full width. */
  .gallerygrid{gap:12px}
  .galleryitem{flex-basis:calc((100% - 12px)/2)}
  .galleryitem:first-child:nth-last-child(odd){flex-basis:100%}
  .galleryitem figcaption{font-size:13px;line-height:18px}
  .lilistimg{aspect-ratio:3/2}
  .pagecontain{padding:0 15px}
  .seasonalsection,.gallerysection,.footersection{padding-left:15px;padding-right:15px}
  .newssection{padding:45px 15px}
  .footrow{grid-template-columns:1fr;text-align:center}
  .footline{justify-content:center;text-align:left}
  /* Compact footer on phones: page boxes two to a row, the crest small (and no initials circle at all). */
  .footrow{gap:26px}
  .footcol2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;text-align:left}
  .footcol2 .footerheading{grid-column:1/-1;text-align:center;margin-bottom:6px}
  .footerql{width:auto;margin:0;padding:8px}
  .footcol2>.footerql:last-child:nth-child(even){grid-column:1/-1} /* an odd count of pages: the last box spans the row */
  .footerheading{margin-bottom:10px;font-size:22px;line-height:28px}
  .footline{margin-bottom:10px}
  .footerlogo{width:96px}
  .footerlogo .brandinitials{font-size:30px}
  .footcol4:has(.brandlogo[data-esc-empty]){display:none}
  .redes{justify-content:center}
  .footlegal{text-align:center}
  /* Numbers on phones: two to a row for 2 or 4, one under another for 1 or 3 (never a lone box under a pair). */
  .statrow{grid-auto-flow:row;grid-template-columns:minmax(0,1fr);max-width:360px;margin:0 auto;gap:28px 20px}
  .statrow:has(>.statitem:nth-child(2):last-child),.statrow:has(>.statitem:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
  .hashtagheader{font-size:min(56px,24cqi)}
  .transitionsection{padding:65px 15px}
}
@media (max-width:479px){
  h2{font-size:27px;line-height:33px}
  .pagetitle{font-size:31px;line-height:37px}
  .brandcircle{width:60px;height:60px}
  .brandname{font-size:16px;line-height:20px}
  .lilist,.lilist--long{border-radius:30px;padding:25px 22px}
  .clubscontainer{border-radius:30px;padding:20px 22px}
  .clubheading{font-size:21px;line-height:27px}
  .clubscontainer{margin-bottom:14px}
  .adminwrapper{border-radius:50px}
  .adminholder{margin:10px 20px 10px 25px}
  .adminimg{width:80px;height:80px}
  .schedule--daily>div{grid-template-columns:1fr;gap:4px}
  .juicerdiv{padding:20px}
  .message-section{padding:26px 15px}
  .some-message-banner h2{font-size:26px;line-height:32px}
}
