:root{
  --bg:#ffffff;
  --fg:#1f3a5f;        /* azul principal */
  --muted:#5f7c99;     /* azul suave */
  --soft:#f2f6fa;      /* fondo claro */
  --border:#d9e2ec;
  --shadow: 0 10px 30px rgba(31,58,95,.10);
  --radius: 18px;
  --max: 1120px;
  --pad: 20px;
  --accent:#f6c453;   /* amarillo del logo */
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--fg);
  line-height:1.5;
}

.container{ width:min(var(--max), calc(100% - 2*var(--pad))); margin-inline:auto; }

.skip{
  position:absolute; left:-999px; top:8px;
  background:#000; color:#fff; padding:8px 12px; border-radius:10px;
}
.skip:focus{ left:12px; z-index:9999; }

.header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:12px 0;
}
.brand{ display:flex; align-items:center; text-decoration:none; }
.brand__logo{ height:46px; width:auto; display:block; }

.nav{ display:flex; gap:14px; align-items:center; }
.nav a{
  color:var(--fg); text-decoration:none;
  padding:10px 10px; border-radius:12px;
  font-weight:600; font-size:14px;
}
.nav a:hover{ background:var(--soft); }

.nav__toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  box-shadow: var(--shadow);
}
.nav__burger{
  width:22px; height:2px; background:var(--fg); display:block; position:relative;
}
.nav__burger::before,.nav__burger::after{
  content:""; position:absolute; left:0; width:22px; height:2px; background:var(--fg);
}
.nav__burger::before{ top:-7px; }
.nav__burger::after{ top:7px; }

.hero{
  padding:34px 0 10px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}
.badge{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--border);
  background: #fff;
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
}
h1{ font-size: clamp(28px, 4vw, 44px); line-height:1.12; margin:10px 0 10px; }
h2{ font-size: clamp(22px, 2.4vw, 30px); margin:0 0 12px; }
h3{ margin:0 0 8px; font-size:18px; }
.lead{ color:var(--muted); font-size:16px; margin:0 0 16px; max-width:62ch; }
.note{ color:var(--muted); font-size:12.5px; margin-top:14px; }

.nowrap{ white-space:nowrap; }

.section{ padding:34px 0; }
.section--soft{ background: var(--soft); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section__head{ display:flex; gap:16px; align-items:baseline; justify-content:space-between; flex-wrap:wrap; }
.muted{ color:var(--muted); }
.tiny{ font-size:12px; }

.grid{
  display:grid; gap:14px;
}
.grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.card__title{ margin:0 0 10px; }
.card__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

.list{ padding-left:18px; margin:0; color:var(--muted); }
.checklist{ list-style:none; padding:0; margin:0; }
.checklist li{
  padding-left:26px; position:relative; margin:10px 0; color:var(--muted);
}
.checklist li::before{
  content:""; width:14px; height:14px; border:2px solid var(--fg);
  border-radius:4px; position:absolute; left:0; top:4px;
}

.callout{
  margin-top:14px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--fg);
  background: var(--fg);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
}
.btn:hover{ filter: brightness(0.95); }
.btn--ghost{
  background: #fff;
  color: var(--fg);
  border:1px solid var(--border);
}
.btn--small{ padding:10px 12px; border-radius:12px; font-size:13px; }

.embed{
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow);
}
.embed iframe{
  width:100%;
  height: min(78vh, 720px);
  border:0;
  display:block;
}

.footer{
  border-top:1px solid var(--border);
  padding:22px 0;
  background:#fff;
}
.footer__inner{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:13px;
}

code{ background:#f2f2f2; padding:2px 6px; border-radius:8px; }

@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  :root{
  --bg:#ffffff;
  --fg:#1f3a5f;        /* azul principal */
  --muted:#5f7c99;     /* azul suave */
  --soft:#f2f6fa;      /* fondo claro */
  --border:#d9e2ec;
  --shadow: 0 10px 30px rgba(31,58,95,.10);
  --radius: 18px;
  --max: 1120px;
  --pad: 20px;
  --accent:#f6c453;   /* amarillo del logo */
}
  .nav__toggle{ display:inline-flex; }
  .nav{
    position: absolute;
    right: var(--pad);
    top: 72px;
    background:#fff;
    border:1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding:10px;
    flex-direction:column;
    align-items:stretch;
    width: min(320px, calc(100% - 2*var(--pad)));
    display:none;
  }
  .nav.is-open{ display:flex; }
  .nav a{ padding:12px 12px; }
  .grid--2{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: 1fr; }
  .embed iframe{ height: 85vh; }
}


