/* Pompimo · web — estilos (los genera scripts/build_site.py junto con las páginas) */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Medium.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #FFF6EC; --bg-2: #FDEBDD; --card: #FFFFFF; --ink: #3F3152; --soft: #7D6F8E;
  --purple: #7B5CC4; --purple-dark: #5B3FA3; --lav: #EDE4FF; --lav-2: #D9CBFA;
  --pink: #FF8FA8; --peach: #FFC59E; --mint: #8FD9B6; --sky: #9FD3F5; --sun: #FFD66B;
  --line: rgba(63,49,82,.10); --shadow: 0 10px 30px rgba(63,49,82,.10);
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1828; --bg-2: #261E33; --card: #2E2540; --ink: #F3ECFF; --soft: #B9AECB;
    --purple: #A889F2; --purple-dark: #7B5CC4; --lav: #3A2E52; --lav-2: #4A3B66;
    --line: rgba(255,255,255,.10); --shadow: 0 10px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #1E1828; --bg-2: #261E33; --card: #2E2540; --ink: #F3ECFF; --soft: #B9AECB;
  --purple: #A889F2; --purple-dark: #7B5CC4; --lav: #3A2E52; --lav-2: #4A3B66;
  --line: rgba(255,255,255,.10); --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Fredoka", "Segoe UI", Roboto, system-ui, sans-serif; font-weight: 400; line-height: 1.55; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3 { font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px; }

