/* ==========================================================================
   MINK'A — jardín de niños y maternal (Waldorf) · design-faithful rebuild
   Self-contained. No external requests. Palette from brief.md.
   ========================================================================== */

:root {
  /* Surfaces */
  --cream: #f2ece1;
  --cream-2: #efe7d9;
  --white: #ffffff;
  --tan: #c9b49a;
  --tan-dark: #b9a184;
  --ink: #1f1b16;
  --ink-soft: #4c4436;

  /* Rainbow accent set */
  --amber: #f2b34d;
  --amber-dark: #e29e2f;
  --coral: #f0655a;
  --blue: #3b53e0;
  --green: #8bbe3d;
  --purple: #7b5bd6;

  /* Soft photo-placeholder tints */
  --ph-1: #e7d3b8;
  --ph-2: #dfe6c9;
  --ph-3: #cfe0e8;
  --ph-4: #ecd2cf;
  --ph-5: #e2d7ee;

  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 10px 30px rgba(60, 45, 25, 0.12);
  --shadow-soft: 0 6px 18px rgba(60, 45, 25, 0.10);
  --maxw: 1160px;
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.5px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
p { margin: 0 0 1rem; }

a { color: var(--blue); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Accent word colors */
.a-amber  { color: var(--amber-dark); }
.a-coral  { color: var(--coral); }
.a-blue   { color: var(--blue); }
.a-green  { color: var(--green); }
.a-purple { color: var(--purple); }

/* Rainbow-tinted wordmark letters */
.rainbow-word span:nth-child(1){color:var(--coral);}
.rainbow-word span:nth-child(2){color:var(--amber-dark);}
.rainbow-word span:nth-child(3){color:var(--green);}
.rainbow-word span:nth-child(4){color:var(--blue);}
.rainbow-word span:nth-child(5){color:var(--purple);}
.rainbow-word span:nth-child(6){color:var(--coral);}
.rainbow-word span:nth-child(7){color:var(--amber-dark);}

/* ------------------------------------------------ Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .85em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; color: var(--ink); background: var(--amber);
  box-shadow: var(--shadow-soft); transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn-amber  { background: var(--amber); color: #402c07; }
.btn-coral  { background: var(--coral); color: #fff; }
.btn-blue   { background: var(--blue);  color: #fff; }
.btn-green  { background: var(--green); color: #24350a; }
.btn-outline{ background: transparent; box-shadow: none; border: 2px solid currentColor; color: var(--ink); }
.btn-small  { padding: .6em 1.1em; font-size: .92rem; }

/* Focus visibility */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.1) blur(6px);
  box-shadow: 0 2px 14px rgba(60, 45, 25, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .logo { width: 52px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 900; font-size: 1.35rem; letter-spacing: 1px; }
.brand-sub  { font-size: .68rem; color: var(--ink-soft); letter-spacing: .3px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: .5em .7em; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.primary-nav a:hover { background: var(--cream-2); }
.nav-admision a { background: var(--amber); color: #402c07; }
.nav-admision a:hover { background: var(--amber-dark); }

.cart-btn {
  position: relative; margin-left: 4px; background: var(--cream-2); border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.cart-btn:hover { background: var(--tan); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--coral); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[data-count="0"] { display: none; }

.nav-toggle { display: none; background: var(--cream-2); border: 0; border-radius: 12px;
  width: 46px; height: 44px; cursor: pointer; padding: 0; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--ink); margin: 4px auto; border-radius: 3px; transition: .2s; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .cart-btn { margin-left: 6px; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: var(--shadow); margin: 0;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .primary-nav.open { max-height: 640px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 20px; gap: 2px; }
  .primary-nav a { display: block; padding: .8em 1em; font-size: 1.05rem; }
  .nav-admision a { text-align: center; margin-top: 8px; }
}

/* ==========================================================================
   Section banners with brush-stroke splash title
   ========================================================================== */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.banner {
  position: relative; min-height: 300px; display: grid; place-items: center;
  border-radius: var(--radius-lg); overflow: hidden; margin: 0 auto; text-align: center;
  color: var(--ink);
}
.banner .banner-photo { position: absolute; inset: 0; }
.splash { position: relative; display: inline-grid; place-items: center; padding: 42px 60px; max-width: 90%; }
.splash svg.blob { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; filter: drop-shadow(0 8px 18px rgba(60,45,25,.18)); }
.splash .splash-inner { position: relative; z-index: 1; }
.splash h1, .splash h2 { margin: 0; }
.splash .kicker { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; color: var(--ink-soft); }

/* ==========================================================================
   Photo placeholders (labeled warm blocks — no external images)
   ========================================================================== */
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--ph-1), #f6ede0);
  box-shadow: var(--shadow); min-height: 220px;
  display: flex; align-items: flex-end; color: #5b4a2f;
}
.photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 45%),
                    radial-gradient(circle at 75% 70%, rgba(255,255,255,.35), transparent 40%);
}
.photo .cap {
  position: relative; font-size: .82rem; font-weight: 600; line-height: 1.35;
  background: rgba(255,255,255,.82); padding: 8px 12px; margin: 12px; border-radius: 12px;
  backdrop-filter: blur(2px);
}
.photo.p2 { background: linear-gradient(135deg, var(--ph-2), #f3f6e6); }
.photo.p3 { background: linear-gradient(135deg, var(--ph-3), #eef6fa); }
.photo.p4 { background: linear-gradient(135deg, var(--ph-4), #fbeeec); }
.photo.p5 { background: linear-gradient(135deg, var(--ph-5), #f5effc); }
.photo.tall { min-height: 320px; }
.photo.banner-photo { border-radius: 0; box-shadow: none; }
.photo.banner-photo .cap { margin: 14px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.rev .split-media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev .split-media { order: 0; } }

.lead { font-size: 1.12rem; color: var(--ink-soft); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 800; color: var(--coral); margin-bottom: .4rem; }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 26px; height: 100%;
}

/* Two-tone info cards (misión / visión) */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px){ .info-cards { grid-template-columns: 1fr; } }
.info-cards .card { border-top: 6px solid var(--amber); }
.info-cards .card.v { border-top-color: var(--green); }

/* ==========================================================================
   Hero (Inicio)
   ========================================================================== */
.hero { position: relative; }
.hero-banner {
  position: relative; min-height: 520px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden; display: grid; place-items: center; padding: 40px 16px;
  background: linear-gradient(160deg, #e9d6b6, #f0e6d3 60%, #dfe6c9);
}
.hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(255,255,255,.55), transparent 40%);
}
.hero-rainbow { position: absolute; right: 6%; top: 34px; width: min(320px, 40vw); opacity: .9; }
.hero-card {
  position: relative; z-index: 2; background: rgba(255,255,255,.93); backdrop-filter: blur(3px);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px clamp(24px,4vw,52px);
  max-width: 640px; text-align: center;
}
.hero-card h1 { margin-bottom: .3em; }
.hero-card .sub { font-size: 1.18rem; color: var(--ink-soft); margin-bottom: 1.4em; }
.hero-banner-cap {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  background: rgba(255,255,255,.8); padding: 6px 11px; border-radius: 10px;
  font-size: .76rem; font-weight: 600; color: #5b4a2f; max-width: 60%;
}

/* ==========================================================================
   Quote band
   ========================================================================== */
.quote-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; text-align: center;
  padding: 70px 20px; background: linear-gradient(135deg, #d9e5ea, #e7eecf);
  display: grid; place-items: center;
}
.quote-splash { position: relative; padding: 40px clamp(20px,5vw,70px); max-width: 820px; }
.quote-splash svg.blob { position: absolute; inset: 0; width: 100%; height: 100%; }
.quote-splash blockquote { position: relative; z-index: 1; margin: 0; font-size: clamp(1.25rem,3vw,1.8rem); font-weight: 700; }
.quote-splash cite { position: relative; z-index: 1; display: block; margin-top: .8rem; font-style: normal; font-weight: 600; color: var(--ink-soft); }

/* ==========================================================================
   Team grid
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.team-card { text-align: center; }
.team-card .photo { min-height: 200px; margin-bottom: 12px; }
.team-role { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; color: var(--coral); }
.team-name { font-weight: 800; font-size: 1.12rem; }

/* ==========================================================================
   Activities
   ========================================================================== */
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.act-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column; }
.act-card .photo { min-height: 170px; border-radius: 0; box-shadow: none; }
.act-card .act-body { padding: 20px 22px 24px; }
.act-card h3 { margin-bottom: .35em; }
.act-card h3 .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* Complementario */
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px){ .comp-grid { grid-template-columns: 1fr; } }
.comp-card { border-left: 6px solid var(--purple); }
.comp-card.t { border-left-color: var(--green); }

/* ==========================================================================
   Blog grid
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.blog-card .photo { min-height: 160px; border-radius: 0; box-shadow: none; }
.blog-card .blog-title { padding: 14px 18px 18px; font-weight: 700; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-form-panel { background: #fff; padding: 40px clamp(24px,4vw,44px); }
.contact-side { background: var(--blue); color: #fff; padding: 40px clamp(24px,4vw,44px); }
.contact-side a { color: #fff; text-decoration: none; }
.contact-side .soc { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.contact-side .soc svg { width: 26px; height: 26px; flex: none; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid #e4dccb;
  font: inherit; background: var(--cream); color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.form-status { margin-top: 12px; font-weight: 700; color: var(--green); min-height: 1.2em; }

.map-ph {
  position: relative; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden;
  background:
    linear-gradient(0deg, rgba(139,190,61,.10), rgba(59,83,224,.06)),
    repeating-linear-gradient(0deg, #e7e2d6 0 39px, #ded7c6 39px 40px),
    repeating-linear-gradient(90deg, #e7e2d6 0 39px, #ded7c6 39px 40px);
  display: grid; place-items: center; box-shadow: var(--shadow-soft);
}
.map-pin { position: relative; text-align: center; }
.map-pin .pin { width: 34px; height: 34px; margin: 0 auto 8px; color: var(--coral); }
.map-pin .addr { background: #fff; border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow-soft); font-weight: 600; font-size: .9rem; }

/* ==========================================================================
   Admisión steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 780px){ .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 26px; text-align: center; }
.step .num {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px; color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1.7rem;
}
.step:nth-child(1) .num { background: var(--coral); }
.step:nth-child(2) .num { background: var(--blue); }
.step:nth-child(3) .num { background: var(--amber); color: #402c07; }
.step .photo { min-height: 150px; margin-bottom: 16px; }

/* Certification */
.cert { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
@media (max-width: 640px){ .cert { grid-template-columns: 1fr; } }
.cert-logo { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); min-height: 150px; display: grid; place-items: center; padding: 20px; text-align: center; font-weight: 800; color: var(--purple); }

/* ==========================================================================
   Tienda / Store
   ========================================================================== */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column; }
.product .photo { min-height: 170px; border-radius: 0; box-shadow: none; }
.product .p-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 1.15rem; margin: 0; }
.product .p-desc { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.product .p-price { font-weight: 800; font-size: 1.1rem; }
.product .p-price small { display: block; font-weight: 600; font-size: .72rem; color: var(--ink-soft); }
.product .btn { margin-top: 8px; align-self: flex-start; }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(31,27,22,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: 300; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--cream); box-shadow: -10px 0 40px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .28s ease; z-index: 310;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #e0d8c8; }
.cart-head h2 { margin: 0; font-size: 1.35rem; }
.cart-close { background: none; border: 0; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--ink); padding: 4px 8px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 10px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid #e5ddcd; }
.cart-line .cl-name { font-weight: 700; }
.cart-line .cl-price { color: var(--ink-soft); font-size: .88rem; }
.cart-line .cl-sub { font-weight: 800; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--cream-2); font-weight: 800; cursor: pointer; font-size: 1rem; }
.qty button:hover { background: var(--tan); }
.cl-remove { background: none; border: 0; color: var(--coral); cursor: pointer; font-size: .82rem; text-decoration: underline; padding: 0; justify-self: start; }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid #e0d8c8; background: var(--cream-2); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.cart-foot .btn { width: 100%; justify-content: center; }
.cart-disclaimer { font-size: .78rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--tan); color: #fff; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 34px; padding: 54px 0 30px; }
@media (max-width: 820px){ .footer-top { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .logo { width: 58px; height: 44px; }
.footer-brand .fb-name { font-weight: 900; font-size: 1.4rem; letter-spacing: 1px; }
.footer-tag { font-size: .92rem; opacity: .95; max-width: 34ch; }
.footer-col h3 { font-size: 1.05rem; margin-bottom: .7em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55em; font-size: .95rem; }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.3); padding: 18px 0; font-size: .82rem; text-align: center; opacity: .95; }

/* ==========================================================================
   Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
