/* cuantocobro.valladares.org — rojo de la app (#D9202A) sobre blanco puro o negro puro.
   Tema: sigue al sistema; el botón del encabezado fija data-theme="light|dark". */
:root {
  --red: #d9202a;
  --red-600: #b9161f;
  --red-50: #fff1f0;
  --red-100: #ffe0dd;
  --grad: linear-gradient(135deg, #f25555 0%, #d9202a 55%, #a5121a 100%);
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --bg-tint: #fff6f5;
  --ink: #18181b;
  --ink-2: #46464f;
  --ink-3: #74747e;
  --line: #ececef;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 10px 30px rgba(20, 20, 40, .07);
  --shadow-lg: 0 30px 80px -20px rgba(200, 20, 30, .32);
  --radius: 18px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
          "Noto Sans Devanagari", "Nirmala UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #ff4d55;
    --red-600: #ff6f75;
    --red-50: #1c0b0d;
    --red-100: #33131a;
    --bg: #000000;
    --bg-alt: #0a0a0b;
    --bg-tint: #0d0809;
    --ink: #f5f5f6;
    --ink-2: #c4c4c9;
    --ink-3: #8d8d95;
    --line: #232326;
    --card: #111113;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .55);
    --shadow-lg: 0 30px 80px -20px rgba(255, 60, 70, .28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --red: #ff4d55;
    --red-600: #ff6f75;
    --red-50: #1c0b0d;
    --red-100: #33131a;
    --bg: #000000;
    --bg-alt: #0a0a0b;
    --bg-tint: #0d0809;
    --ink: #f5f5f6;
    --ink-2: #c4c4c9;
    --ink-3: #8d8d95;
    --line: #232326;
    --card: #111113;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .55);
    --shadow-lg: 0 30px 80px -20px rgba(255, 60, 70, .28);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
.h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted, .fine { color: var(--ink-3); font-size: .88rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 720px; }
.center .lead, .sec-head.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { color: var(--red); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6em; display: flex; align-items: center; gap: 6px; }
.sec-head.center .eyebrow { justify-content: center; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-xs { width: 12px; height: 12px; opacity: .55; }
.flip { transform: scaleX(-1); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; text-decoration: none !important; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px -8px rgba(217, 32, 42, .6); }
.btn-primary:hover { background: var(--red-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Botones de tienda */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.stores-center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 184px; padding: 9px 20px 9px 15px; border-radius: 14px; background: #111; color: #fff; border: 1px solid #333; transition: transform .15s, box-shadow .2s; text-decoration: none !important; }
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5); }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .7rem; opacity: .85; }
.store b { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.store-ic { width: 28px; height: 28px; }
.store-apple .store-ic { color: #fff; }
.stores-sm .store { min-width: 0; padding: 7px 14px 7px 11px; border-radius: 11px; }
.stores-sm .store b { font-size: 1rem; }
.stores-sm .store-ic { width: 22px; height: 22px; }
.store { border-color: color-mix(in srgb, var(--ink) 18%, #111); }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none !important; }
.brand img { border-radius: 9px; }
.brand b { color: var(--red); font-weight: 800; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav > a:not(.btn):hover, .nav > a[aria-current] { color: var(--red); background: var(--red-50); text-decoration: none; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; }
.nav-burger { display: none; margin-left: auto; padding: 8px; cursor: pointer; color: var(--ink); }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--red-50); color: var(--red); }
.lang summary .ic:first-child { width: 18px; height: 18px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 160px; z-index: 60; }
.lang li a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 500; }
.lang li a:hover { background: var(--red-50); text-decoration: none; }
.lang li a[aria-current] { color: var(--red); font-weight: 700; }

@media (max-width: 920px) {
  .nav-burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav > a:not(.btn) { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .lang ul { position: static; box-shadow: none; margin-top: 4px; }
}

/* Aviso de idioma */
.lang-hint { background: #202023; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .93rem; }
.lang-hint-inner { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.lang-hint-inner span { flex: 1; }
.lang-hint-x { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; opacity: .7; }
.lang-hint-x .ic { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; padding: 40px 0 30px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 900px; background: radial-gradient(closest-side, rgba(242, 85, 85, .22), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero-copy .lead { font-size: 1.15rem; }
.hero-copy .lead strong { color: var(--ink); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: .93rem; font-weight: 600; }
.chips li { display: inline-flex; align-items: center; gap: 6px; }
.chips .ic { color: var(--red); }
.hero-visual { position: relative; height: 600px; }
.hero-visual .glow { position: absolute; inset: 12% 8%; background: var(--grad); border-radius: 50%; filter: blur(70px); opacity: .35; }
.device { position: absolute; width: 270px; border-radius: 40px; padding: 10px; background: #18181b; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2d2d31; }
.device img { border-radius: 31px; width: 100%; aspect-ratio: 540 / 1200; object-fit: cover; }
.device-front { left: 8%; top: 20px; z-index: 2; transform: rotate(-4deg); }
.device-back { right: 2%; top: 70px; width: 245px; transform: rotate(6deg); opacity: .96; }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: .9rem; animation: bob 6s ease-in-out infinite; }
.float span { display: flex; flex-direction: column; line-height: 1.2; }
.float b { font-size: 1.05rem; }
.float small { color: var(--ink-3); font-size: .78rem; }
.float > .ic { color: var(--red); background: var(--red-50); padding: 7px; width: 36px; height: 36px; border-radius: 10px; }
.float .ic-ok { color: #16a34a; background: none; padding: 0; width: 22px; height: 22px; }
.float-a { left: -4%; bottom: 120px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats { list-style: none; margin: 40px 0 0; padding: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stats li { text-align: center; display: flex; flex-direction: column; }
.stats b { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--red); letter-spacing: -.03em; line-height: 1.1; }
.stats span { color: var(--ink-2); font-size: .9rem; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 480px; max-width: 460px; margin: 0 auto; width: 100%; }
  .device { width: 215px; }
  .device-back { width: 195px; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 24px; }
  .hero-visual { height: 420px; }
  .device { width: 190px; border-radius: 32px; padding: 8px; }
  .device img { border-radius: 25px; }
  .device-back { width: 170px; }
  .float-a { left: 0; bottom: 70px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:last-child { grid-column: span 2; }
  .store { min-width: 0; flex: 1 1 150px; }
}

/* Secciones */
.sec { padding: 84px 0; }
.sec-tight { padding: 40px 0 70px; }
.sec-alt { background: var(--bg-alt); }
.sec-tint { background: var(--bg-tint); }
.sec-head { margin-bottom: 40px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
@media (max-width: 640px) { .sec { padding: 60px 0; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Calculadora */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.calc { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field input, .field select { font: 600 1.1rem/1.2 var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-out { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.calc-out > div { padding: 14px; border-radius: 14px; background: var(--red-50); display: flex; flex-direction: column; min-width: 0; }
.calc-out small { color: var(--ink-3); font-weight: 600; font-size: .8rem; }
.calc-out b { font-size: 1.15rem; overflow-wrap: anywhere; }
.calc-out .calc-main { background: var(--grad); color: #fff; }
.calc-out .calc-main small { color: rgba(255, 255, 255, .85); }
.calc-out .calc-main b { font-size: 1.55rem; }
@media (max-width: 820px) { .calc-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 460px) { .calc-out { grid-template-columns: 1fr 1fr; } .calc-out .calc-main { grid-column: span 2; } .calc { padding: 20px; } }

/* Ventajas */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature, .platform { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red-100); }
.feature p, .platform p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.feature-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--red-50); color: var(--red); margin-bottom: 14px; }
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Carrusel de capturas */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.shot { margin: 0; flex: 0 0 250px; scroll-snap-align: center; }
.shot img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 540 / 960; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.rail-btn:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 640px) { .rail-nav { display: none; } .shot { flex-basis: 70vw; } }

/* Buscador de oficios */
.search { display: flex; align-items: center; gap: 10px; padding: 4px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; max-width: 560px; margin-bottom: 32px; box-shadow: var(--shadow); }
.search:focus-within { border-color: var(--red); }
.search .ic { color: var(--ink-3); }
.search input { flex: 1; border: 0; background: none; font: 500 1.02rem var(--font); color: var(--ink); padding: 12px 0; outline: none; min-width: 0; }
.cat { margin-bottom: 30px; }
.cat-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.1rem; }
.cat-h .ic { color: var(--red); }
.cat-h small { font-weight: 500; color: var(--ink-3); font-size: .9rem; }
.trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.trade-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color .2s, transform .15s, box-shadow .2s; text-decoration: none !important; }
.trade-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.trade-name { font-weight: 700; }
.trade-sub { color: var(--ink-3); font-size: .88rem; }
.trade-n { margin-top: 6px; color: var(--red); font-weight: 700; font-size: .86rem; display: flex; align-items: center; gap: 4px; }
.finder-empty { color: var(--ink-2); }

/* Todo el mundo (bloque oscuro) */
.sec-dark { background: #050505; color: #f6eceb; background-image: radial-gradient(ellipse at 80% 0%, rgba(217, 32, 42, .45), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(242, 85, 85, .2), transparent 50%); }
.sec-dark .lead { color: #d7c6c4; }
.sec-dark .eyebrow { color: #ff8a8e; }
.world { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.world-card { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.world-card h3 { display: flex; align-items: center; gap: 10px; }
.world-card h3 .ic { color: #ff8a8e; }
.world-card p { color: #d7c6c4; margin: 0; }
.flags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flags li { font-size: .85rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.langs-big { font-size: 1.15rem; font-weight: 700; color: #fff !important; margin-bottom: 10px !important; }
@media (max-width: 920px) { .world { grid-template-columns: 1fr; } }

/* Precio */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 22px; }
.plan { position: relative; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; }
.plan-pro { border: 2px solid var(--red); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 32px; background: var(--grad); color: #fff; font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.plan h3 { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; }
.plan h3 .ic { color: var(--red); }
.price { margin: 4px 0 18px; display: flex; flex-direction: column; }
.price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price small { color: var(--ink-3); font-size: .82rem; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.plan li .ic { color: var(--red); margin-top: 4px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 920px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .platforms { grid-template-columns: 1fr; } }

/* Preguntas */
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq-chev { color: var(--red); transition: transform .2s; }
.faq details[open] .faq-chev { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* Llamado final */
.cta { background: var(--grad); color: #fff; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner img { border-radius: 22px; margin-bottom: 18px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); }
.cta .lead { color: rgba(255, 255, 255, .9); }
.cta .fine { color: rgba(255, 255, 255, .75); }
.stores-light .store { background: #fff; color: #111; border-color: #fff; }
.stores-light .store-apple .store-ic { color: #111; }

/* Páginas de plantillas */
.page-head { padding: 34px 0 20px; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); }
.rate-bar { position: sticky; top: 66px; z-index: 40; background: color-mix(in srgb, var(--bg-alt) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rate-bar-inner { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 10px; padding-bottom: 10px; }
.field-inline { flex-direction: row; align-items: center; gap: 10px; }
.field-inline input { width: 130px; padding: 8px 12px; font-size: 1rem; }
.field-inline select { width: auto; padding: 8px 12px; font-size: 1rem; }
.tpl-list { display: grid; gap: 18px; margin-top: 10px; }
.tpl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 140px; }
.tpl-head { display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.tpl-head h2 { font-size: 1.25rem; margin-bottom: 4px; }
.tpl-head p { color: var(--ink-2); margin: 0; }
.tpl-total { text-align: right; display: flex; flex-direction: column; flex: none; }
.tpl-total small { color: var(--ink-3); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.tpl-total b { font-size: 1.5rem; color: var(--red); letter-spacing: -.02em; white-space: nowrap; }
.tpl-total span { color: var(--ink-3); font-size: .85rem; }
.tpl-body { padding: 8px 24px 18px; display: grid; gap: 6px; }
.lines { width: 100%; border-collapse: collapse; }
.lines caption { text-align: left; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red); padding: 12px 0 4px; }
.lines th, .lines td { padding: 9px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.lines tr:last-child th, .lines tr:last-child td { border-bottom: 0; }
.lines th { text-align: left; font-weight: 600; }
.lines th span { display: block; }
.lines th small { display: block; color: var(--ink-3); font-weight: 400; font-size: .86rem; }
.lines .num { text-align: right; white-space: nowrap; padding-left: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lines .money { color: var(--ink); font-weight: 600; min-width: 90px; }
.all-trades { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
@media (max-width: 600px) {
  .tpl-head { flex-direction: column; gap: 12px; padding: 18px; }
  .tpl-total { text-align: left; }
  .tpl-body { padding: 4px 18px 14px; }
  .field-inline input { width: 100px; }
  .rate-bar-inner { gap: 8px 14px; }
  .field-inline > span { font-size: .8rem; }
}

/* Pie */
.foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 30px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-grid a:not(.brand):not(.store) { color: var(--ink-2); }
.foot-brand p { color: var(--ink-2); margin: 6px 0 0; }
.foot-brand .stores { margin: 12px 0 0; }
.foot-h { font-weight: 700; margin: 0 0 4px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-langs a { color: var(--ink-2); font-weight: 600; }
.foot-langs a[aria-current] { color: var(--red); }
.foot-legal { margin-top: 18px; color: var(--ink-3); font-size: .84rem; }
.foot-legal p { margin: 0 0 4px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }

/* 404 */
.notfound { min-height: 60vh; text-align: center; }
.big404 { font-size: 6rem; font-weight: 800; line-height: 1; margin: 0 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .stores { gap: 10px; }

/* Aviso de cookies (mismas reglas que valladares.org, en rojo) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 18px 20px; background: var(--card); color: var(--ink); border: 1.5px solid var(--red); border-radius: 18px; box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .35); font-size: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-text p { margin: 0; color: var(--ink-2); }
.cookie-title { font-weight: 700; color: var(--ink) !important; margin-bottom: 2px !important; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-btn { font: 700 .92rem var(--font); padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--red); background: transparent; color: var(--red); }
.cookie-btn:hover { background: var(--red); color: #fff; }
@media (max-width: 620px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-actions .cookie-btn { flex: 1; } }

/* ── Banderas, tema y selector ─────────────────────────────── */
.flag { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); flex: none; }
.flag svg { width: 100%; height: 100%; display: block; }
.lang summary .flag { width: 22px; height: 15px; }
.lang li a { display: flex; align-items: center; gap: 10px; }
.foot-langs a { display: inline-flex; align-items: center; gap: 8px; }
.lang-hint .flag { margin-right: -4px; }
.theme-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { background: var(--red-50); color: var(--red); }
.theme-btn .ic { width: 20px; height: 20px; }
.theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: none; }
  :root:not([data-theme="light"]) .theme-moon { display: block; }
}
.theme-label { display: none; }
@media (max-width: 920px) { .theme-btn { width: auto; display: flex; align-items: center; gap: 10px; padding: 12px; font: 600 .95rem var(--font); } .theme-label { display: inline; } }

/* ── Monedas que suben por el hero (como las notas de Songika) ── */
.coins { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.coin { position: absolute; bottom: -60px; display: grid; place-items: center; width: var(--s, 38px); height: var(--s, 38px); border-radius: 50%;
  font: 800 calc(var(--s, 38px) * .38)/1 var(--font); color: #fff; background: var(--grad); opacity: 0;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 8px 20px -8px rgba(217, 32, 42, .6);
  animation: rise var(--d, 14s) linear var(--delay, 0s) infinite; }
.coin.alt { background: linear-gradient(135deg, #ffd56b, #f5a524); color: #7a4a00; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 8px 20px -8px rgba(245, 165, 36, .6); }
@keyframes rise {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: var(--o, .55); }
  85% { opacity: var(--o, .55); }
  100% { transform: translateY(-115vh) rotate(var(--r, 200deg)); opacity: 0; }
}
.hero-grid, .hero .wrap { position: relative; z-index: 1; }

/* ── Cotización que se arma sola ─────────────────────────────── */
.quote-demo { position: absolute; z-index: 3; right: -2%; bottom: 10px; width: 270px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); font-size: .84rem; animation: bob 7s ease-in-out infinite; animation-delay: -2s; }
.qd-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 4px; color: var(--ink-3); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.qd-head span { display: inline-flex; align-items: center; gap: 5px; }
.qd-ok { color: #16a34a; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s; }
.quote-demo.done .qd-ok { opacity: 1; transform: none; }
.qd-client { font-weight: 800; font-size: .98rem; margin: 0 0 8px; color: var(--ink); }
.quote-demo ul { list-style: none; margin: 0; padding: 0; }
.quote-demo li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); opacity: 0; transform: translateX(14px); transition: opacity .35s, transform .35s; }
.quote-demo li.on { opacity: 1; transform: none; }
.quote-demo li span { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-demo li small { grid-row: 2; color: var(--ink-3); }
.quote-demo li b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.qd-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; font-weight: 700; }
.qd-total b { font-size: 1.3rem; color: var(--red); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .quote-demo { width: 220px; right: 0; bottom: 0; padding: 12px 14px; font-size: .78rem; } }

/* ── Cinta de oficios ────────────────────────────────────────── */
.marquee { margin-top: 34px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; }
.marquee li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.marquee li .ic { color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Aparición al desplazar (escalonada) ─────────────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Brillo que cruza los botones principales ────────────────── */
.btn-primary, .store { position: relative; overflow: hidden; }
.btn-primary::after, .store::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 5.5s ease-in-out infinite; pointer-events: none; }
.store::after { animation-delay: 1.2s; }
.stores .store + .store::after { animation-delay: 2s; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.cta .cta-inner img { animation: glowPulse 3.2s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); transform: translateY(0); } 50% { box-shadow: 0 22px 60px -10px rgba(255, 255, 255, .35); transform: translateY(-4px); } }
.device { transition: transform .25s ease-out; }

/* ── Barra de descarga fija (móvil) ──────────────────────────── */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; padding: 10px 12px; border-radius: 18px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .dock.show { transform: none; }
  .dock img { border-radius: 10px; }
  .dock-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .dock-txt small { color: var(--ink-3); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ── Firma del estudio (pie) ─────────────────────────────────── */
.foot { position: relative; }
.foot-band { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #22d3ee, #6366f1 35%, #a855f7 55%, #f25555 80%, #d9202a); background-size: 200% 100%; animation: band 8s linear infinite; }
@keyframes band { to { background-position: -200% 0; } }
.studio-sign { margin-top: 44px; padding: 34px 20px 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.studio-ante { margin: 0 0 14px; color: var(--ink-3); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.studio { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none !important; padding: 10px 20px 10px 10px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); transition: transform .2s, box-shadow .2s, border-color .2s; }
.studio:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(99, 102, 241, .55); border-color: #6366f1; }
.studio-logo { border-radius: 14px; flex: none; }
.studio-v { stroke-dasharray: 560; stroke-dashoffset: 560; }
.studio-sign.in .studio-v, .no-js .studio-v { animation: draw 1.4s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.studio-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.studio-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.studio-name span { background: linear-gradient(120deg, #22d3ee, #6366f1 50%, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-txt small { color: var(--ink-3); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.studio-about { max-width: 640px; margin: 16px auto 6px; color: var(--ink-2); font-size: .92rem; }
.studio-legal { margin: 0; color: var(--ink-3); font-size: .8rem; }
.foot-legal { text-align: center; }
.foot-langs { justify-content: center; }

/* ── Selector de idioma de la raíz ───────────────────────────── */
.root-pick { min-height: 70vh; display: grid; place-items: center; }
.root-langs { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.root-langs a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .coins { display: none; }
  .quote-demo li { opacity: 1; transform: none; }
  .studio-v { stroke-dashoffset: 0; }
}