/* Extra large map section */
.section--map{
  padding: 48px 0;
}
.embed--map{
  margin-top: 18px;
}
.embed--map iframe{
  width:100%;
  height: min(95vh, 980px);
  border:0;
  display:block;
}
@media (max-width: 760px){
  .embed--map iframe{
    height: 90vh;
  }
}

/* Logo refinements */
.brand__logo{
  height:56px;
}
.footer__brand{
  display:flex;
  justify-content:center;
  margin-bottom:10px;
}
.footer__logo{
  height:64px;
  width:auto;
}

/* Accent usage */
.btn{
  background: var(--accent);
  border-color: var(--accent);
  color:#1f3a5f;
}
.btn--ghost{
  background:#fff;
  color: var(--fg);
  border-color: var(--border);
}
.badge{
  border-color: var(--accent);
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
  margin-top: 14px;
}
.gallery__item{
  margin:0;
}
.gallery__item a{
  display:block;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  background:#fff;
}
.gallery__item img{
  width:100%;
  height: 190px;
  object-fit: cover;
  display:block;
}
@media (max-width: 900px){
  .gallery{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery__item img{ height: 170px; }
}
@media (max-width: 520px){
  .gallery{ grid-template-columns: 1fr; }
  .gallery__item img{ height: 210px; }
}

/* Calendar list */
.calendar-tools{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin: 10px 0 14px;
}
.calendar-list{
  margin-bottom: 14px;
}
.events{
  margin: 0;
  padding-left: 18px;
}
.events li{
  margin: 10px 0;
}
.hero__media img{
  width:100%;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Facebook section */
.section--fb{
  background: var(--soft);
}
.fb-wrapper{
  display:flex;
  justify-content:center;
}
.fb-wrapper iframe{
  width:100%;
  max-width:500px;
  height:700px;
  border-radius:16px;
  box-shadow: var(--shadow);
}
@media (max-width:600px){
  .fb-wrapper iframe{
    height:620px;
  }
}

/* Larger hero illustration */
.hero__media--lg img{
  height: 320px;
}
@media (max-width: 760px){
  .hero__media--lg img{
    height: 360px;
  }
}

/* Facebook posts grid */
.fb-posts{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  justify-items:center;
}
.fb-posts iframe{
  width:100%;
  max-width:500px;
  height:600px;
  border-radius:16px;
  box-shadow: var(--shadow);
}
@media (max-width: 900px){
  .fb-posts{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .fb-posts{ grid-template-columns: 1fr; }
}

/* Ensure map section visible */
.section--map{
  background:#fff;
}

/* Map tools */
.map-tools{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin: 10px 0 14px;
}

/* Facebook posts as individual cards */
.fb-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top: 14px;
}
.fb-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.fb-card iframe{
  width:100%;
  max-width: 520px;
  height: 680px;
  display:block;
}
@media (max-width: 980px){
  .fb-grid{ grid-template-columns: 1fr; }
  .fb-card iframe{ height: 660px; }
}

/* Facebook button refinement */
.btn--facebook{
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.btn--facebook:hover{
  filter: brightness(0.95);
}

/* Pro polish */
h1, h2, h3{ letter-spacing: -0.01em; }
.hero{ padding: 42px 0 18px; }
.hero__copy{ padding-right: 6px; }
.card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(31,58,95,.14);
  border-color: rgba(31,58,95,.22);
}
.section__head h2{
  position: relative;
  padding-left: 12px;
}
.section__head h2::before{
  content:"";
  position:absolute;
  left:0; top: 10px;
  width:4px; height: 22px;
  border-radius: 99px;
  background: var(--accent);
}
.btn{
  box-shadow: 0 10px 22px rgba(246,196,83,.25);
}
.btn:hover{ filter: brightness(0.96); }
.btn--ghost{ box-shadow: none; }
.header__inner{ padding: 14px 0; }
.brand__logo{ height: 60px; }
.footer{ background: var(--soft); }
.footer__inner{ text-align:center; }
.card--action{
  border-color: rgba(246,196,83,.55);
}

/* Kinder calendar style */
#calendario{
  background: #f7fbff;
}
#calendario .embed{
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(31,58,95,.12);
}
#calendario h2{
  color: var(--fg);
}

/* Reglamento clean */
.card--center{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:28px;
}
#reglamento .section__head{
  margin-bottom: 12px;
}