/* Botones con volumen, como los del juego */
.btn { display: inline-flex; align-items: center; gap: .55em; font: inherit; font-weight: 600; font-size: 1.08rem; text-decoration: none; border: 0; cursor: pointer; padding: .85em 1.5em; border-radius: 999px; color: #fff; background: var(--purple); box-shadow: 0 6px 0 var(--purple-dark), 0 12px 24px rgba(91,63,163,.25); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--purple-dark), 0 16px 28px rgba(91,63,163,.3); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--purple-dark), 0 6px 12px rgba(91,63,163,.2); }
.btn.light { background: var(--card); color: var(--purple); box-shadow: 0 6px 0 var(--lav-2), 0 12px 24px rgba(63,49,82,.10); }
.btn.small { font-size: .95rem; padding: .6em 1.15em; box-shadow: 0 4px 0 var(--purple-dark); }
.btn .play { width: 22px; height: 22px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.45rem; }
.brand img { width: 42px; height: 42px; border-radius: 13px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.nav-links a:hover { background: var(--lav); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; background: var(--lav); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; color: var(--soft); font-weight: 600; font-size: .85rem; padding: 5px 10px; border-radius: 999px; }
.lang a[aria-current] { background: var(--card); color: var(--purple); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--lav); color: var(--ink); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 10px 16px 18px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav .btn.small { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--lav) 0%, var(--bg) 100%); padding: 56px 0 120px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--purple); font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 18px; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(143,217,182,.35); }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 4.9rem); }
.hero h1 .accent { color: var(--purple); display: inline-block; position: relative; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--peach); opacity: .55; border-radius: 99px; z-index: -1; }
.hero .lead { font-size: 1.22rem; color: var(--soft); max-width: 33em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--soft); font-size: .95rem; }
.hero-meta span::before { content: "✓ "; color: var(--purple); font-weight: 700; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
.blob { position: absolute; inset: 4%; background: var(--peach); border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; animation: morph 12s ease-in-out infinite; opacity: .55; }
.hero-pomi { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; border: 10px solid var(--card); box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.hero-pomi img { width: 100%; height: 100%; object-fit: cover; }
.bubble { position: absolute; background: var(--card); border-radius: 20px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 600; font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.bubble img { width: 28px; height: 28px; }
.bubble.b1 { top: 6%; right: 0; animation: bob 6s ease-in-out infinite reverse; }
.bubble.b2 { bottom: 12%; left: -2%; animation: bob 7s ease-in-out infinite; }
.bubble.b3 { bottom: 0; right: 8%; animation: bob 5.5s ease-in-out infinite reverse; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .8; z-index: 1; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud.c1 { width: 140px; height: 42px; top: 70px; left: 4%; animation: drift 38s linear infinite; }
.cloud.c1::before { width: 62px; height: 62px; left: 20px; top: -30px; } .cloud.c1::after { width: 48px; height: 48px; left: 68px; top: -20px; }
.cloud.c2 { width: 110px; height: 34px; top: 220px; right: 6%; animation: drift 46s linear infinite reverse; }
.cloud.c2::before { width: 50px; height: 50px; left: 16px; top: -24px; } .cloud.c2::after { width: 38px; height: 38px; left: 54px; top: -16px; }
:root[data-theme="dark"] .cloud { opacity: .08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cloud { opacity: .08; } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 3; color: var(--bg); }
.wave svg { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-art { max-width: 380px; grid-row: 1; }
}

/* Franja de confianza */
.trust { padding: 10px 0 30px; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { background: var(--card); border-radius: 22px; padding: 16px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); font-weight: 500; }
.trust-item b { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--lav); color: var(--purple); font-size: 1.1rem; }
@media (max-width: 860px) { .trust-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .trust-row { grid-template-columns: 1fr; } }

/* Secciones */
.section { padding: 90px 0; }
.section.tint { background: var(--bg-2); }
.kicker { display: inline-block; font-weight: 600; color: var(--purple); background: var(--lav); padding: 6px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--soft); font-size: 1.15rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .section { padding: 64px 0; } }

/* Probador de accesorios */
.wardrobe { background: var(--card); border-radius: 36px; padding: 18px; box-shadow: var(--shadow); }
.wardrobe-stage { position: relative; aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: var(--lav); }
.wardrobe-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.wardrobe-stage img.on { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 16px 4px 4px; }
.chip { font: inherit; font-weight: 600; font-size: .95rem; border: 2px solid var(--lav-2); background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.care { background: var(--card); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.care .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 10px; }
.care .ico img { width: 32px; height: 32px; }
.care h3 { font-size: 1.1rem; margin-bottom: 4px; }
.care p { color: var(--soft); font-size: .95rem; margin: 0; }
.bg-peach { background: #FFE6D3; } .bg-sky { background: #DDF0FC; } .bg-lav { background: #ECE4FF; } .bg-pink { background: #FFE1E8; } .bg-mint { background: #DDF5EA; } .bg-sun { background: #FFF1C9; }
@media (max-width: 460px) { .care-grid { grid-template-columns: 1fr; } }

/* Móviles con capturas */
.phone { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1280 / 2772; border-radius: 40px; padding: 10px; background: #2B2238; box-shadow: 0 24px 50px rgba(43,34,56,.30); margin-inline: auto; }
.phone img, .phone .screen { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 64px; height: 16px; border-radius: 99px; background: #2B2238; z-index: 2; }
.screen { position: relative; overflow: hidden; background: var(--lav); }
.screen img { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.screen img.on { opacity: 1; }

/* Casa y jardín */
.home-stage { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.toggle { display: inline-flex; background: var(--card); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); margin: 6px 0 22px; }
.toggle button { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--soft); padding: 10px 22px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; margin-top: 1px; }
.duo { display: flex; gap: 22px; justify-content: center; }
.duo .phone { max-width: 250px; flex: 1 1 0; min-width: 0; }
.duo .phone:nth-child(2) { margin-top: 60px; }
@media (max-width: 860px) { .home-stage { grid-template-columns: 1fr; } .duo .phone { max-width: 46vw; } }

/* Minijuegos */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.game { border-radius: var(--radius); padding: 26px 22px 0; overflow: hidden; display: flex; flex-direction: column; text-align: center; box-shadow: var(--shadow); }
.game h3 { font-size: 1.5rem; color: #3F3152; }
.game p { color: #5E5070; margin-bottom: 18px; }
.game .phone { max-width: 230px; margin-top: auto; border-radius: 36px 36px 0 0; padding-bottom: 0; aspect-ratio: 1280 / 1900; overflow: hidden; }
.game .phone img { border-radius: 27px 27px 0 0; object-position: top; }
.game.g1 { background: #DDF0FC; } .game.g2 { background: #FFE1E8; } .game.g3 { background: #FFF1C9; }
.game .tag { display: inline-block; align-self: center; background: rgba(255,255,255,.75); color: #5B3FA3; font-weight: 600; font-size: .85rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 860px) { .games { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* Bento de extras */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); grid-column: span 2; position: relative; overflow: hidden; }
.tile.wide { grid-column: span 3; }
.tile .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.tile .ico img { width: 30px; height: 30px; }
.tile p { color: var(--soft); margin: 0; }
.tile.with-shot { display: grid; grid-template-columns: 1fr 140px; gap: 16px; align-items: end; padding-bottom: 0; }
.tile.with-shot .txt { padding-bottom: 24px; }
.tile.with-shot img { border-radius: 20px 20px 0 0; border: 6px solid #2B2238; border-bottom: 0; aspect-ratio: 1280/1500; object-fit: cover; object-position: top; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile.wide { grid-column: span 1; } .tile.with-shot { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.with-shot { grid-column: span 1; grid-template-columns: 1fr 110px; } }

/* Preguntas */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem; padding: 20px 36px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--lav); color: var(--purple); display: grid; place-items: center; font-size: 1.3rem; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--soft); padding-bottom: 18px; margin: 0; }

/* Llamada final */
.cta { padding: 40px 0 100px; }
.cta-box { background: var(--purple); color: #fff; border-radius: 40px; padding: 56px 40px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-box h2 { color: #fff; }
.cta-box p { opacity: .9; font-size: 1.15rem; margin: 0; }
.cta-box .btn.light { color: #5B3FA3; background: #fff; box-shadow: 0 6px 0 #D9CBFA, 0 12px 24px rgba(0,0,0,.15); }
.cta-box .paws { position: absolute; right: -20px; top: -30px; font-size: 9rem; opacity: .1; transform: rotate(-18deg); pointer-events: none; }
.cta-box img.cta-pomi { flex: none; width: 150px; height: 150px; aspect-ratio: 1; border-radius: 50%; border: 6px solid rgba(255,255,255,.35); object-fit: cover; }
.cta-inner { display: flex; gap: 26px; align-items: center; }
.cta-inner picture { flex: none; }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; text-align: center; padding: 40px 22px; } .cta-inner { flex-direction: column; } }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 34px; color: var(--soft); font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--purple); }
.footer-note { margin-top: 18px; font-size: .88rem; }

/* Páginas de texto (privacidad, borrado, prensa) */
.page-hero { background: linear-gradient(180deg, var(--lav), var(--bg)); padding: 56px 0 36px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero p { color: var(--soft); margin: 0; }
.doc { width: min(800px, 100% - 32px); margin: 0 auto; padding: 10px 0 70px; }
.doc .card { background: var(--card); border-radius: 24px; padding: 24px 26px; margin-bottom: 16px; box-shadow: var(--shadow); }
.doc .card h2 { font-size: 1.3rem; color: var(--purple); }
.doc ul, .doc ol { padding-left: 1.25em; margin: 8px 0; } .doc li { margin: 6px 0; }
.doc .card > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.doc th, .doc td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--purple); }
@media (max-width: 520px) { .doc .card { padding: 20px 18px; } }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.press-grid a { display: block; background: var(--lav); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.press-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.press-grid span { display: block; padding: 8px 12px; }
.err { text-align: center; padding: 70px 0 100px; }
.err img { width: 200px; height: 200px; border-radius: 50%; margin: 0 auto 24px; object-fit: cover; border: 8px solid var(--card); box-shadow: var(--shadow); }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes morph { 0%, 100% { border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; } 50% { border-radius: 56% 44% 40% 60% / 58% 52% 48% 42%; } }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(60px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
