/* =========================================================
   Sol de Invierno · Pedagogía Waldorf — Landing
   ========================================================= */

:root {
  --plum: #592B5D;
  --plum-900: #3B1B3F;
  --lavender: #A3779D;
  --lilac: #DCCBE0;
  --cream: #ECE3D3;
  --paper: #F5EFE4;
  --mustard: #F2A71B;
  --butter: #F5DD9B;
  --ink: #3A2340;
  --ink-soft: #6A5670;
  --wa: #25D366;

  --font-display: "Fredoka", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(59, 27, 63, .08), 0 12px 30px -12px rgba(59, 27, 63, .28);
  --wrap: 1160px;
  --header-h: 76px;

  /* subrayado dibujado a mano */
  --underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5C40 4 90 3.5 197 6.5' fill='none' stroke='%23F2A71B' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  /* textura de papel */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); color: var(--plum); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.paper { background-color: var(--paper); background-image: var(--grain); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: .9rem;
}
.eyebrow-light { color: var(--butter); }

.mark {
  background: var(--underline) no-repeat left bottom / 100% .32em;
  padding-bottom: .12em;
  color: var(--mustard);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mark-light { color: var(--butter); }
.nowrap { white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1rem/1 var(--font-display);
  letter-spacing: .01em;
  padding: 1em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--mustard); outline-offset: 3px;
}
.btn-sm { padding: .7em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-sun { background: var(--mustard); color: var(--plum-900); box-shadow: 0 8px 20px -8px rgba(242, 167, 27, .7); }
.btn-sun:hover { background: #f7b73d; }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-900); }
.btn-ghost { background: transparent; color: var(--plum); border-color: currentColor; }
.btn-ghost:hover { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn-wa { background: var(--plum); color: #fff; font-size: 1.08rem; padding: 1.1em 1.6em; }
.btn-wa .ico { color: var(--wa); width: 1.4em; height: 1.4em; }
.btn-wa:hover { background: var(--plum-900); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { position: relative; display: block; }
.brand-logo { height: 52px; width: auto; transition: opacity .3s ease; }
.brand-dark { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 500; font-size: .98rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.nav a:not(.btn):hover { color: var(--butter); }

.site-header.is-solid {
  background: rgba(245, 239, 228, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(89, 43, 93, .1);
}
.site-header.is-solid .brand-light { opacity: 0; }
.site-header.is-solid .brand-dark { opacity: 1; }
.site-header.is-solid .nav a:not(.btn) { color: var(--plum); text-shadow: none; }
.site-header.is-solid .nav a:not(.btn):hover { color: var(--lavender); }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 42px; }
  .nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--plum-900) center / cover no-repeat;
  overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(59, 27, 63, .55) 0%, rgba(59, 27, 63, 0) 22%),
    linear-gradient(0deg, rgba(59, 27, 63, .92) 0%, rgba(59, 27, 63, .55) 38%, rgba(59, 27, 63, .05) 70%);
}
.hero-content { padding-block: 0 clamp(56px, 10vh, 110px); }
.hero-place {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .9rem; font-weight: 500; letter-spacing: .04em;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: .45em 1em; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(3.4rem, 10vw, 7.6rem);
  font-weight: 500; line-height: .95; margin: 0 0 .2em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.hero-sub {
  font: 400 clamp(1.4rem, 3vw, 2.1rem)/1.2 var(--font-display);
  margin: 0 0 2.2rem; color: var(--butter);
}

/* ---------- Frase ---------- */
.quote-band { padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.quote-inner { max-width: 820px; }
.quote-sun { width: 54px; height: 54px; color: var(--mustard); margin: 0 auto 1.4rem; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p {
  font: 400 clamp(1.45rem, 3vw, 2.15rem)/1.35 var(--font-display);
  color: var(--plum); margin-bottom: 1rem; text-wrap: balance;
}
.quote-band cite { font-style: normal; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }

/* ---------- Sobre ---------- */
.about { padding: 0 0 clamp(80px, 10vw, 130px); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-text > p { color: var(--ink-soft); font-size: 1.06rem; max-width: 52ch; }

.timeline {
  list-style: none; padding: 0; margin: 2.2rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 9px; left: 9px; right: calc(33.333% - 9px);
  border-top: 2px dashed var(--lavender); opacity: .55;
}
.timeline li { position: relative; padding-top: 30px; padding-right: 8px; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--plum); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--plum);
}
.timeline li.is-next::before { background: var(--mustard); box-shadow: 0 0 0 2px var(--mustard); }
.timeline strong { display: block; font: 500 1.05rem/1.2 var(--font-display); color: var(--plum); }
.timeline span { font-size: .85rem; color: var(--ink-soft); }

/* Polaroids */
.polaroid {
  position: relative; margin: 0;
  background: #fff; padding: 12px 12px 0;
  box-shadow: var(--shadow);
  border-radius: 3px;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; }
.polaroid figcaption {
  font: 500 .95rem/1 var(--font-display); color: var(--plum);
  text-align: center; padding: 14px 4px 16px;
}
.clip { position: absolute; top: -18px; left: 50%; width: 18px; height: 46px; transform: translateX(-50%) rotate(4deg); z-index: 2; }

.collage { position: relative; min-height: 560px; }
.collage .polaroid { position: absolute; width: 48%; transition: transform .4s ease; }
.collage .polaroid:hover { z-index: 5; transform: rotate(0) scale(1.03); }
.collage .p1 { left: 0; top: 40px; transform: rotate(-4deg); z-index: 2; }
.collage .p2 { right: 0; top: 0; transform: rotate(3.5deg); }
.collage .p3 { left: 27%; bottom: -20px; width: 44%; transform: rotate(-1deg); z-index: 3; }
.doodle { position: absolute; }
.doodle-flower { width: 46px; height: 46px; color: var(--lavender); right: 6%; bottom: 8%; transform: rotate(14deg); }
.doodle-sun { width: 58px; height: 58px; color: var(--mustard); left: -10px; bottom: 16%; }

/* ---------- Niveles ---------- */
.levels {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--cream) var(--grain);
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { text-wrap: balance; }

.folders { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.folder { position: relative; padding-top: 34px; }
.folder-tab {
  position: absolute; top: 0; left: 28px;
  height: 36px; padding: 0 22px;
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 12px 12px 0 0;
}
.folder-body {
  height: 100%;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch;
  padding: 34px 30px 30px;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.folder h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .5rem; }
.folder p { margin-bottom: .8rem; }
.folder .addr { display: flex; gap: .5em; align-items: flex-start; font-weight: 500; margin-top: 1.2rem; }
.folder .addr .ico { margin-top: .2em; }
.folder .note { font-size: .9rem; opacity: .85; border-left: 2px solid currentColor; padding-left: .8em; }
.folder-photo { margin: 0; border-radius: 12px; overflow: hidden; align-self: center; transform: rotate(2deg); box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), var(--shadow); }
.folder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.folder-plum .folder-tab { background: var(--plum); color: var(--lilac); }
.folder-plum .folder-body { background: var(--plum); color: #fff; }
.folder-plum h3 { color: #fff; }
.folder-plum .addr .ico { color: var(--mustard); }
.folder-butter .folder-tab { background: var(--butter); color: var(--plum); }
.folder-butter .folder-body { background: var(--butter); color: var(--ink); }
.folder-butter h3 { color: var(--plum); }
.folder-butter .addr .ico { color: var(--plum); }
.folder-butter .folder-photo { transform: rotate(-2deg); }

.growing {
  margin-top: 28px;
  display: flex; align-items: center; gap: 22px;
  padding: 26px 30px;
  background: var(--lilac);
  border-radius: var(--radius);
  border: 2px dashed rgba(89, 43, 93, .35);
}
.growing h3 { color: var(--plum); margin-bottom: .2rem; }
.growing p { margin: 0; color: var(--ink); }
.growing-ico { width: 52px; height: 52px; color: var(--lavender); flex: none; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Visitá / Form ---------- */
.visit {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--plum) var(--grain);
  color: #fff;
  overflow: hidden;
}
.visit::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -200px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242, 167, 27, .25), rgba(242, 167, 27, 0) 70%);
}
.visit-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.visit h2 { color: #fff; }
.visit-intro > p { color: rgba(255, 255, 255, .82); font-size: 1.06rem; max-width: 44ch; }
.polaroid-sm { width: min(300px, 70%); margin-top: 2.4rem; transform: rotate(-3deg); }

.visit-form {
  background: var(--paper) var(--grain);
  color: var(--ink);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5);
}
.visit-form h3 { color: var(--plum); font-size: 1.6rem; margin-bottom: 1.4rem; }
.field { margin: 0 0 1.05rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { display: block; font-size: .88rem; font-weight: 700; color: var(--plum); margin-bottom: .4rem; padding: 0; }
.field input, .field select {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(89, 43, 93, .2);
  border-radius: 12px;
  padding: .8em .95em;
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23592B5D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8em center; background-size: 1.1em;
  padding-right: 2.4em;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 4px rgba(163, 119, 157, .22); }
.field input::placeholder { color: #b3a7b5; }
.field .is-invalid, .field.is-invalid .chip span { border-color: #c2410c; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: .6em 1.05em;
  border: 1.5px solid rgba(89, 43, 93, .25); border-radius: 999px;
  font-size: .95rem; font-weight: 500; color: var(--plum); background: #fff;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover span { border-color: var(--lavender); }
.chip input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b4330a; font-size: .92rem; font-weight: 500; margin: 0 0 .8rem; }
.form-hint { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: .9rem 0 0; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(80px, 10vw, 130px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.contact-cards { display: grid; gap: 18px; }
.place {
  background: #fff; border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color .25s ease;
}
.place.is-active { border-color: var(--lavender); }
.place-tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); margin-bottom: .3rem; }
.place h3 { color: var(--plum); margin-bottom: .7rem; }
.place p:not(.place-tag) { display: flex; gap: .55em; align-items: center; margin-bottom: .35rem; }
.place .ico { color: var(--lavender); }
.place a { text-decoration: none; font-weight: 500; }
.place a:hover { color: var(--plum); text-decoration: underline; }
.place-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.place-actions .ico { color: inherit; }

.contact-list { list-style: none; margin: 0; padding: 22px 26px; background: var(--lilac); border-radius: var(--radius); display: grid; gap: .55rem; }
.contact-list li { display: flex; gap: .65em; align-items: center; min-width: 0; }
.contact-list .ico { color: var(--plum); }
.contact-list a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.contact-list a:hover { text-decoration: underline; }

.map-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px;
  background: var(--cream);
  box-shadow: 0 0 0 8px #fff, var(--shadow);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.8) sepia(.12); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-900); color: rgba(255, 255, 255, .8); padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: center; }
.footer-brand img { height: 64px; width: auto; margin-bottom: .8rem; }
.footer-brand p { margin: 0; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-nav a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--butter); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--mustard); color: var(--plum-900); border-color: var(--mustard); }
.footer-copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; opacity: .6; }

/* WhatsApp flotante (solo mobile) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35);
  transition: transform .3s ease, opacity .3s ease;
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float.is-hidden { transform: scale(.6); opacity: 0; pointer-events: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .visit-grid, .contact-grid { grid-template-columns: 1fr; }
  .folders { grid-template-columns: 1fr; }
  .collage { min-height: 0; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin: 20px auto 0; }
  .polaroid-sm { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .map-frame { min-height: 340px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .folder-body { grid-template-columns: 1fr; padding: 28px 22px 24px; }
  .folder-photo { max-width: 260px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .growing { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .collage .polaroid { padding: 7px 7px 0; }
  .collage .polaroid figcaption { font-size: .78rem; padding: 9px 2px 11px; }
  .clip { width: 14px; height: 36px; top: -14px; }
  .doodle-sun { width: 42px; height: 42px; }
  .wa-float { display: grid; }
  .place-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