/* HERO POLISH */
.hero{
  padding: 26px 0 10px; /* less vertical blank space */
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr; /* better balance */
  gap: 18px;
  align-items: center;
}
.hero__copy{
  max-width: 640px;
}
.hero__card{
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.hero__media img{
  height: 320px; /* illustration more present */
}
.hero__card h3{
  font-size: 1.35rem;
}
.hero__card .muted{
  font-size: 0.98rem;
}
.hero__card{
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(31,58,95,.12);
}
.hero__card .btn{
  width: auto;
}
@media (max-width: 980px){
  .hero__inner{
    grid-template-columns: 1fr;
  }
  .hero__card{
    max-width: 720px;
    margin-left: 0;
  }
  .hero__media img{
    height: 300px;
  }
}
@media (max-width: 520px){
  .hero{
    padding: 18px 0 8px;
  }
  .hero__media img{
    height: 260px;
  }
}

/* Reduce gap before first section */
.section:first-of-type{
  padding-top: 18px;
}



.preinscripcion-final strong{
  display:block;
  margin-bottom: 4px;
}

/* ===== GLOBAL RESPONSIVE POLISH ===== */
body{
  line-height: 1.6;
}

.container{
  padding-left: 16px;
  padding-right: 16px;
}

/* Headings rhythm */
.section{
  padding: 32px 0;
}
.section__head{
  margin-bottom: 18px;
}

/* Cards consistency */
.card{
  padding: 18px;
}

/* Buttons */
.btn{
  border-radius: 14px;
  font-weight: 600;
}

/* Lists */
ul{
  padding-left: 18px;
}

/* Desktop refinements */
@media (min-width: 1024px){
  .container{
    max-width: 1120px;
  }
  .section{
    padding: 44px 0;
  }
  .hero__media img{
    height: 340px;
  }
}

/* Tablet */
@media (max-width: 900px){
  .hero__media img{
    height: 300px;
  }
}

/* Mobile */
@media (max-width: 520px){
  h1{ font-size: 1.8rem; }
  h2{ font-size: 1.4rem; }
  h3{ font-size: 1.15rem; }

  .section{
    padding: 24px 0;
  }

  .hero__media img{
    height: 240px;
  }

  .card{
    padding: 16px;
  }

  .preinscripcion-final{
    font-size: 0.92rem;
  }
}

/* ===== Preinscripción (warm + school-friendly) ===== */
.preinscripcion-final{
  margin-top: 14px;
  padding: 14px 16px;
  display:flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 236, 200, .55), rgba(247, 251, 255, .75));
  border: 1px solid rgba(31,58,95,.10);
  box-shadow: 0 10px 26px rgba(31,58,95,.08);
  max-width: 900px;
}
.preinscripcion-final__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(246,196,83,.35);
  border: 1px solid rgba(246,196,83,.55);
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}
.preinscripcion-final__title{
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}
.preinscripcion-final__body{
  color: var(--muted);
  font-size: 0.98rem;
}
@media (max-width: 520px){
  .preinscripcion-final{
    padding: 12px 14px;
    border-radius: 16px;
  }
  .preinscripcion-final__icon{
    width: 36px; height: 36px; border-radius: 12px; font-size: 18px;
  }
  .preinscripcion-final__body{
    font-size: 0.95rem;
  }
}

/* Softer section rhythm */
#preinscripcion{ background: #f7fbff; }
#calendario{ background: #ffffff; }

/* ===== Footer institucional discreto ===== */
.footer{
  margin-top: 48px;
  padding: 28px 0;
  background: #ffffff;
  border-top: 1px solid rgba(31,58,95,.08);
}
.footer__inner{
  display:flex;
  justify-content:center;
}
.footer__institutional{
  display:flex;
  align-items:center;
  gap: 16px;
  opacity: .85;
}
.footer__institutional img{
  height: 48px;
  width: auto;
}
.footer__institutional p{
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}
@media (max-width: 520px){
  .footer__institutional{
    flex-direction:column;
    text-align:center;
    gap: 10px;
  }
  .footer__institutional img{
    height: 42px;
  }
}

/* ===== READABILITY & LIGHTNESS ===== */
p{ max-width: 680px; }
h2{ margin-bottom: 14px; }
.section{ padding: 28px 0; }
.hero p{ font-size: 1rem; }

/* Reduce card density */
.card{ box-shadow: 0 6px 18px rgba(0,0,0,.06); }

/* Mobile breathing */
@media(max-width:520px){
  .section{ padding: 22px 0; }
  p{ font-size: .95rem; }
}
