/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #13274F;
  --navy-2: #1E3566;
  --coral: #F2765E;
  --coral-d: #DE5F47;
  --mint: #7FCBB8;
  --mint-l: #E3F4EF;
  --mustard: #E8B043;
  --cream: #FBF3E6;
  --cream-2: #F5EAD7;
  --ink: #1B2440;
  --muted: #5B6480;
  --white: #fff;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --shadow: 0 10px 30px rgba(19, 39, 79, .10);
  --shadow-lg: 0 20px 50px rgba(19, 39, 79, .18);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--mint); color: var(--navy); }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--navy); color: #fff; z-index: 9999; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.center { text-align: center; }
.tiny { font-size: .82rem; color: var(--muted); }
.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: .6rem; }
.eyebrow.light { color: var(--mint); }
.hl { color: var(--coral); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .22em; background: var(--mint); opacity: .55; border-radius: 99px; z-index: -1; }
.print-only { display: none; }
[hidden] { display: none !important; }

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  padding: .85rem 1.5rem; border-radius: 99px; text-decoration: none;
  transition: transform .25s var(--ease-bounce), box-shadow .25s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 0 var(--coral-d); }
.btn-coral:hover { box-shadow: 0 8px 0 var(--coral-d); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-sm { padding: .55rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }

.chip, .pill {
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  padding: .55rem 1rem; border-radius: 99px; background: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 2px 0 rgba(19,39,79,.08), inset 0 0 0 1.5px rgba(19,39,79,.10);
  transition: transform .2s var(--ease-bounce), background .2s, color .2s;
}
.chip:hover, .pill:hover { transform: translateY(-2px); }
.pill.is-on { background: var(--navy); color: #fff; box-shadow: none; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }

/* Formularios */
.form { display: grid; gap: 1rem; }
.form h3 { margin-bottom: .2rem; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; color: var(--navy); }
.form input:not([type=checkbox]):not([type=radio]), .form select {
  font: inherit; font-weight: 600; width: 100%; padding: .8rem 1rem; border-radius: 14px;
  border: 2px solid #E5DCCB; background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--mint); background: #fff; }
.form .is-invalid { border-color: var(--coral) !important; background: #FFF1EE !important; }
.form fieldset { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.form legend { font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: .4rem; width: 100%; }
.form .checks label, .form .seg label {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; padding: .5rem .9rem;
  border-radius: 99px; background: var(--cream); border: 2px solid #E5DCCB; cursor: pointer;
}
.form .checks label:has(input:checked) { background: var(--mint-l); border-color: var(--mint); }
.form .seg input { position: absolute; opacity: 0; pointer-events: none; }
.form .seg label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.form .seg label:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }
.form .consent { display: flex !important; align-items: flex-start; gap: .55rem; font-weight: 600 !important; font-size: .88rem !important; color: var(--muted) !important; }
.form .consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--coral); flex: none; }
.form .consent a { color: var(--coral); font-weight: 800; }
.form .consent.is-invalid { color: var(--coral) !important; }
.row2 { display: grid; gap: 1rem; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 243, 230, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(19,39,79,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--coral); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.4rem; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--navy); }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--navy); line-height: 1; }
.logo-text small { display: block; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--coral); font-weight: 600; }
.logo.light .logo-text { color: #fff; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.nav-toggle i { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded=true] i:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded=true] i:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded=true] i:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-menu { position: absolute; top: 68px; left: 0; right: 0; background: var(--cream); padding: 1rem 16px 1.5rem; display: none; flex-direction: column; gap: .3rem; box-shadow: var(--shadow); }
.nav-menu.is-open { display: flex; }
.nav-menu a:not(.btn) { padding: .7rem .5rem; font-weight: 800; text-decoration: none; color: var(--navy); border-radius: 10px; }
.nav-menu a:not(.btn):hover { background: var(--cream-2); }
.nav-menu .btn { margin-top: .5rem; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.soft { background: var(--cream-2); }
.sec-head { max-width: 680px; margin-bottom: 2.2rem; }
.sec-head p:last-child { color: var(--muted); }

/* Hero */
.hero { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 2rem; }
.hero-head { text-align: center; max-width: 780px; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); margin: 1rem auto 1.6rem; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.town-wrap { position: relative; margin-top: 2rem; background: linear-gradient(180deg, #CFEAF6 0 40%, #9ED5B3 40%); }
.town-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.town-scroll::-webkit-scrollbar { display: none; }
.town { width: max(100%, 1700px); max-width: none; height: auto; }
@media (min-width: 1200px) { .town { width: 100%; } }
.swipe-hint { display: none; position: absolute; top: .8rem; left: 50%; transform: translateX(-50%); z-index: 3; text-align: center; font-weight: 800; font-size: .85rem; color: var(--navy); background: rgba(255,255,255,.85); padding: .35rem .9rem; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.town-wrap.is-scrollable .swipe-hint { display: block; }
.town-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 2rem; line-height: 1; box-shadow: var(--shadow); }
.town-arrow.l { left: 12px; } .town-arrow.r { right: 12px; }
.town-wrap.is-scrollable .town-arrow { display: grid; place-items: center; padding-bottom: 4px; }
.town-wrap.at-start .town-arrow.l, .town-wrap.at-end .town-arrow.r { opacity: .35; pointer-events: none; }

/* Edificios */
.bldg { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .35s var(--ease-bounce), filter .3s; outline: none; }
.bldg:hover, .bldg:focus-visible { transform: translateY(-8px) scale(1.04); filter: drop-shadow(0 10px 10px rgba(19,39,79,.22)); }
.bldg:focus-visible .tag rect { stroke: var(--coral); stroke-width: 3; }
.tag rect { fill: #fff; stroke: rgba(19,39,79,.12); stroke-width: 1.5; }
.tag text { font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--navy); text-anchor: middle; }
.bldg:hover .tag rect { fill: var(--navy); }
.bldg:hover .tag text { fill: #fff; }
.svg-sign { font-family: var(--display); font-weight: 700; font-size: 13px; fill: #fff; letter-spacing: .08em; }
.svg-sign.big { font-size: 20px; }
.svg-sign.navy { fill: var(--navy); font-size: 12px; }

.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.2rem; }

/* Pitch */
.pitch-grid { display: grid; gap: 2rem; align-items: center; }
.pitch p { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.pillars li { background: #fff; border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--shadow); border-top: 5px solid var(--mint); }
.pillars li:nth-child(2) { border-color: var(--coral); }
.pillars li:nth-child(3) { border-color: var(--mustard); }
.pillars li:nth-child(4) { border-color: #7B5CC4; }
.pillars li:nth-child(5) { border-color: var(--navy); }
.pillars b { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--navy); }
.pillars span { font-size: .9rem; color: var(--muted); }

/* Directorio */
.filters { display: grid; gap: .8rem; margin-bottom: 1.6rem; }
.search input { width: 100%; font: inherit; font-weight: 600; padding: .95rem 1.2rem .95rem 3rem; border-radius: 99px; border: 2px solid #E5DCCB; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2313274F' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E") no-repeat 1.1rem center; }
.search input:focus { outline: none; border-color: var(--mint); }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-row.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.dir-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.biz {
  position: relative; display: flex; flex-direction: column; gap: .6rem; text-align: left;
  background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow);
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
}
.biz:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.biz-top { display: flex; align-items: center; gap: .75rem; }
.biz-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.biz-ic svg { width: 40px; height: 40px; }
.biz h3 { font-size: 1.15rem; }
.biz-cat { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.biz p { font-size: .93rem; color: var(--muted); }
.biz .ages { display: flex; gap: .3rem; flex-wrap: wrap; }
.age-tag { font-size: .75rem; font-weight: 800; padding: .2rem .55rem; border-radius: 99px; background: var(--cream); color: var(--navy); }
.badge-f { align-self: flex-start; font-size: .7rem; font-weight: 800; padding: .25rem .6rem; border-radius: 99px; background: var(--mustard); color: var(--navy); }
.badge-f.ex { background: var(--cream-2); color: var(--muted); }
.wow { font-size: .88rem; font-weight: 700; color: var(--navy); background: var(--mint-l); border-radius: 12px; padding: .5rem .7rem; }
.wow b { color: var(--coral); }
.biz .more { margin-top: auto; font-weight: 800; color: var(--coral); font-size: .92rem; }
.dir-empty { margin-top: 1rem; text-align: center; color: var(--muted); }
.dir-empty a { color: var(--coral); font-weight: 800; }

/* Cuentos */
.cuentos { background: linear-gradient(180deg, var(--cream) 0%, #EAF5FA 100%); }
.cuento-grid { display: grid; gap: 2rem; align-items: start; }
.cuento-form-wrap > p { color: var(--muted); margin-bottom: 1.2rem; }
.book {
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(1.25rem, 3vw, 2.2rem);
  min-height: 460px; display: grid; position: relative; overflow: hidden;
  border: 6px solid #fff; outline: 2px dashed var(--mint); outline-offset: -14px;
}
.book-cover { display: grid; place-content: center; text-align: center; gap: .4rem; }
.book-art svg { width: 220px; margin: 0 auto; }
.book-title { font-family: var(--display); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.book-pages { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: .8rem; }
.page-art { height: 190px; border-radius: 20px; overflow: hidden; }
.page-art svg { width: 100%; height: 100%; }
.page-title { font-size: 1.35rem; }
.page-text { font-size: 1.15rem; line-height: 1.7; color: var(--ink); }
.page-text.fade { animation: pageIn .5s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.book-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pg-count { font-weight: 800; color: var(--muted); font-size: .9rem; }
.book-tools { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.btn[disabled] { opacity: .4; pointer-events: none; }
#read-aloud.is-reading { background: var(--coral); }

/* Journey */
.journey { display: grid; gap: 1rem; }
.stage { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; }
.stage.s1::before { background: var(--coral); }
.stage.s2::before { background: var(--mustard); }
.stage.s3::before { background: var(--mint); }
.stage-n { font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stage h3 { font-size: 1.6rem; margin: .2rem 0 .3rem; }
.stage h3 small { font-family: var(--sans); font-size: .95rem; color: var(--coral); font-weight: 800; }
.stage p { color: var(--muted); margin-bottom: .8rem; }
.stage ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.stage li { font-size: .85rem; font-weight: 700; background: var(--cream); padding: .3rem .7rem; border-radius: 99px; }

/* Planes */
.plans { display: grid; gap: 1rem; align-items: stretch; }
.plan { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1rem; position: relative; }
.plan .price { font-family: var(--display); font-size: 2.3rem; font-weight: 700; color: var(--navy); line-height: 1; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan .btn { margin-top: auto; }
.plan.featured { background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .price small { color: var(--mint); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-weight: 800; font-size: .8rem; padding: .35rem 1rem; border-radius: 99px; }
.check li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; font-weight: 600; }
.check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/80% no-repeat; }
.plan.featured .check li::before { background-color: var(--coral); }
.plans + .tiny { margin-top: 1.2rem; }

/* Peques */
.soon-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.soon { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 2px dashed var(--mint); }
.soon-ic { font-size: 2.2rem; display: block; margin-bottom: .4rem; }
.soon p { color: var(--muted); font-size: .95rem; }

/* Negocios */
.navy { background: var(--navy); color: #E7ECF7; }
.navy h2 { color: #fff; }
.neg-grid { display: grid; gap: 2rem; align-items: start; }
.neg-benefits { display: grid; gap: .8rem; margin: 1.5rem 0; }
.neg-benefits li { display: grid; gap: .1rem; padding-left: 1rem; border-left: 4px solid var(--coral); }
.neg-benefits li:nth-child(2) { border-color: var(--mint); }
.neg-benefits li:nth-child(3) { border-color: var(--mustard); }
.neg-benefits b { color: #fff; font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.neg-benefits span { font-size: .93rem; opacity: .85; }
.founder-box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 1.1rem 1.2rem; font-size: .95rem; }
.founder-box b { color: #fff; }

/* Únete */
.unete-grid { display: grid; gap: 2rem; align-items: center; }
.unete-grid > div > p { color: var(--muted); }
.credential { margin-top: 1.8rem; perspective: 900px; }
.cred-front {
  width: min(340px, 100%); aspect-ratio: 1.586; border-radius: 20px; padding: 1.3rem;
  background: linear-gradient(115deg, var(--navy) 0 62%, var(--coral) 62% 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lg); transform: rotate(-4deg); transition: transform .5s var(--ease-bounce);
}
.credential:hover .cred-front { transform: rotate(0) translateY(-6px); }
.cred-logo { font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: .4rem; }
.cred-logo i { font-style: normal; background: var(--coral); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.cred-logo small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.cred-name { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.cred-meta { font-size: .78rem; opacity: .8; letter-spacing: .05em; }

/* Footer */
.footer { background: #0D1C3B; color: #C9D2E6; padding: 3rem 0 1.5rem; }
.foot-grid { display: grid; gap: 1.5rem; }
.foot-grid p { font-size: .93rem; margin-top: .6rem; max-width: 360px; }
.footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer nav a { text-decoration: none; font-weight: 700; }
.footer nav a:hover { color: var(--mint); }
.footer .tech { font-size: .85rem; opacity: .75; }
.copy { margin-top: 2rem; font-size: .8rem; opacity: .6; }

/* Modales */
.modal { margin: auto; border: 0; padding: 0; border-radius: 28px; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow-lg); background: #fff; color: var(--ink); overflow: auto; }
.modal.small { width: min(420px, calc(100% - 24px)); }
.modal::backdrop { background: rgba(13, 28, 59, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: popIn .4s var(--ease-bounce); }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 1.6rem; line-height: 1; z-index: 2; box-shadow: var(--shadow); }
.ficha-hero { padding: 1.5rem 1.5rem 0; display: grid; place-items: center; }
.ficha-hero svg { width: 250px; height: 200px; }
.ficha-body { padding: 1rem 1.5rem 1.6rem; display: grid; gap: .8rem; }
.ficha-body .biz-cat { margin-bottom: -.4rem; }
.ficha-list { display: grid; gap: .5rem; }
.ficha-list li { display: grid; grid-template-columns: 30px 1fr; gap: .4rem; align-items: start; font-size: .95rem; }
.ficha-list li span:first-child { font-size: 1.1rem; }
.ficha-list .pending { color: var(--muted); font-style: italic; }
.ficha-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cat-list { display: grid; gap: .6rem; }
.cat-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; text-align: left; padding: .85rem 1rem; border-radius: 16px; background: var(--cream); font-weight: 800; color: var(--navy); transition: background .2s, transform .2s var(--ease-bounce); }
.cat-item:hover { background: var(--mint-l); transform: translateX(4px); }
.cat-item small { display: block; font-weight: 600; color: var(--muted); font-size: .82rem; }
.cat-empty { background: var(--cream); border-radius: 16px; padding: 1rem; font-size: .95rem; color: var(--muted); }
.gracias { text-align: center; padding: 2.2rem 1.6rem 1.8rem; display: grid; gap: .7rem; justify-items: center; }
.gracias-ic { font-size: 3rem; }
.demo-note { font-size: .82rem; color: var(--muted); background: var(--cream); border-radius: 12px; padding: .5rem .8rem; }

/* =============================================================
   7. Effects (SVG del pueblito)
   ============================================================= */
.cloud { animation: drift 40s linear infinite; }
.cloud.c2 { animation-duration: 55s; animation-delay: -20s; }
.cloud.c3 { animation-duration: 48s; animation-delay: -35s; }
@keyframes drift { from { transform: translateX(-700px); } to { transform: translateX(1500px); } }
.kite { animation: kite 6s ease-in-out infinite; transform-origin: 420px 140px; }
@keyframes kite { 0%,100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-8px); } }
.sun { animation: pulse 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.road-line { animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -52; } }
.wave { animation: wave 2.6s ease-in-out infinite; }
.wave.w2 { animation-delay: -1.2s; }
@keyframes wave { 50% { transform: translateX(6px); } }
.duck { animation: bob 2.4s ease-in-out infinite; }
.float-b, .balloons { animation: bob 4s ease-in-out infinite; }
.float-b.b2 { animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.flag { animation: flag 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 50%; }
@keyframes flag { 50% { transform: scaleX(.75); } }
.swing { animation: swing 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes swing { 0%,100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.ball { animation: ball 2.8s ease-in-out infinite; }
@keyframes ball { 50% { transform: translate(40px, -6px); } }
.pole { animation: pole 1.6s linear infinite; }
@keyframes pole { to { transform: translateY(14px); } }
.flash { animation: flash 3.5s infinite; }
@keyframes flash { 0%, 90%, 100% { fill: #E8B043; } 93% { fill: #fff; } }
.bell { animation: ring 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(14deg); } 86% { transform: rotate(-14deg); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .row2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan.featured { transform: translateY(-10px); }
  .foot-grid { grid-template-columns: 1.3fr 1fr; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-menu { position: static; display: flex; flex-direction: row; align-items: center; gap: .2rem; padding: 0; background: none; box-shadow: none; }
  .nav-menu a:not(.btn) { padding: .5rem .8rem; }
  .nav-menu .btn { margin: 0 0 0 .6rem; }
  .pitch-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .cuento-grid { grid-template-columns: .9fr 1.1fr; gap: 3rem; }
  .neg-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
  .unete-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

/* =============================================================
   9. Reduced motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .cloud, .road-line, .pole, .flash, .ball, .wheel { animation: none; }
}

/* =============================================================
   10. Impresión del cuento
   ============================================================= */
@media print {
  body > *:not(main), main > *:not(#cuentos), #cuentos > .container { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff; }
  .section { padding: 0; }
  #print-area h1 { font-size: 26pt; text-align: center; margin-bottom: 12pt; }
  #print-area .pp { page-break-inside: avoid; margin-bottom: 16pt; }
  #print-area .pp svg { width: 100%; height: 200px; margin-bottom: 8pt; }
  #print-area h2 { font-size: 16pt; margin-bottom: 4pt; }
  #print-area p { font-size: 13pt; line-height: 1.6; }
}


/* =============================================================
   11. Pueblito: animaciones extra
   ============================================================= */
.wheel { animation: spin 26s linear infinite; transform-box: fill-box; transform-origin: center; }
.cabins circle { transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }
.balloon-air { animation: bob 6s ease-in-out infinite; }

/* =============================================================
   12. Zona Peques — mosaicos
   ============================================================= */
.pq-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.pq-tile {
  position: relative; display: grid; justify-items: center; text-align: center; gap: .15rem; text-decoration: none;
  padding: 1rem .6rem 1.1rem; border-radius: 24px; background: #fff; box-shadow: var(--shadow);
  border-bottom: 6px solid var(--tc, var(--mint)); transition: transform .3s var(--ease-bounce), box-shadow .3s;
}
.pq-tile:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.pq-tile.is-on { outline: 3px solid var(--tc); outline-offset: 2px; }
.pq-tile b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.pq-tile small { font-size: .78rem; font-weight: 700; color: var(--muted); }
.pq-art { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--tb, var(--mint-l)); margin-bottom: .3rem; }
.pq-art svg { width: 70px; height: 70px; }
.pq-tile:hover .pq-art svg { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.c1 { --tc: #4FAE7E; --tb: #E3F4E8; } .c2 { --tc: #7FCBB8; --tb: #E3F4EF; } .c3 { --tc: #8E77CF; --tb: #EEE8FB; }
.c4 { --tc: #E8B043; --tb: #FFF6DA; } .c5 { --tc: #F2765E; --tb: #FFEEE6; } .c6 { --tc: #D2507A; --tb: #FDE8EE; }

/* =============================================================
   13. Zona Peques — página
   ============================================================= */
.pq-page { background: var(--cream); }
.pq-nav { display: flex; gap: .4rem; align-items: center; }
.pq-hero { padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; text-align: center; }
.pq-hero .lead { color: var(--muted); max-width: 620px; margin: .6rem auto 1.6rem; }
.pq-stage { padding-bottom: 4rem; scroll-margin-top: 80px; }
.pq-panel { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 2rem); margin-top: 1.2rem; scroll-margin-top: 84px; }
.pq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pq-head h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
.pq-tip { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.pq-back { font-weight: 800; color: var(--coral); text-decoration: none; white-space: nowrap; padding: .4rem 0; }
.pq-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pq-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pq-actions.center { justify-content: center; }
.pq-status { font-weight: 800; color: var(--navy); margin-bottom: .8rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.pq-bar .pq-status { margin: 0; }
.pq-status .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cream-2); display: inline-block; }
.pq-status .dot.on { background: var(--mint); }

/* Memorama */
.memo-board { display: grid; gap: clamp(.5rem, 1.5vw, 1rem); grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; }
.memo-board.lv-medio, .memo-board.lv-reto { grid-template-columns: repeat(4, 1fr); }
.mcard { position: relative; aspect-ratio: 1; perspective: 700px; border-radius: 20px; }
.mface { position: absolute; inset: 0; border-radius: 20px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s var(--ease-out); box-shadow: 0 4px 0 rgba(19,39,79,.12); }
.mback { background: var(--navy) radial-gradient(circle at 30% 30%, rgba(255,255,255,.12) 0 18%, transparent 19%) 0 0/36px 36px; }
.mback b { font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.6rem); color: var(--coral); background: #fff; width: 50%; aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; transform: rotate(-6deg); }
.mfront { transform: rotateY(180deg); border: 3px solid #fff; }
.mfront svg { width: 82%; height: 82%; }
.mcard.is-up .mback { transform: rotateY(-180deg); }
.mcard.is-up .mfront { transform: rotateY(0); }
.mcard.is-done .mfront { border-color: var(--mint); animation: pop .5s var(--ease-bounce); }
@keyframes pop { 50% { transform: scale(1.08); } }

/* Rompecabezas */
.pz-thumbs { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1rem; }
.pz-thumb { flex: none; width: 104px; height: 104px; border-radius: 18px; background-size: cover; position: relative; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); }
.pz-thumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: .7rem; font-weight: 800; background: rgba(255,255,255,.9); padding: .15rem; }
.pz-thumb.is-on { border-color: var(--coral); }
.pz-wrap { display: grid; gap: 1rem; justify-items: center; }
.pz-board { display: grid; gap: 4px; width: min(100%, 560px); aspect-ratio: 1; background: var(--navy); padding: 4px; border-radius: 18px; }
.pz-piece { width: 100%; height: 100%; border-radius: 6px; transition: transform .2s var(--ease-bounce), box-shadow .2s; }
.pz-piece.sel { transform: scale(.9); box-shadow: 0 0 0 4px var(--coral); z-index: 1; }
.pz-piece.ok { box-shadow: inset 0 0 0 2px rgba(127,203,184,.7); }
.pz-help { display: grid; justify-items: center; gap: .3rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.pz-preview { width: 120px; height: 120px; border-radius: 14px; background-size: cover; box-shadow: var(--shadow); }

/* Diferencias */
.df-grid { display: grid; gap: 1rem; }
.df-pic { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); cursor: crosshair; touch-action: manipulation; }
.df-pic svg { width: 100%; height: auto; }
.mk { fill: none; stroke-width: 6; }
.mk.hit { stroke: var(--coral); animation: pop .4s var(--ease-bounce); transform-box: fill-box; transform-origin: center; }
.mk.miss { stroke: rgba(19,39,79,.5); stroke-dasharray: 4 4; }
.mk.hint { stroke: var(--mustard); stroke-dasharray: 8 6; animation: pulse 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* Colorear */
.cl-pages { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1rem; }
.cl-thumb { flex: none; width: 96px; display: grid; gap: .2rem; justify-items: center; padding: .4rem; border-radius: 16px; background: var(--cream); border: 3px solid transparent; font-size: .74rem; font-weight: 800; color: var(--navy); }
.cl-thumb svg { width: 72px; height: 72px; background: #fff; border-radius: 10px; }
.cl-thumb.is-on { border-color: var(--coral); background: #fff; }
.cl-layout, .tr-layout, .av-layout { display: grid; gap: 1.2rem; align-items: start; }
.cl-board { background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 3px var(--cream-2); overflow: hidden; width: min(100%, 620px); justify-self: center; }
.cl-board svg { width: 100%; height: auto; touch-action: manipulation; }
.cl-board .r { cursor: pointer; transition: fill .15s; }
.cl-board .p, .cl-board .l { pointer-events: none; }
.cl-palette { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.cl-palette.small { grid-template-columns: repeat(5, 1fr); max-width: 320px; }
.swatch { aspect-ratio: 1; min-width: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), 0 2px 0 rgba(19,39,79,.15); transition: transform .2s var(--ease-bounce); }
.swatch.eraser { background: #fff linear-gradient(135deg, transparent 45%, var(--coral) 45% 55%, transparent 55%); box-shadow: inset 0 0 0 2px #E5DCCB; }
.swatch.is-on { transform: scale(1.15); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--navy); }
.cl-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* Trazos */
#tr-groups { margin-bottom: 1rem; }
.tr-box { position: relative; width: min(100%, 720px); justify-self: center; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 3px var(--cream-2); overflow: hidden; }
.tr-box canvas { display: block; width: 100%; }
#tr-draw { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.tr-name { font-family: var(--display); font-size: 1.3rem; color: var(--navy); margin-bottom: .8rem; }
.tr-name span { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 700; }

/* Personaje */
.av-stage-wrap { display: grid; justify-items: center; }
.av-stage { width: min(100%, 380px); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.av-stage svg { width: 100%; height: auto; display: block; }
.av-name { display: grid; gap: .35rem; font-weight: 800; color: var(--navy); font-size: .92rem; margin-bottom: 1rem; }
.av-name input { font: inherit; font-weight: 700; padding: .75rem 1rem; border-radius: 14px; border: 2px solid #E5DCCB; background: var(--cream); }
.av-name input:focus { outline: none; border-color: var(--mint); background: #fff; }
.av-row { margin-bottom: .9rem; }
.av-label { display: block; font-weight: 800; font-size: .85rem; color: var(--navy); margin-bottom: .4rem; }
.av-opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.av-opts .swatch { width: 40px; }
.av-opts .pill { padding: .45rem .85rem; font-size: .88rem; }

/* Festejo */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: translateX(40px) rotate(720deg); } }
#win .gracias-ic { font-size: 2.4rem; letter-spacing: .1em; }
.ios-steps { text-align: left; padding-left: 1.2rem; list-style: decimal; display: grid; gap: .4rem; color: var(--ink); }

.footer.small { padding: 2rem 0; }
.foot-mini { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }

/* Impresión de Zona Peques */
#pq-print { display: none; }
@media print {
  body.is-printing > *:not(#pq-print) { display: none !important; }
  body.is-printing #pq-print { display: block !important; }
  .pp-page h1 { font-family: var(--display); font-size: 20pt; text-align: center; margin-bottom: 10pt; color: #13274F; }
  .pp-page svg { width: 100%; max-height: 82vh; display: block; margin: 0 auto 10pt; }
  .pp-page .pp-trace { max-height: 42vh; }
  .pp-page .pp-row { max-height: 22vh; margin-bottom: 4pt; }
  .pp-name { font-size: 13pt; margin-bottom: 10pt; }
  .pp-center svg { max-width: 70%; }
}

/* =============================================================
   14. Responsive extra (todos los dispositivos)
   ============================================================= */
@media (min-width: 540px) {
  .pq-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .df-grid { grid-template-columns: 1fr 1fr; }
  .cl-palette { grid-template-columns: repeat(7, 44px); }
}
@media (min-width: 960px) {
  .pq-tiles { grid-template-columns: repeat(6, 1fr); }
  .pq-tiles.home { gap: 1rem; }
  .cl-layout, .tr-layout { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
  .av-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr); }
  .cl-palette { grid-template-columns: repeat(7, 1fr); }
  .pz-wrap { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 1600px) {
  body { font-size: 18px; }
  .dir-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (max-width: 539px) {
  .hide-sm { display: none; }
  .pq-nav .btn-sm { padding: .5rem .75rem; font-size: .85rem; }
  .pq-head { flex-direction: column-reverse; gap: .3rem; }
  .town-arrow { width: 40px; height: 40px; font-size: 1.6rem; }
}
@media (max-width: 380px) {
  .logo-text { font-size: 1.2rem; }
  .pq-nav .btn-sm { padding: .45rem .6rem; font-size: .8rem; }
}
@supports (padding: max(0px)) {
  .nav-inner { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
}

/* =============================================================
   15. Compartir
   ============================================================= */
.share-box h3 { margin-bottom: .2rem; }
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; width: 100%; margin: .6rem 0 .4rem; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .9rem .5rem; border-radius: 18px; background: var(--cream); font-weight: 800; color: var(--navy); text-decoration: none; font-size: .92rem; transition: transform .2s var(--ease-bounce), background .2s; }
.share-opt span { font-size: 1.6rem; }
.share-opt:hover { transform: translateY(-2px); background: var(--mint-l); }
.share-opt.wa { background: #E3F8EA; }
.share-opt.fb { background: #E7EEFB; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10000; background: var(--navy); color: #fff; font-weight: 800; padding: .7rem 1.2rem; border-radius: 99px; box-shadow: var(--shadow-lg); animation: popIn .3s var(--ease-bounce); transition: opacity .4s; }
.toast.out { opacity: 0; }
.win-name { display: grid; gap: .3rem; width: 100%; font-weight: 800; font-size: .9rem; color: var(--navy); text-align: left; }
.win-name span { font-weight: 600; color: var(--muted); }
.win-name input { font: inherit; font-weight: 700; padding: .7rem 1rem; border-radius: 14px; border: 2px solid #E5DCCB; background: var(--cream); }
.win-name input:focus { outline: none; border-color: var(--mint); background: #fff; }
