/* ==========================================================================
   La Casita de Mickey — Jardín Infantil
   Style: Claymorphism (soft-3D, childish, playful, interactive)
   Palette: light blue + white + yellow (from the school logo)
   Fonts: Baloo 2 (display) · Nunito (body)
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand — light blue + white + yellow (from the school logo) */
  --c-primary:   #1BA3E0;  /* sky blue — brand fills, icons */
  --c-primary-d: #0E7DB8;  /* accessible blue — buttons, links (AA on white) */
  --c-accent:    #F5B301;  /* roof yellow — accents (dark text only) */
  --c-accent-d:  #E0A000;
  --c-sunshine:  #FFC72C;  /* bright sun yellow */
  --c-coral:     #E5322B;  /* logo red pops */
  --c-sky:       #4FC3F7;  /* soft sky */
  --c-leaf:      #7AC943;  /* bush green */
  --c-grape:     #7E6BD6;  /* logo purple */

  /* Surfaces / text */
  --bg:          #EAF6FE;  /* very light blue */
  --bg-alt:      #FFFFFF;  /* white alt sections */
  --surface:     #FFFFFF;
  --ink:         #123A5A;  /* deep navy blue */
  --ink-soft:    #5C7A93;  /* muted blue-gray */
  --line:        #D6EAF8;

  /* Clay effect (blue-tinted) */
  --radius:      26px;
  --radius-sm:   16px;
  --radius-lg:   34px;
  --radius-pill: 999px;
  --clay-shadow: 8px 8px 20px rgba(70,130,180,.20), -6px -6px 16px rgba(255,255,255,.95);
  --clay-shadow-sm: 5px 5px 12px rgba(70,130,180,.16), -4px -4px 10px rgba(255,255,255,.9);
  --clay-inset: inset 3px 3px 7px rgba(70,130,180,.18), inset -3px -3px 7px rgba(255,255,255,.95);
  --shadow-soft: 0 18px 40px rgba(70,130,180,.18);

  /* Type scale */
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2.4rem, 5.2vw, 4.3rem);
  --fs-h2:   clamp(1.9rem, 3.6vw, 2.9rem);
  --fs-h3:   clamp(1.15rem, 1.8vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.2rem);

  /* Spacing */
  --space-section: clamp(4rem, 8vw, 7rem);
  --wrap: 1200px;
  --header-h: 78px;

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 700; color: var(--ink); }
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul,ol { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--c-primary-d); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.ic { width: 1.15em; height: 1.15em; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  will-change: transform;
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-primary-d); color: #fff; box-shadow: 6px 6px 15px rgba(14,125,184,.32), -4px -4px 12px rgba(255,255,255,.7); }
.btn-primary:hover { background: #0A6C9E; transform: translateY(-3px); box-shadow: 8px 10px 22px rgba(14,125,184,.42), -4px -4px 12px rgba(255,255,255,.7); }
.btn-primary:active { transform: translateY(-1px) scale(.99); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--clay-shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--clay-shadow); }
/* sunny yellow secondary — dark navy text (AA on yellow) */
.btn-sunny { background: var(--c-sunshine); color: var(--ink); box-shadow: 6px 6px 15px rgba(245,179,1,.34), -4px -4px 12px rgba(255,255,255,.7); }
.btn-sunny:hover { background: var(--c-accent); transform: translateY(-3px); box-shadow: 8px 10px 22px rgba(245,179,1,.44), -4px -4px 12px rgba(255,255,255,.7); }
.btn-soft { background: color-mix(in srgb, var(--c-primary) 14%, #fff); color: var(--c-primary-d); }
.btn-soft:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--c-primary) 22%, #fff); }

/* ---------- 4. CLAY CARD ---------- */
.clay-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--clay-shadow);
  padding: 1.6rem;
}

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(70,130,180,.12); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { display: block; filter: drop-shadow(2px 3px 5px rgba(14,125,184,.28)); transition: transform .3s var(--ease); }
.brand-mark img { height: 50px; width: auto; display: block; }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.05); }
.brand-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1; color: var(--ink); }
.brand-sub { display: block; font-size: .72rem; font-weight: 600; color: var(--c-primary); letter-spacing: .02em; }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { font-weight: 600; color: #3F5B73; position: relative; padding: .3rem 0; transition: color .2s; }
.main-nav a::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:3px; border-radius:3px; background: var(--c-primary); transition: width .3s var(--ease); }
.main-nav a:hover { color: var(--ink); } .main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--ink); transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: .3rem; padding: 1rem 1.5rem 1.5rem; background: var(--surface); box-shadow: 0 20px 30px rgba(70,130,180,.16); }
.mobile-nav a { padding: .8rem .4rem; font-weight: 600; font-family: var(--font-display); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: .6rem; }
.mobile-nav.open { display: flex; animation: dropIn .3s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- 6. HERO ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--space-section); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; position: relative; z-index: 2; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--c-primary-d); background: color-mix(in srgb, var(--c-primary) 12%, #fff); padding: .45rem 1rem; border-radius: var(--radius-pill); box-shadow: var(--clay-shadow-sm); }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-leaf); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-leaf) 30%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 { font-size: var(--fs-hero); font-weight: 800; margin: 1.2rem 0 .8rem; letter-spacing: -.01em; }
.hl { position: relative; white-space: nowrap; }
.hl-1 { color: var(--c-primary-d); } .hl-2 { color: var(--c-coral); } .hl-3 { color: #2F8F3E; }
.hl::after { content:""; position:absolute; left:-2%; right:-2%; bottom:.04em; height:.34em; background: currentColor; opacity:.16; border-radius:.2em; z-index:-1; }

.slogan { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--ink-soft); font-size: 1.15rem; margin-bottom: .8rem; }
.hero-lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.4rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.hero-trust .ic { color: var(--c-leaf); }

/* hero photo card */
.hero-card { position: relative; }
.clay-photo { position: relative; border-radius: 32px; padding: 12px; background: var(--surface); box-shadow: var(--clay-shadow); rotate: 2deg; transition: rotate .4s var(--ease); }
.clay-photo:hover { rotate: 0deg; }
.clay-photo img { width: 100%; height: clamp(280px, 40vw, 440px); object-fit: cover; border-radius: 22px; }
.clay-badge { position: absolute; left: -18px; bottom: 26px; background: var(--c-primary-d); color: #fff; border-radius: 20px; padding: .7rem 1.1rem; display: flex; align-items: center; gap: .6rem; box-shadow: 6px 6px 16px rgba(14,125,184,.4); rotate: -4deg; }
.clay-badge strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.clay-badge span { font-size: .74rem; font-weight: 700; line-height: 1.15; }

/* hero brand stage (logo + characters) */
.brand-stage { position: relative; border-radius: 36px; padding: 1.6rem 1.6rem 0; background: linear-gradient(170deg, #CDEBFB 0%, #EAF6FE 60%); box-shadow: var(--clay-shadow); overflow: hidden; min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.brand-stage::before { content:""; position:absolute; top:-60px; right:-50px; width:180px; height:180px; border-radius:50%; background: radial-gradient(circle, rgba(255,255,255,.7), transparent 70%); }
/* wrapper carries the idle float so the hover-lift on the logo never fights it */
.stage-badge-wrap { display: block; position: relative; z-index: 2; width: min(300px, 72%); animation: bob 5s ease-in-out infinite; }
.stage-badge { width: 100%; cursor: pointer; filter: drop-shadow(4px 6px 12px rgba(14,125,184,.28)); transition: transform .35s var(--ease), filter .35s var(--ease); }
.stage-badge-wrap:hover .stage-badge { transform: translateY(-9px) scale(1.03); filter: drop-shadow(6px 14px 18px rgba(14,125,184,.42)); }
/* logo-only stage: center the badge and give it more presence */
.brand-stage--logo { justify-content: center; padding: 2rem; min-height: 380px; }
.brand-stage--logo .stage-badge-wrap { width: min(360px, 86%); }

/* trio complementing the hero text, low beside it */
.hero-foot { display: flex; align-items: flex-end; justify-content: flex-start; gap: .4rem; flex-wrap: wrap; }
.hero-foot .hero-trust { flex-direction: column; align-items: flex-start; gap: .55rem; flex: 0 0 auto; }
.hero-trio { width: clamp(140px, 16vw, 190px); flex: none; align-self: flex-end; margin-left: -.3rem; filter: drop-shadow(5px 7px 10px rgba(14,125,184,.24)); animation: float1 6s ease-in-out infinite; }
.stage-char { position: relative; z-index: 3; width: min(260px, 66%); margin-top: auto; filter: drop-shadow(6px 8px 12px rgba(14,125,184,.25)); }
.stage-mini { position: absolute; z-index: 4; width: 92px; filter: drop-shadow(4px 5px 8px rgba(14,125,184,.28)); }
.stage-mini.m1 { top: 16%; right: 6%; animation: float1 6s ease-in-out infinite; }
.stage-mini.m2 { bottom: 8%; left: 4%; width: 74px; animation: float2 7s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0) rotate(-1deg) } 50%{ transform: translateY(-10px) rotate(1deg) } }

/* character pillar icons */
.pillar-char { width: 128px; height: 128px; margin: 0 auto 1.1rem; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tint) 32%, #fff), color-mix(in srgb, var(--tint) 14%, #fff)); box-shadow: var(--clay-inset); }
.pillar-char img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(3px 4px 6px rgba(14,125,184,.22)); transition: transform .35s var(--ease); }
.pillar:hover .pillar-char img { transform: scale(1.12) rotate(-4deg); }

/* floating character decor across hero */
.hero-char { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(4px 6px 10px rgba(14,125,184,.2)); opacity: .95; }
.hero-char.hc1 { width: 96px; bottom: 8%; left: 1%; animation: float2 8s ease-in-out infinite; }
.hero-char.hc2 { width: 78px; top: 4%; left: 46%; animation: float1 7s ease-in-out infinite; }

/* floating shapes */
.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape { position: absolute; display: block; }
.shape-sun { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #FFD84D, #FBBF24); box-shadow: 0 0 0 10px rgba(251,191,36,.18), 6px 6px 20px rgba(251,191,36,.4); top: 8%; right: 6%; animation: float1 7s ease-in-out infinite; }
.shape-cloud { width: 120px; height: 42px; background: #fff; border-radius: 40px; box-shadow: var(--clay-shadow-sm); opacity: .9; }
.shape-cloud::before, .shape-cloud::after { content:""; position:absolute; background:#fff; border-radius:50%; }
.shape-cloud::before { width: 50px; height: 50px; top: -22px; left: 20px; }
.shape-cloud::after { width: 36px; height: 36px; top: -14px; left: 62px; }
.cloud-1 { top: 14%; left: 4%; animation: drift 14s linear infinite; }
.cloud-2 { top: 62%; right: 10%; transform: scale(.8); animation: drift 18s linear infinite reverse; }
.shape-balloon { width: 46px; height: 58px; border-radius: 50%; }
.balloon-1 { background: var(--c-coral); top: 40%; left: 2%; animation: float2 6s ease-in-out infinite; }
.balloon-2 { background: var(--c-grape); bottom: 6%; left: 42%; animation: float1 8s ease-in-out infinite; }
.shape-blob { border-radius: 46% 54% 60% 40% / 50% 46% 54% 50%; opacity: .5; filter: blur(2px); }
.blob-1 { width: 160px; height: 160px; background: color-mix(in srgb, var(--c-sky) 40%, #fff); top: -30px; left: 30%; animation: float2 12s ease-in-out infinite; }
.blob-2 { width: 200px; height: 200px; background: color-mix(in srgb, var(--c-leaf) 30%, #fff); bottom: -60px; right: -30px; animation: float1 10s ease-in-out infinite; }
@keyframes float1 { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-22px) } }
@keyframes float2 { 0%,100%{ transform: translateY(0) rotate(0) } 50%{ transform: translateY(18px) rotate(6deg) } }
@keyframes drift { from{ transform: translateX(-30px) } to{ transform: translateX(30px) } }

/* ---------- 7. STATS ---------- */
.stats-band { padding-block: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--clay-shadow); padding: 1.8rem 1rem; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content:""; position:absolute; left:0; top:15%; height:70%; width:2px; background: var(--line); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--c-primary-d); line-height: 1; }
.stat-label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }

/* ---------- 8. SECTIONS ---------- */
.section { padding-block: var(--space-section); }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.2rem,4vw,3.4rem); }
.kicker { display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--c-primary-d); margin-bottom: .6rem; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 800; }
.section-sub { margin-top: .9rem; color: var(--ink-soft); font-size: var(--fs-lead); }

