/*
Theme Name: San Expedito Escuela de Lenguaje
Theme URI: https://escuelasanexpedito.cl/
Author: OpenAI para Escuela de Lenguaje San Expedito
Description: Theme responsive y administrable para la Escuela de Lenguaje San Expedito, basado en la especificación entregada por la escuela.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: san-expedito
*/

:root{
  --se-green:#8bbf3d;
  --se-green-dark:#5f8f25;
  --se-lime:#d9ef87;
  --se-orange:#f5a800;
  --se-yellow:#ffd53d;
  --se-blue:#1477ba;
  --se-cyan:#1eafe0;
  --se-purple:#4c2b7b;
  --se-red:#df2f38;
  --se-navy:#233d67;
  --se-text:#24324a;
  --se-muted:#64748b;
  --se-bg:#f7faf5;
  --se-card:#ffffff;
  --se-border:#e5eadf;
  --se-radius:24px;
  --se-shadow:0 14px 40px rgba(40,65,25,.10);
  --se-max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--se-text);font-family:"Nunito","Segoe UI",Arial,sans-serif;line-height:1.65;background:#fff}
a{color:var(--se-blue);text-decoration:none}a:hover{text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--se-max),calc(100% - 36px));margin-inline:auto}
.skip-link{position:absolute;left:-9999px;top:8px;background:#fff;padding:10px 16px;z-index:9999}.skip-link:focus{left:8px}

/* header */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-bottom:1px solid rgba(139,191,61,.22)}
.header-top{background:var(--se-green);color:#fff;font-size:.9rem}
.header-top .container{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:7px 0}
.quick-links,.social-links{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.quick-links a{color:#fff;font-weight:700}
.social-links{gap:8px}.social-label{font-weight:900;margin-right:2px}.social-icon{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;color:#fff!important;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);transition:transform .2s ease,background .2s ease}.social-icon:hover{transform:translateY(-2px) scale(1.05);background:rgba(255,255,255,.28)}.social-icon svg{width:17px;height:17px;fill:currentColor}
.header-main{display:flex;align-items:center;justify-content:space-between;min-height:88px;gap:20px}
.brand{display:flex;align-items:center;gap:12px;color:var(--se-navy);font-weight:900;line-height:1.1}.brand img{width:66px;height:66px;object-fit:contain}.brand-text small{display:block;color:var(--se-green-dark);font-size:.75rem;letter-spacing:.05em;text-transform:uppercase}.brand-text strong{display:block;font-size:1.15rem}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:4px}.primary-nav a{display:block;padding:12px 15px;border-radius:12px;color:var(--se-navy);font-weight:800}.primary-nav .current-menu-item>a,.primary-nav .current_page_item>a,.primary-nav a:hover{background:var(--se-red);color:#fff}
.menu-toggle{display:none;border:0;background:var(--se-navy);color:#fff;border-radius:12px;padding:10px 13px;font-weight:800}

/* generic */
.section{padding:78px 0}.section-sm{padding:48px 0}.section-soft{background:linear-gradient(180deg,#fbfff7 0%,#f5faef 100%)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#eef7df;color:var(--se-green-dark);font-size:.82rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
h1,h2,h3,h4{font-family:Georgia,"Times New Roman",serif;color:var(--se-navy);line-height:1.18;margin-top:0}h1{font-size:clamp(2.25rem,5vw,4.7rem)}h2{font-size:clamp(1.9rem,3.5vw,3rem)}h3{font-size:1.35rem}.lead{font-size:1.13rem;color:#43516a;max-width:820px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border-radius:14px;font-weight:900;border:2px solid transparent;transition:.2s ease;cursor:pointer}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--se-green);color:#fff}.btn-primary:hover{background:var(--se-green-dark);color:#fff}.btn-secondary{background:var(--se-orange);color:#fff}.btn-outline{border-color:var(--se-green);color:var(--se-green-dark);background:#fff}.btn-blue{background:var(--se-blue);color:#fff}
.grid{display:grid;gap:24px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:var(--se-card);border:1px solid var(--se-border);border-radius:var(--se-radius);box-shadow:var(--se-shadow);overflow:hidden}.card-body{padding:26px}.card p:last-child{margin-bottom:0}

/* hero */
.hero{position:relative;overflow:hidden;background:linear-gradient(125deg,#f7ffe9 0%,#fff9df 52%,#eef9ff 100%);min-height:650px;display:grid;align-items:center}
.hero:before{content:"";position:absolute;width:480px;height:480px;border-radius:50%;background:rgba(139,191,61,.14);right:-100px;top:-100px}.hero:after{content:"";position:absolute;width:340px;height:340px;border-radius:50%;border:50px solid rgba(245,168,0,.10);left:-140px;bottom:-150px}
.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.02fr .98fr;gap:48px;align-items:center;padding:64px 0}.hero-copy p{font-size:1.16rem;max-width:650px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.hero-gallery{position:relative;min-height:480px}.hero-img{position:absolute;border:8px solid #fff;box-shadow:0 18px 45px rgba(35,61,103,.18);object-fit:cover}.hero-img.one{width:72%;height:340px;right:0;top:18px;border-radius:48px 48px 48px 14px}.hero-img.two{width:55%;height:245px;left:0;bottom:0;border-radius:42px 14px 42px 42px}.hero-img.three{width:32%;height:180px;right:4%;bottom:4%;border-radius:50%}
.floating-badge{position:absolute;left:2%;top:3%;z-index:4;background:#fff;border-radius:20px;padding:13px 16px;box-shadow:var(--se-shadow);font-weight:900;color:var(--se-green-dark)}

/* home news */
.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:30px}.section-heading p{margin:0;max-width:650px;color:var(--se-muted)}
.news-card{display:flex;flex-direction:column;height:100%}.news-thumb{aspect-ratio:16/9;object-fit:cover;background:#eef4e8}.news-meta{font-size:.83rem;color:var(--se-muted);font-weight:800;text-transform:uppercase;letter-spacing:.05em}.news-card .card-body{display:flex;flex-direction:column;flex:1}.news-card .read-more{margin-top:auto;font-weight:900;color:var(--se-green-dark)}

/* feature blocks */
.feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:24px}.feature-item{display:flex;gap:12px;align-items:flex-start;padding:18px;background:#fff;border:1px solid var(--se-border);border-radius:18px}.feature-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#eff9e3;display:grid;place-items:center;color:var(--se-green-dark);font-weight:900}.feature-item strong{display:block;color:var(--se-navy)}
.photo-mosaic{display:grid;grid-template-columns:1.2fr .8fr;grid-template-rows:1fr 1fr;gap:14px;min-height:490px}.photo-mosaic img{width:100%;height:100%;object-fit:cover;border-radius:28px}.photo-mosaic img:first-child{grid-row:1/3}

/* internal hero */
.page-hero{padding:76px 0 58px;background:linear-gradient(115deg,#f6ffe8,#fff5d4);border-bottom:1px solid var(--se-border)}.page-hero .container{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center}.page-hero img{max-width:220px;max-height:170px;object-fit:contain}

/* project cards */
.project-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.project-card{display:block;text-align:center;padding:26px 18px;background:#fff;border:1px solid var(--se-border);border-radius:26px;box-shadow:var(--se-shadow);transition:.2s}.project-card:hover{transform:translateY(-4px);border-color:var(--se-green)}.project-card img{width:124px;height:124px;object-fit:cover;border-radius:50%;margin:0 auto 16px;border:7px solid var(--accent,#efefef)}.project-card h3{margin-bottom:6px}.project-card p{margin:0;color:var(--se-muted);font-size:.93rem}

/* mission vision */
.mv-panel{position:relative;padding:34px;border-radius:28px;background:#fff;border:3px solid var(--se-orange);box-shadow:var(--se-shadow)}.mv-panel h2{font-size:2rem}.mv-panel .text-box{background:#d9f39b;padding:22px;border-radius:18px;color:#38511e}.mv-photo{width:100%;height:300px;object-fit:cover;border-radius:40% 18% 40% 18%}

/* curriculum */
.curriculum-card{display:grid;grid-template-columns:240px 1fr;gap:28px;align-items:center;padding:28px;border:1px solid var(--se-border);border-radius:26px;background:linear-gradient(135deg,#fff,#f8fbf4);box-shadow:var(--se-shadow)}.curriculum-card+ .curriculum-card{margin-top:24px}.curriculum-card img{width:240px;height:180px;object-fit:cover;border-radius:24px}

/* staff */
.staff-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-bottom:34px}.staff-card{background:#fff;border:3px solid var(--accent,var(--se-green));border-radius:22px;padding:22px;text-align:center}.staff-card img{width:150px;height:130px;object-fit:contain;margin:0 auto 14px}.staff-card h3{margin-bottom:8px}.staff-card p{margin:4px 0}
.classrooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.class-card{display:grid;grid-template-columns:90px 1fr;gap:18px;align-items:center;background:#fff;border:2px solid var(--room,var(--se-blue));border-radius:20px;padding:18px}.class-card img{width:78px;height:78px;object-fit:contain}.class-card h3{margin-bottom:4px}.class-card p{margin:2px 0}

/* convivencia */
.protocol-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.protocol-card{display:grid;grid-template-columns:64px 1fr;gap:18px;align-items:center;padding:22px;border-radius:22px;background:#fff;border:1px solid var(--se-border);box-shadow:var(--se-shadow)}.protocol-card img{width:58px;height:58px;object-fit:contain}.protocol-card h3{margin-bottom:7px}.protocol-card a{font-weight:900}

/* admission */
.sign-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sign{display:flex;gap:10px;align-items:flex-start;background:#f8fbf5;border-radius:15px;padding:13px}.sign:before{content:"✓";display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:50%;background:var(--se-green);color:#fff;font-weight:900}
.steps{counter-reset:step}.step{position:relative;padding:26px 26px 26px 82px;border:1px solid var(--se-border);border-radius:22px;background:#fff;box-shadow:var(--se-shadow)}.step+ .step{margin-top:18px}.step:before{counter-increment:step;content:counter(step);position:absolute;left:24px;top:24px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--se-green);color:#fff;font-weight:900}.step h3{margin-bottom:8px}

/* forms */
.form-shell{background:#fff;border:1px solid var(--se-border);border-radius:28px;box-shadow:var(--se-shadow);padding:30px}.form-progress{display:flex;gap:10px;margin-bottom:24px}.progress-pill{flex:1;padding:10px 12px;border-radius:12px;background:#edf1e8;color:#6b7560;text-align:center;font-weight:900}.progress-pill.active{background:var(--se-green);color:#fff}.form-step{display:none}.form-step.active{display:block}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field-full{grid-column:1/-1}.field label{display:block;font-weight:900;margin-bottom:7px;color:var(--se-navy)}.field input,.field select,.field textarea{width:100%;border:1px solid #cfd8c8;border-radius:13px;padding:13px 14px;font:inherit;background:#fff}.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid rgba(139,191,61,.2);border-color:var(--se-green)}.field textarea{min-height:130px;resize:vertical}.form-actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px}.hp-field{position:absolute;left:-9999px}.notice{padding:16px 18px;border-radius:14px;margin-bottom:20px;font-weight:800}.notice.success{background:#e8f6dc;color:#416b18}.notice.error{background:#fff0ef;color:#9c2f2b}

/* contact */
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:28px}.contact-list{display:grid;gap:15px}.contact-item{padding:20px;border-radius:18px;background:#fff;border:1px solid var(--se-border)}.contact-item strong{display:block;color:var(--se-navy)}.map-wrap{border-radius:28px;overflow:hidden;box-shadow:var(--se-shadow);min-height:440px}.map-wrap iframe{border:0;width:100%;height:100%;min-height:440px}

/* footer */
.site-footer{position:relative;background:radial-gradient(circle at 12% 15%,rgba(30,175,224,.17),transparent 28%),radial-gradient(circle at 88% 10%,rgba(139,191,61,.16),transparent 30%),linear-gradient(180deg,#203751 0%,#172b41 100%);color:#dfe7ee;margin-top:78px;overflow:hidden}.site-footer:after{content:"";position:absolute;inset:auto -80px 110px auto;width:260px;height:260px;border-radius:50%;border:42px solid rgba(255,255,255,.025);pointer-events:none}.site-footer h3{color:#fff}.site-footer a{color:#f0f5f8}
.footer-cta-wrap{position:relative;z-index:2;padding-top:34px}.footer-cta{display:flex;justify-content:space-between;align-items:center;gap:34px;padding:30px 34px;border-radius:28px;background:linear-gradient(120deg,var(--se-green) 0%,#72aa32 45%,#4e8f2d 100%);box-shadow:0 20px 55px rgba(10,28,18,.22);transform:translateY(-52px);margin-bottom:-30px}.footer-cta h2{margin:5px 0 6px;color:#fff;font-size:clamp(1.65rem,3vw,2.4rem)}.footer-cta p{margin:0;color:rgba(255,255,255,.9);max-width:670px}.footer-kicker{font-size:.76rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase;color:#f3ffd9}.footer-cta-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.footer-btn-light{background:#fff;color:var(--se-green-dark)}.site-footer a.footer-btn-light{color:#355f1d!important}.site-footer a.footer-btn-light:hover{background:#f6ffe9;color:#274b14!important}.footer-btn-light:hover{background:#f6ffe9;color:var(--se-green-dark)}.footer-btn-whatsapp{background:#25D366;color:#fff}.footer-btn-whatsapp:hover{background:#1fb95a;color:#fff}.footer-btn-whatsapp svg{width:18px;height:18px;fill:currentColor}
.footer-main-premium{position:relative;z-index:2;display:grid;grid-template-columns:1.35fr .75fr 1fr 1fr;gap:36px;padding:58px 0 48px}.footer-brand{display:flex;gap:15px;align-items:center}.footer-logo-wrap{width:82px;height:82px;display:grid;place-items:center;background:#fff;border-radius:22px;box-shadow:0 10px 24px rgba(0,0,0,.16);transform:rotate(-2deg)}.footer-brand img{width:72px;height:72px;object-fit:contain}.footer-school-type{display:block;color:#a9c8dd;font-size:.75rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.footer-brand h3{font-size:1.55rem;margin:3px 0 0}.footer-description{max-width:380px;color:#bfd0dc;margin:20px 0 18px}.footer-socials{display:flex;gap:9px}.footer-socials a{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);transition:.2s}.footer-socials a:hover{background:var(--se-green);transform:translateY(-2px)}.footer-socials svg{width:19px;height:19px;fill:currentColor}.footer-column h3{font-size:1.05rem;margin-bottom:17px;position:relative;padding-bottom:10px}.footer-column h3:after{content:"";position:absolute;left:0;bottom:0;width:36px;height:3px;border-radius:3px;background:var(--se-green)}.footer-links{list-style:none;padding:0;margin:0}.footer-links li{margin:7px 0}.footer-links a{display:inline-block;color:#c9d7e0;transition:.2s}.footer-links a:before{content:"›";margin-right:8px;color:var(--se-green);font-weight:900}.footer-links a:hover{color:#fff;transform:translateX(3px)}.footer-contact-list{list-style:none;padding:0;margin:0;display:grid;gap:13px}.footer-contact-list li{display:flex;gap:11px;align-items:flex-start}.footer-contact-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:rgba(139,191,61,.14);color:#dff6bf;font-size:.72rem;font-weight:900}.footer-contact-list small{display:block;color:#8fa8bb;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.footer-contact-list a{color:#dbe6ed;word-break:break-word}.footer-location p{color:#c9d7e0;margin-top:0}.footer-map-link{display:inline-block;color:#dff6bf!important;font-weight:900;margin-bottom:17px}.footer-mini-card{display:grid;gap:3px;padding:14px 15px;border-radius:15px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1)}.footer-mini-card strong{color:#fff}.footer-mini-card span{font-size:.86rem;color:#aebfca}.footer-mini-card a{margin-top:5px;color:#dff6bf;font-weight:900;font-size:.88rem}.footer-bottom-wrap{position:relative;z-index:2;background:rgba(8,21,32,.27);border-top:1px solid rgba(255,255,255,.08)}.footer-bottom{padding:18px 0;color:#9fb1bf;font-size:.88rem;display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap}.footer-credit a{color:#fff;font-weight:900}.footer-credit a:hover{color:#dff6bf}

/* floating whatsapp */
.wa-float{position:fixed;right:24px;bottom:24px;z-index:1200;width:64px;height:64px;border-radius:50%;background:#25D366;color:#fff;display:grid;place-items:center;box-shadow:0 12px 30px rgba(19,78,50,.32);transition:transform .2s ease;animation:wa-bob 2.8s ease-in-out infinite}.wa-float:hover{transform:scale(1.08);color:#fff}.wa-float svg{width:34px;height:34px;fill:currentColor;position:relative;z-index:2}.wa-message-badge{position:absolute;right:-1px;top:-4px;width:22px;height:22px;border-radius:50%;background:#e53935;color:#fff;border:3px solid #fff;display:grid;place-items:center;font-size:.72rem;font-weight:900;line-height:1;z-index:4;animation:wa-badge 1.5s ease-in-out infinite}.wa-pulse{position:absolute;inset:0;border-radius:50%;background:#25D366;z-index:-1;animation:wa-pulse 2s ease-out infinite}@keyframes wa-pulse{0%{transform:scale(.92);opacity:.65}70%{transform:scale(1.42);opacity:0}100%{transform:scale(1.42);opacity:0}}@keyframes wa-bob{0%,100%{translate:0 0}50%{translate:0 -5px}}@keyframes wa-badge{0%,100%{transform:scale(1)}50%{transform:scale(1.16)}}@media (prefers-reduced-motion:reduce){.wa-float,.wa-message-badge,.wa-pulse{animation:none}}

/* WordPress content */
.entry-content{padding:60px 0}.entry-content>*{max-width:850px;margin-left:auto;margin-right:auto}.entry-content>.alignwide{max-width:var(--se-max)}

@media(max-width:980px){
 .menu-toggle{display:block}.primary-nav{display:none;position:absolute;left:18px;right:18px;top:88px;background:#fff;border:1px solid var(--se-border);border-radius:18px;box-shadow:var(--se-shadow);padding:10px}.primary-nav.open{display:block}.primary-nav ul{display:block}.primary-nav a{padding:12px}
 .hero-grid,.page-hero .container,.contact-grid{grid-template-columns:1fr}.hero-gallery{min-height:440px}.project-links{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}.grid-4{grid-template-columns:repeat(2,1fr)}.staff-top{grid-template-columns:1fr}.footer-main-premium{grid-template-columns:1fr 1fr}.footer-about{grid-column:1/-1}.footer-cta{align-items:flex-start}.footer-cta-actions{min-width:250px}
}
@media(max-width:680px){
 .header-top .container{align-items:flex-start;flex-direction:column;gap:4px}.header-top .quick-links{display:none}.brand-text strong{font-size:1rem}.brand img{width:54px;height:54px}.header-main{min-height:76px}.primary-nav{top:78px}
 .section{padding:56px 0}.hero{min-height:auto}.hero-grid{padding:48px 0;gap:24px}.hero-gallery{min-height:350px}.hero-img.one{height:250px;width:80%}.hero-img.two{height:190px;width:58%}.hero-img.three{height:130px}.floating-badge{font-size:.85rem}
 .grid-2,.grid-3,.grid-4,.feature-list,.project-links,.protocol-grid,.sign-list,.classrooms,.form-grid{grid-template-columns:1fr}.photo-mosaic{grid-template-columns:1fr;grid-template-rows:auto}.photo-mosaic img:first-child{grid-row:auto}.photo-mosaic img{height:240px}.curriculum-card{grid-template-columns:1fr}.curriculum-card img{width:100%;height:220px}.class-card{grid-template-columns:72px 1fr}.footer-main-premium{grid-template-columns:1fr}.footer-about{grid-column:auto}.footer-cta{flex-direction:column;transform:translateY(-38px);padding:24px;margin-bottom:-18px}.footer-cta-actions{width:100%;min-width:0;justify-content:flex-start}.footer-cta-actions .btn{flex:1}.section-heading{display:block}.section-heading .btn{margin-top:12px}.page-hero img{max-width:150px}
 .form-shell{padding:20px}.form-progress{font-size:.82rem}.form-actions{flex-direction:column-reverse}.form-actions .btn{width:100%}
}
