/* =============================================================
   HojaClara · styles.css
   1. Tokens · 2. Reset · 3. Utilities · 4. Typography
   5. Components · 6. Sections · 7. Pages · 8. Responsive · 9. Motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --green: #0e9f6e;
  --green-d: #047857;
  --green-l: #ecfdf5;
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --blue-l: #eff6ff;
  --navy: #0f2a4a;
  --amber: #b45309;
  --amber-l: #fef3c7;
  --red: #dc2626;
  --red-l: #fee2e2;
  --radius: 14px;
  --radius-s: 10px;
  --shadow-s: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 42, 74, .25);
  --shadow-l: 0 30px 60px -20px rgba(15, 42, 74, .35);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", var(--sans);
  --gutter: 16px;
  --max: 1200px;
  --header-h: 60px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: .75rem; }
[hidden] { display: none !important; }

/* 4. Typography ------------------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green-d); }
.h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
.h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; }
.h3 { font-size: 1.15rem; font-weight: 700; }
.lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--ink-2); }
.section { padding-block: clamp(40px, 7vw, 80px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-head p { color: var(--muted); max-width: 56ch; }
.prose p + p { margin-top: .9rem; }
.prose { color: var(--ink-2); }

/* 5. Components ------------------------------------------------ */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.2rem; border-radius: 12px; font-weight: 650; font-size: .98rem;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-free { background: var(--green); color: #fff; box-shadow: 0 8px 20px -10px rgba(14, 159, 110, .8); }
.btn-free:hover { background: var(--green-d); }
.btn-pro { background: linear-gradient(135deg, var(--blue) 0%, #3b5bdb 100%); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 78, 216, .9); }
.btn-pro:hover { box-shadow: 0 14px 28px -10px rgba(29, 78, 216, 1); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 1.05rem; padding-inline: 1.5rem; }
.btn small { font-weight: 500; opacity: .85; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge .icon { width: 13px; height: 13px; }
.badge-free { background: var(--green-l); color: var(--green-d); }
.badge-pro { background: var(--blue-l); color: var(--blue); }
.badge-fmt { background: #f1f5f9; color: var(--ink-2); font-weight: 600; }
.badge-cat { background: transparent; color: var(--muted); padding-inline: 0; font-weight: 600; }
.badge-save { background: var(--amber-l); color: var(--amber); }

/* Stars */
.stars { --pct: 100%; position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; color: #e2e8f0; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; inset: 0; width: var(--pct); overflow: hidden; color: #f59e0b; }
.rating { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--muted); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.tpl-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); height: 100%; }
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tpl-thumb { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eef4ff, #ecfdf5); overflow: hidden; border-bottom: 1px solid var(--line); }
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tpl-thumb .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: .35rem; }
.tpl-body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.tpl-body h3 { font-size: 1.05rem; font-weight: 700; }
.tpl-body h3 a::after { content: ""; position: absolute; inset: 0; }
.tpl-card { position: relative; }
.tpl-body p { font-size: .9rem; color: var(--muted); }
.tpl-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.tpl-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .9rem; }
.tpl-foot .free { color: var(--green-d); font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.tpl-foot .pro { color: var(--blue); font-weight: 700; }
.pack-card { padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem; position: relative; }
.pack-card.is-best { border: 2px solid var(--blue-2); box-shadow: var(--shadow); }
.pack-card .price { font-family: var(--display); font-size: 1.9rem; font-weight: 800; }
.pack-card .price s { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: .3rem; }
.pack-card ul { font-size: .9rem; color: var(--ink-2); padding-left: 1.1rem; }
.pack-card .btn { margin-top: auto; }
.ribbon { position: absolute; top: -12px; right: 16px; background: var(--blue-2); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }

/* Ad slots (placeholders — sin anuncios reales) */
.ad-slot {
  display: grid; place-items: center; text-align: center; margin-inline: auto;
  background: repeating-linear-gradient(45deg, #f8fafc 0 12px, #f1f5f9 12px 24px);
  border: 1px dashed var(--line-2); border-radius: 10px; color: #94a3b8;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .5rem;
}
.ad-slot span { display: block; }
.ad-slot small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; margin-top: .15rem; }
.ad-leader { width: 100%; max-width: 728px; min-height: 90px; }
.ad-mobile { width: 100%; max-width: 320px; min-height: 50px; }
.ad-sky { width: 300px; max-width: 100%; min-height: 600px; }
.ad-incontent { width: 100%; min-height: 90px; }
.ad-rect { width: 100%; max-width: 336px; min-height: 280px; }
.ad-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter); }
.ad-bar .ad-leader { display: none; }
.ad-label { display: block; font-size: .65rem; color: #94a3b8; text-align: center; margin-bottom: 4px; letter-spacing: .05em; }

/* Affiliate blocks (placeholders) */
.aff { border: 1px solid #c7e9da; background: linear-gradient(180deg, #f3fbf7, #fff); border-radius: var(--radius); padding: 1.1rem; }
.aff-tag { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-d); background: #d1fae5; padding: .15rem .45rem; border-radius: 6px; }
.aff h3 { margin: .55rem 0 .3rem; font-size: 1.05rem; }
.aff > p { font-size: .9rem; color: var(--ink-2); }
.aff ul { margin-top: .8rem; display: grid; gap: .5rem; }
.aff li a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; font-weight: 600; transition: border-color .2s; }
.aff li a:hover { border-color: var(--green); }
.aff li small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.aff li .icon { color: var(--green); }

/* Forms */
.field { display: grid; gap: .3rem; }
.field label, .field .label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.input, .select {
  width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.input[readonly] { background: #f8fafc; color: var(--muted); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.check input { margin-top: .25rem; accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.check a { text-decoration: underline; }
.form-error { color: var(--red); font-size: .84rem; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 220px; }

/* Choice (radio cards) */
.choice { display: grid; gap: .6rem; }
.choice label { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.choice label:has(input:checked) { border-color: var(--blue-2); background: var(--blue-l); box-shadow: 0 0 0 1px var(--blue-2) inset; }
.choice input { accent-color: var(--blue-2); width: 18px; height: 18px; flex: none; }
.choice .c-main { flex: 1; min-width: 0; }
.choice .c-main strong { display: block; font-size: .95rem; }
.choice .c-main small { color: var(--muted); font-size: .8rem; }
.choice .c-price { font-weight: 800; font-family: var(--display); white-space: nowrap; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: var(--gutter); }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-l); padding: 1.5rem; animation: pop .3s var(--ease-out); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; font-weight: 700; color: var(--ink-2); }
.modal-close:hover:not([disabled]) { background: var(--line); }
.modal-close[disabled] { cursor: wait; }
.modal h2 { font-size: 1.35rem; padding-right: 2.2rem; }
.modal .fmt-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.modal .fmt-pick label { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.modal .fmt-pick label:has(input:checked) { border-color: var(--green); background: var(--green-l); }
.modal .fmt-pick input { accent-color: var(--green); }
.countdown { display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 600; color: var(--ink-2); margin-top: 1rem; }
.countdown b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-l); color: var(--green-d); font-family: var(--display); }
.ad-modal .modal-card { max-width: 400px; text-align: center; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green-l); color: var(--green); margin: 0 auto .8rem; }
.success-icon .icon { width: 28px; height: 28px; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 1100; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* Cookie bar */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l); padding: 1rem; display: grid; gap: .7rem; font-size: .86rem; max-width: 560px; }
.cookie .row { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie .btn { min-height: 40px; padding: .5rem 1rem; font-size: .88rem; }
.cookie a { text-decoration: underline; }

/* Demo notice */
.demo-note { display: flex; gap: .6rem; align-items: flex-start; background: var(--amber-l); color: #78350f; border: 1px solid #fcd34d; border-radius: 12px; padding: .75rem .9rem; font-size: .86rem; }
.demo-note .icon { margin-top: .15rem; }

/* 6. Sections -------------------------------------------------- */
/* Header */
.site-header { position: sticky; top: 0; z-index: 100; }
.header-main { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: .75rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; flex: none; }
.logo-mark { width: 30px; height: 30px; }
.logo b { color: var(--green); font-weight: 800; }
.nav { display: none; }
.nav a { padding: .45rem .7rem; border-radius: 8px; font-size: .92rem; font-weight: 550; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { background: #f1f5f9; color: var(--ink); }
.search { position: relative; flex: 1; min-width: 0; }
.search .input { min-height: 40px; padding-left: 2.2rem; border-radius: 999px; background: #f1f5f9; border-color: transparent; font-size: .92rem; }
.search .input:focus { background: #fff; }
.search > .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .35rem; z-index: 120; max-height: 60vh; overflow: auto; }
.suggest a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .65rem; border-radius: 8px; font-size: .9rem; }
.suggest a:hover, .suggest a.is-active { background: #f1f5f9; }
.suggest .empty { padding: .6rem; color: var(--muted); font-size: .88rem; }
.header-cta { display: none; }
.menu-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; flex: none; }
.menu-btn:hover { background: #f1f5f9; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); padding: .6rem var(--gutter) 1rem; display: grid; gap: .2rem; }
.mobile-nav a { padding: .7rem .4rem; font-weight: 600; border-bottom: 1px solid #f1f5f9; }
.mobile-nav .btn { margin-top: .6rem; }

/* Hero */
.hero { position: relative; padding-block: clamp(36px, 7vw, 84px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(37, 99, 235, .12), transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -50% -20%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px; background: radial-gradient(closest-side, rgba(14, 159, 110, .12), transparent); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.2rem; align-items: center; }
.hero h1 { margin: .7rem 0 1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--green), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.4rem; font-size: .88rem; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-trust .icon { color: var(--green); }
.hero-visual { position: relative; }
.hero-shot { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-l); border: 1px solid var(--line); background: #fff; }
.hero-float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .6rem .8rem; font-size: .8rem; display: flex; gap: .55rem; align-items: center; }
.hero-float strong { display: block; font-family: var(--display); font-size: 1rem; }
.hero-float .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.hero-float.f1 { left: -8px; bottom: -18px; }
.hero-float.f1 .dot { background: var(--green-l); color: var(--green); }
.hero-float.f2 { right: -8px; top: -16px; }
.hero-float.f2 .dot { background: var(--blue-l); color: var(--blue); }

/* Category tiles */
.cats { display: grid; gap: .9rem; }
.cat-tile { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; transition: border-color .2s, transform .2s var(--ease-out); }
.cat-tile:hover { border-color: var(--green); transform: translateY(-2px); }
.cat-tile .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.cat-tile .ic .icon { width: 22px; height: 22px; }
.cat-tile h3 { font-size: 1.02rem; }
.cat-tile p { font-size: .88rem; color: var(--muted); }
.cat-tile .count { font-size: .78rem; font-weight: 700; color: var(--green-d); margin-top: .3rem; display: inline-block; }
.ic-finanzas { background: var(--green-l); color: var(--green); }
.ic-autonomos { background: var(--blue-l); color: var(--blue); }
.ic-organizacion { background: #fdf2f8; color: #be185d; }

/* Carousel */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: -4px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: .5rem; }
.carousel-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.carousel-nav button:hover { border-color: var(--ink-2); }
.carousel-nav button[disabled] { opacity: .4; cursor: default; }

/* Benefits */
.benefits { display: grid; gap: 1rem; }
.benefit { padding: 1.4rem; }
.benefit .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-l); color: var(--green); margin-bottom: .9rem; }
.benefit:nth-child(2) .ic { background: var(--blue-l); color: var(--blue); }
.benefit:nth-child(3) .ic { background: #fff7ed; color: #c2410c; }
.benefit h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.benefit p { color: var(--muted); font-size: .94rem; }

/* Bundle band */
.bundle-band { position: relative; overflow: hidden; border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, #1e40af 0%, var(--navy) 55%, #0b1f37 100%); color: #e2e8f0; padding: clamp(24px, 5vw, 52px); display: grid; gap: 1.6rem; }
.bundle-band h2 { color: #fff; }
.bundle-band .eyebrow { color: #6ee7b7; }
.bundle-band ul { display: grid; gap: .45rem; font-size: .95rem; }
.bundle-band li { display: flex; gap: .5rem; align-items: flex-start; }
.bundle-band li .icon { color: #6ee7b7; margin-top: .2rem; }
.bundle-price { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 1.4rem; display: grid; gap: .7rem; align-content: start; }
.bundle-price .big { font-family: var(--display); font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; }
.bundle-price s { color: #94a3b8; }
.bundle-price .btn-free { background: #10b981; }

.packs { display: grid; gap: 1rem; }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 1rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1rem; color: var(--ink-2); font-size: .95rem; }

/* Newsletter */
.newsletter { display: grid; gap: 1rem; align-items: center; padding: clamp(20px, 4vw, 36px); border-radius: 20px; background: linear-gradient(135deg, var(--green-l), var(--blue-l)); border: 1px solid #d1e7f5; }
.newsletter h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.newsletter p { color: var(--ink-2); }

/* Footer */
.site-footer { background: #0b1626; color: #cbd5e1; margin-top: clamp(40px, 7vw, 80px); padding-top: clamp(36px, 6vw, 60px); font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer .logo { color: #fff; }
.site-footer h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: .8rem; }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer a:hover { color: #fff; }
.site-footer .newsletter-mini .input { background: #132238; border-color: #23344d; color: #fff; }
.site-footer .newsletter-mini .check { color: #94a3b8; }
.footer-bottom { border-top: 1px solid #1e2c42; margin-top: 2.2rem; padding-block: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; color: #94a3b8; font-size: .82rem; }

/* 7. Pages ----------------------------------------------------- */
/* Catalog */
.catalog-head { padding-block: clamp(28px, 5vw, 48px) 1rem; }
.filters { display: grid; gap: .9rem; padding: 1rem; margin-bottom: 1.4rem; position: relative; }
.filter-group { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.filter-group > .label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: .3rem; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .86rem; font-weight: 600; cursor: pointer; user-select: none; }
.chip:has(input:checked), .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .icon { width: 14px; height: 14px; }
.chip.lvl-free:has(input:checked) { background: var(--green); border-color: var(--green); }
.chip.lvl-pro:has(input:checked) { background: var(--blue); border-color: var(--blue); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.grid-cards { display: grid; gap: 1rem; }
.no-results { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.feed-ad { grid-column: 1 / -1; }

/* Product */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .84rem; color: var(--muted); padding-block: 1rem .4rem; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.product-top { display: grid; gap: 1.6rem; padding-bottom: 1.6rem; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 16 / 10; box-shadow: var(--shadow-s); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.gallery-main figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(15, 23, 42, .78); color: #fff; font-size: .78rem; padding: .25rem .55rem; border-radius: 8px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .6rem; }
.gallery-thumbs button { border-radius: 10px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 16 / 10; background: #fff; box-shadow: var(--shadow-s); }
.gallery-thumbs button.is-on { border-color: var(--blue-2); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.gallery-thumbs .thumb-live { display: grid; place-items: center; gap: .1rem; font-size: .72rem; font-weight: 700; color: var(--blue); background: var(--blue-l); }
.buybox { display: grid; gap: .9rem; align-content: start; }
.buybox h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
.buybox .badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.buybox .summary { color: var(--ink-2); }
.cta-box { padding: 1rem; display: grid; gap: .7rem; }
.cta-box .or { text-align: center; font-size: .82rem; color: var(--muted); }
.cta-box .bundle-link { font-size: .88rem; text-align: center; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta-note { display: flex; gap: .4rem; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); }
.mini-points { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .84rem; color: var(--muted); }
.mini-points span { display: inline-flex; gap: .35rem; align-items: center; }
.mini-points .icon { color: var(--green); }

.product-layout { display: grid; gap: 2rem; }
.product-main > section + section { margin-top: clamp(32px, 5vw, 52px); }
.product-main h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .9rem; }
.sidebar { display: grid; gap: 1.2rem; align-content: start; }
.sidebar .ad-sky { margin: 0 auto; }

.viewer { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.viewer iframe { width: 100%; height: 560px; border: 0; }
.viewer-note { font-size: .84rem; color: var(--muted); margin-top: .5rem; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.compare th, .compare td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: #f8fafc; font-size: .82rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 84px; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green); }
.compare .no { color: #cbd5e1; }
.compare tfoot td { background: #f8fafc; font-weight: 700; }

.reviews-sum { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding: 1.1rem; margin-bottom: 1rem; }
.reviews-sum .score { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.review-list { display: grid; gap: .8rem; }
.review { padding: 1rem 1.1rem; }
.review header { display: flex; justify-content: space-between; gap: .6rem; align-items: center; margin-bottom: .3rem; }
.review header strong { font-size: .95rem; }
.review p { color: var(--ink-2); font-size: .94rem; }
.review .verified { font-size: .74rem; color: var(--muted); }
.review-form { padding: 1.1rem; display: grid; gap: .8rem; margin-top: 1rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.6rem; color: #cbd5e1; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--blue-2); border-radius: 4px; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .25); transform: translateY(110%); transition: transform .3s var(--ease-out); }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 46px; padding-inline: .6rem; font-size: .92rem; }

/* Checkout */
.checkout { display: grid; gap: 1.4rem; padding-block: 1.5rem 2rem; }
.steps { display: flex; gap: .4rem; margin-bottom: 1rem; counter-reset: s; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.steps li.is-on { color: var(--ink); }
.steps li.is-on::before, .steps li.is-done::before { background: var(--blue-2); }
.co-panel { padding: clamp(16px, 3vw, 26px); display: grid; gap: 1rem; }
.co-panel h2 { font-size: 1.25rem; }
.co-row { display: grid; gap: .8rem; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pay-methods label { display: grid; place-items: center; gap: .2rem; padding: .7rem .4rem; border: 1px solid var(--line-2); border-radius: 12px; font-size: .82rem; font-weight: 700; cursor: pointer; text-align: center; }
.pay-methods label:has(input:checked) { border-color: var(--blue-2); background: var(--blue-l); }
.pay-methods input { position: absolute; opacity: 0; }
.gateway { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gateway-head { display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.gateway-body { padding: .9rem; display: grid; gap: .7rem; }
.summary-card { padding: 1.2rem; display: grid; gap: .8rem; align-content: start; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.summary-line.total { font-size: 1.15rem; font-weight: 800; font-family: var(--display); border-top: 1px solid var(--line); padding-top: .8rem; }
.summary-line.discount { color: var(--green-d); }
.summary-items { display: grid; gap: .3rem; font-size: .84rem; color: var(--muted); padding-left: 1rem; }
.upsell { border: 1px dashed var(--blue-2); background: var(--blue-l); border-radius: 12px; padding: .8rem .9rem; font-size: .88rem; display: grid; gap: .5rem; }
.processing { display: grid; place-items: center; gap: 1rem; padding: 2rem 0; text-align: center; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--blue-l); border-top-color: var(--blue-2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.secure { display: flex; gap: .4rem; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); }

/* Thank you / receipt */
.thanks { padding-block: 2rem; display: grid; gap: 1.4rem; max-width: 820px; }
.dl-list { display: grid; gap: .6rem; }
.dl-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 1rem; }
.dl-item .meta { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.dl-item .meta strong { display: block; font-size: .95rem; }
.dl-item .meta small { color: var(--muted); }
.file-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; flex: none; }
.file-ic.xlsx { background: #107c41; }
.file-ic.pdf { background: #dc2626; }
.file-ic.zip { background: #6d28d9; }
.receipt { padding: 1.3rem; font-size: .92rem; }
.receipt table { width: 100%; border-collapse: collapse; margin-top: .8rem; }
.receipt th, .receipt td { padding: .5rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.receipt td:last-child, .receipt th:last-child { text-align: right; }
.receipt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Legal */
.legal { max-width: 780px; padding-block: 2rem; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2rem; margin-top: .5rem; }
.legal .todo { background: var(--amber-l); padding: .1rem .3rem; border-radius: 4px; }

/* 8. Responsive (mobile-first) --------------------------------- */
@media (min-width: 540px) {
  .carousel-track { grid-auto-columns: 46%; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat-tile { flex-direction: column; }
  .co-row.two { grid-template-columns: 1fr 1fr; }
  .cookie { left: 16px; right: auto; }
}
@media (min-width: 720px) {
  :root { --gutter: 24px; --header-h: 68px; }
  .ad-bar .ad-leader { display: grid; }
  .ad-bar .ad-mobile { display: none; }
  .ad-top { position: sticky; top: var(--header-h); z-index: 90; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; }
  .newsletter { grid-template-columns: 1fr 1.1fr; }
  .viewer iframe { height: 600px; }
  .sticky-cta { display: none; }
}
@media (min-width: 960px) {
  .nav { display: flex; gap: .1rem; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .header-cta { display: inline-flex; min-height: 40px; padding: .5rem .9rem; font-size: .88rem; }
  .search { max-width: 340px; margin-left: auto; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .carousel-track { grid-auto-columns: calc((100% - 3rem) / 4); }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .bundle-band { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .packs { grid-template-columns: repeat(4, 1fr); }
  .product-top { grid-template-columns: 1.15fr 1fr; gap: 2.4rem; }
  .product-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2.6rem; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 120px); }
  .checkout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .summary-card { position: sticky; top: calc(var(--header-h) + 120px); }
  .filters { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.6rem; }
  .filter-group > .label { width: auto; }
  .cookie { max-width: 520px; }
}
@media (min-width: 1280px) {
  .grid-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 719px) {
  /* En móvil la barra de anuncio superior no es sticky: no quita pantalla */
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* 9. Motion & print ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .modal-card { animation: none; }
  .spinner { animation-duration: 2.5s; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .ad-bar, .no-print, .cookie, .sticky-cta { display: none !important; }
  body { background: #fff; }
  .receipt { border: 0; box-shadow: none; }
}