/* ---------- 9. PILLARS ---------- */
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.pillar { text-align: center; }
.pillar-ic { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; margin-bottom: 1rem; background: color-mix(in srgb, var(--tint) 20%, #fff); color: var(--tint); box-shadow: var(--clay-inset); }
.pillar-ic svg { width: 38px; height: 38px; }
.pillar h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.pillar p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- 10. MISION/VISION ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.mv-card { padding: 2.2rem; }
.mv-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 1.1rem; background: color-mix(in srgb, var(--tint) 16%, #fff); color: var(--tint); box-shadow: var(--clay-inset); }
.mv-ic svg { width: 32px; height: 32px; }
.mv-card h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.mv-card p { color: var(--ink-soft); margin-bottom: .8rem; }
.mv-card p:last-child { margin-bottom: 0; }

/* ---------- 11. SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1.1rem; }
.svc { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; }
.svc-ic { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 15px; background: color-mix(in srgb, var(--tint) 18%, #fff); color: var(--tint); box-shadow: var(--clay-inset); }
.svc-ic svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.15; }
.svc { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: var(--clay-shadow); }

/* ---------- 12. JORNADAS ---------- */
.jornadas-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.3rem; }
.jornada { text-align: center; position: relative; padding: 2rem 1.2rem; transition: transform .25s var(--ease); }
.jornada:hover { transform: translateY(-5px); }
.jornada-tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary-d); background: color-mix(in srgb, var(--c-primary) 14%, #fff); padding: .3rem .9rem; border-radius: var(--radius-pill); margin-bottom: 1rem; }
.jornada-time { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1; }
.jornada-time span { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.jornada-days { margin-top: .5rem; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.jornada.is-featured { background: var(--c-primary-d); box-shadow: 8px 8px 22px rgba(14,125,184,.42), -6px -6px 16px rgba(255,255,255,.6); }
.jornada.is-featured .jornada-time, .jornada.is-featured .jornada-days { color: #fff; }
.jornada.is-featured .jornada-tag { background: rgba(255,255,255,.25); color: #fff; }
.jornada-star { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--c-sunshine); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .74rem; padding: .3rem .8rem; border-radius: var(--radius-pill); box-shadow: var(--clay-shadow-sm); white-space: nowrap; }

/* ---------- 13. ADMISIONES STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--clay-shadow); padding: 2.4rem 1.4rem 1.6rem; text-align: center; }
.step-num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary-d); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; box-shadow: 5px 5px 14px rgba(14,125,184,.38); }
.step-ic { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; margin-bottom: .9rem; background: color-mix(in srgb, var(--c-primary) 14%, #fff); color: var(--c-primary); box-shadow: var(--clay-inset); }
.step-ic svg { width: 32px; height: 32px; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .94rem; }
.admis-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.6rem; }

/* ---------- 14. GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1.1rem; }
.gitem { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--clay-shadow-sm); display: block; padding: 0; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gitem::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(18,58,90,.55), transparent 55%); opacity: 0; transition: opacity .3s; }
.gitem:hover img { transform: scale(1.07); }
.gitem:hover::after { opacity: 1; }
.gcap { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; opacity: 0; transform: translateY(8px); transition: .3s var(--ease); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.gitem:hover .gcap { opacity: 1; transform: none; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: rgba(18,58,90,.85); backdrop-filter: blur(6px); padding: 4vw; }
.lightbox.open { display: grid; animation: fade .25s; }
@keyframes fade { from{opacity:0} to{opacity:1} }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 20px; right: 28px; font-size: 2.6rem; line-height: 1; color: #fff; width: 50px; height: 50px; border-radius: 50%; transition: background .2s; }
.lb-close:hover { background: rgba(255,255,255,.15); }

/* ---------- 15. CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.6rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-line { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contact-line:hover { transform: translateX(4px); box-shadow: var(--clay-shadow); }
.contact-line span:last-child { font-size: .96rem; line-height: 1.35; }
.contact-line strong { font-family: var(--font-display); color: var(--ink); }
.contact-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--c-primary) 14%, #fff); color: var(--c-primary); box-shadow: var(--clay-inset); }
.contact-ic svg { width: 24px; height: 24px; }
.contact-ic.wa { background: color-mix(in srgb, #25D366 18%, #fff); color: #128C4A; }

.contact-form { padding: 2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--line);
  background: var(--bg); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 16%, transparent); }
.field input:invalid:not(:placeholder-shown) { border-color: var(--c-coral); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { margin-top: .9rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #128C4A; } .form-note.err { color: #DC2626; }

/* ---------- 16. FOOTER ---------- */
.site-footer { background: var(--ink); color: #E1EFF9; padding-block: clamp(3rem,5vw,4.5rem) 1.6rem; margin-top: var(--space-section); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 2rem; }
.site-footer .brand-name { color: #fff; } .site-footer .brand-sub { color: var(--c-sunshine); }
.footer-mark { background: #fff; border-radius: 14px; padding: 6px 8px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.footer-mark img { height: 44px; }
.footer-slogan { font-family: var(--font-display); font-style: italic; margin: 1rem 0 .6rem; color: #E1EFF9; }
.footer-legal { font-size: .82rem; color: #9DB8CC; }
.footer-col h4 { font-size: 1.05rem; color: #fff; margin-bottom: 1rem; }
.footer-col a, .footer-addr { display: block; color: #C6DCEC; margin-bottom: .6rem; font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--c-sunshine); }
.footer-addr { color: #9DB8CC; }
.socials { display: flex; gap: .7rem; margin-bottom: 1.2rem; }
.soc { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.1); color: #fff; transition: background .2s, transform .2s; }
.soc:hover { background: var(--c-primary); transform: translateY(-3px); }
.soc svg { width: 22px; height: 22px; }
.footer-cta { margin-top: .2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #9DB8CC; }

/* ---------- 17. REVEAL ANIMATION (differentiated, not uniform) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* cards "pop" in with a slight scale — playful, not flat fade */
.js .clay-card.reveal, .js .svc.reveal, .js .pillar.reveal, .js .step.reveal,
.js .jornada.reveal, .js .mv-card.reveal { transform: translateY(30px) scale(.95); }
.js .clay-card.reveal.in, .js .svc.reveal.in, .js .pillar.reveal.in, .js .step.reveal.in,
.js .jornada.reveal.in, .js .mv-card.reveal.in { transform: none; opacity: 1; }
/* gallery tiles ease out of a gentle zoom */
.js .gitem.reveal { transform: scale(1.05); opacity: 0; }
.js .gitem.reveal.in { transform: none; opacity: 1; }
/* hero brand card slides in from the right with a tilt */
.js .hero-card.reveal { transform: translateX(48px) scale(.93) rotate(2.5deg); opacity: 0; }
.js .hero-card.reveal.in { transform: none; opacity: 1; }
/* hero parallax layer (moved by JS via requestAnimationFrame) */
.hero-decor { will-change: transform; }

/* ---------- 17b. SERVICES GROUPED (breaks the "wall of cards") ---------- */
.svc-group { margin-bottom: 2.6rem; }
.svc-group:last-child { margin-bottom: 0; }
.svc-cat { display: flex; align-items: baseline; gap: .7rem; font-size: 1.2rem; margin-bottom: 1.1rem; }
.svc-cat::before { content: ""; align-self: center; width: 30px; height: 5px; border-radius: 3px; background: var(--tint, var(--c-primary)); flex: none; }
.svc-cat small { font-family: var(--font-body); font-weight: 700; font-size: .82rem; color: #3F5B73; }
.svc-group .svc { box-shadow: var(--clay-shadow-sm); }

/* ---------- 17c. MISIÓN / VISIÓN (distinct, not twin white cards) ---------- */
.mv-card { position: relative; overflow: hidden; border-top: 6px solid var(--tint, var(--c-primary)); }
.mv-wm { position: absolute; top: -1.2rem; right: .4rem; z-index: 0; font-family: var(--font-display); font-weight: 800; font-size: 7.5rem; line-height: 1; color: color-mix(in srgb, var(--tint) 13%, transparent); pointer-events: none; }
.mv-card > *:not(.mv-wm) { position: relative; z-index: 1; }

/* ---------- 17d. CTA BAND (colored, full-bleed feel) ---------- */
.cta-band { padding-block: var(--space-section); }
.cta-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, #0C6FA6 0%, #0E7DB8 62%, #2AAEE6 100%); color: #fff; padding: clamp(2.2rem, 5vw, 3.4rem); box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 2rem; }
.cta-panel h2 { color: #fff; font-size: var(--fs-h2); }
.cta-panel p { color: #fff; margin-top: .7rem; max-width: 42ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.cta-panel .btn-ghost { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.cta-panel .btn-ghost:hover { background: rgba(255,255,255,.26); }
.cta-char { position: relative; z-index: 1; width: clamp(150px, 18vw, 230px); filter: drop-shadow(6px 8px 14px rgba(0,0,0,.25)); animation: float1 6s ease-in-out infinite; }
.cta-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cta-deco .c-sun { position: absolute; top: -30px; right: 22%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #FFE07A, #FFC72C); opacity: .9; }
.cta-deco .c-cloud { position: absolute; width: 90px; height: 30px; background: rgba(255,255,255,.22); border-radius: 30px; }
.cta-deco .c-cloud.a { top: 20%; left: 4%; } .cta-deco .c-cloud.b { bottom: 14%; left: 30%; transform: scale(.7); }

/* ---------- 17e. MOBILE STICKY ACTION BAR ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none; gap: .6rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 -6px 20px rgba(70,130,180,.18); }
.mobile-bar .btn { flex: 1; padding-block: .85rem; }
.mobile-bar .btn-wa { background: #128C4A; color: #fff; box-shadow: none; }
.mobile-bar .btn-wa:hover { background: #0F7A40; }

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; margin: 0 auto; }
  .pillars, .jornadas-grid, .steps { grid-template-columns: repeat(2,1fr); }
  .steps { row-gap: 2.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm span, .header-actions .btn-primary { }
  .stats-grid { grid-template-columns: repeat(2,1fr); row-gap: 1.6rem; }
  .stat:nth-child(3)::before { display: none; }
  .mv-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 170px; }
  .g-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .pillars, .jornadas-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: .5rem; }
  .clay-badge { left: 10px; }
  .header-actions .btn .ic { margin: 0; }
  .stat + .stat::before { display: none; }
}

@media (max-width: 768px) {
  .cta-panel { grid-template-columns: 1fr; text-align: center; }
  .cta-char { order: -1; margin: 0 auto; }
  .cta-actions { justify-content: center; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
  .lightbox { padding-bottom: 90px; }
}

/* ---------- 19. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .shape { animation: none !important; }
}
