/* ===== AgentesChinos – estilo tienda: blanco, negro, productos primero ===== */
:root {
  --ink: #000;
  --ink-2: #333;
  --muted: #757575;
  --line: #e6e6e6;
  --bg: #fff;
  --soft: #f4f4f4;
  --img: #f2f2f2;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* ===== Barra superior y cabecera ===== */
.topbar { background: #000; color: #fff; text-align: center; font-size: 12px; padding: 8px 20px; }
.topbar a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none; color: #000; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand:hover { color: #000; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav-link { font-size: 13px; text-decoration: none; color: #000; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-link:hover { color: #000; border-bottom-color: #000; }
.nav-link.is-active { border-bottom-color: #000; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 12px 8px; margin-right: -8px; }
.menu-toggle span { display: block; height: 1.5px; background: #000; margin: 5px 0; transition: transform .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 4px 20px 16px; display: none; }
  .nav.is-open { display: flex; }
  .nav-link { font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* ===== Botones y enlaces ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1; padding: 15px 26px; border: 1px solid #000; border-radius: 0; background: #000; color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: #fff; color: #000; }
.btn svg { width: 16px; height: 16px; }
.btn--ghost, .btn--light { background: #fff; color: #000; }
.btn--ghost:hover, .btn--light:hover { background: #000; color: #fff; }
.btn--sm { padding: 11px 16px; font-size: 12px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.link-arrow { font-size: 13px; text-decoration: underline; }

/* ===== Portada de tienda ===== */
.shop-head { padding: 34px 0 6px; }
.shop-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.shop-head p { color: var(--muted); margin: 0; max-width: 640px; }

/* Filtros (texto, como una tienda) */
.filters { display: flex; gap: 22px; flex-wrap: wrap; padding: 18px 0; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.filter { font: inherit; font-size: 13px; padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.filter:hover { color: #000; }
.filter.is-on { color: #000; border-bottom-color: #000; }
@media (max-width: 680px) { .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; margin-inline: -20px; padding-inline: 20px; } .filters::-webkit-scrollbar { display: none; } .filter { flex: none; } }

/* Rejilla de productos */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 18px; }
@media (max-width: 1000px) { .p-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .p-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; } }
.p-card { position: relative; }
.p-card[hidden] { display: none; }
.p-img { display: block; background: var(--img); overflow: hidden; }
.p-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.p-card:hover .p-img img { opacity: .88; }
.p-body { padding-top: 12px; font-size: 13px; line-height: 1.45; }
.p-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.p-tag { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.p-card h3 { font-size: 13px; font-weight: 400; margin: 0; }
.p-card h3 a { text-decoration: none; }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; }
.p-price { margin: 4px 0 0; }
.p-price span { color: var(--muted); }
.p-note, .p-also { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.p-also { position: relative; z-index: 1; }
.p-also a { color: var(--muted); }
.more-links { margin-top: 36px; text-align: center; }
.more-link { display: none; font-size: 13px; text-decoration: underline; }
.more-link.is-on { display: inline-block; }

/* Franja "cómo funciona" y agentes en portada */
.strip { border-top: 1px solid var(--line); margin-top: 64px; padding: 40px 0 8px; display: grid; grid-template-columns: 1fr 3fr; gap: 24px; }
.strip h2 { font-size: 1.15rem; }
.strip-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.strip-cols h3 { margin-bottom: 4px; }
.strip-cols p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.strip-cols a { font-size: 13px; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr; } .strip-cols { grid-template-columns: 1fr; gap: 20px; } }

/* ===== Secciones genéricas ===== */
.section { padding: 56px 0; }
.section--alt, .section--soft { background: var(--soft); }
.section--dark { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head--center { margin-inline: 0; }
.section-lead { color: var(--muted); }
.eyebrow { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.kicker { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.fineprint, .disclosure { font-size: 12px; color: var(--muted); margin: 20px 0 0; }
.grad, .grad--cool { color: inherit; }

/* Página interior: cabecera sencilla */
.page-hero, .article-hero { padding: 40px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.page-hero h1, .article-hero h1 { max-width: 820px; }
.hero-lead, .article-hero .lead { color: var(--ink-2); font-size: 16px; max-width: 640px; margin: 0; }
.page-hero .btn-row, .article-hero .btn-row { margin-top: 20px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); }
.chip--warn { color: #a33a00; }

/* Bloques en columnas (antes "tiles") */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #000; }
.tile { padding: 22px 24px 26px 0; border-bottom: 1px solid var(--line); }
.tile + .tile { padding-left: 24px; border-left: 1px solid var(--line); }
.tile--wide { grid-column: span 1; }
.tiles:has(.tile--wide) { grid-template-columns: repeat(2, 1fr); }
.tiles:has(.tile--wide) .tile:nth-child(odd) { border-left: 0; padding-left: 0; }
.tile--full { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; }
.tiles:not(:has(.tile--wide)) .tile:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.tile h3 { font-size: 16px; margin: 0 0 6px; }
.tile p { color: var(--muted); margin: 0; font-size: 14px; }
.tile .kicker { margin-bottom: 8px; }
.tile .big { font-size: 2.6rem; font-weight: 500; line-height: 1; color: #000; margin: 4px 0 10px; letter-spacing: -.02em; }
@media (max-width: 760px) {
  .tiles, .tiles:has(.tile--wide) { grid-template-columns: 1fr; }
  .tile, .tile + .tile { padding: 18px 0 20px; border-left: 0; }
}

/* Plazos (antes "timeline") */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #000; }
.timeline li { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.timeline li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.timeline b { display: block; font-size: 1.4rem; font-weight: 500; }
.timeline span { font-size: 13px; color: var(--muted); }
@media (max-width: 680px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline li:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Comparativa de agentes */
.vs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #000; }
.vs-card { padding: 24px 28px 30px 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.vs-card + .vs-card { padding-left: 28px; border-left: 1px solid var(--line); }
.vs-card .kicker { min-height: 1.4em; }
.vs-card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 2px; }
.vs-card .for { color: var(--muted); margin-bottom: 18px; }
.vs-card dl { margin: 0 0 24px; font-size: 14px; }
.vs-card dt { font-size: 12px; color: var(--muted); margin-top: 12px; }
.vs-card dd { margin: 2px 0 0; }
.vs-card .btn { margin-top: auto; }
.vs-card .more { display: block; margin-top: 12px; font-size: 13px; }
@media (max-width: 860px) { .vs { grid-template-columns: 1fr; } .vs-card, .vs-card + .vs-card { padding: 22px 0 26px; border-left: 0; } }

/* Lista de consejos */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid #000; max-width: 900px; }
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ticks b { font-weight: 600; }
@media (max-width: 640px) { .ticks { grid-template-columns: 1fr; } }

/* ===== Agentes (tarjetas antiguas) ===== */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #000; }
.agent-card { position: relative; display: flex; flex-direction: column; padding: 22px 24px 26px 0; border-bottom: 1px solid var(--line); }
.agent-card + .agent-card { padding-left: 24px; border-left: 1px solid var(--line); }
.agent-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.agent-logo { display: none; }
.agent-card h3 { margin: 0; font-size: 1.2rem; font-weight: 500; }
.agent-tagline { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.agent-card .btn { margin-top: auto; }
.agent-card .more { display: block; margin-top: 10px; font-size: 13px; }
.ribbon { font-size: 12px; color: var(--muted); }
.offer-line { font-size: 14px; margin: 0 0 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (max-width: 860px) { .agents { grid-template-columns: 1fr; } .agent-card, .agent-card + .agent-card { padding: 20px 0 24px; border-left: 0; } }

/* ===== Artículos largos (fichas de agente, cupones…) ===== */
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 32px 0 72px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 13px; }
.toc h2 { font-size: 12px; color: var(--muted); font-weight: 400; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.toc a:hover, .toc a.is-current { color: #000; }
.toc .toc-cta { margin-top: 24px; }
.toc .toc-cta p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.toc .toc-cta strong { display: block; }
.toc-toggle { display: none; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .toc { position: static; margin-bottom: 24px; }
  .toc .toc-cta { display: none; }
  .toc.is-collapsible h2 { display: none; }
  .toc-toggle { display: flex; width: 100%; justify-content: space-between; font: inherit; font-size: 14px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; cursor: pointer; color: #000; }
  .toc-toggle::after { content: "+"; }
  .toc.is-open .toc-toggle::after { content: "−"; }
  .toc.is-collapsible ol { display: none; border-top: 0; }
  .toc.is-collapsible.is-open ol { display: block; }
}
.prose { max-width: 720px; }
.prose > h2 { margin-top: 2em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.step-block { position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line); }
.step-block .n { position: absolute; left: 0; top: 16px; font-size: 13px; color: var(--muted); }
.step-block h3 { margin-top: 0; }
.step-block p:last-child, .step-block ul:last-child { margin-bottom: 0; }
.note { padding: 14px 18px; background: var(--soft); margin: 1.5em 0; font-size: 14px; }
.note p:last-child { margin: 0; }
.note--warn { border-left: 2px solid #a33a00; }
.note--tip { border-left: 2px solid #000; }
.scorecard { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid #000; border-bottom: 1px solid var(--line); padding: 22px 0; margin: 0 0 32px; }
.scorecard h2 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 120px 1fr 34px; gap: 12px; align-items: center; font-size: 13px; }
.bar { height: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: #000; width: 0; transition: width 1s; }
.is-visible .bar i, .no-js .bar i { width: var(--w); }
.bars b { text-align: right; font-weight: 500; }
.scorecard-side { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.big-score b { font-size: 2.6rem; font-weight: 500; line-height: 1; }
.big-score span { color: var(--muted); margin-left: 6px; }
.score-note { font-size: 12px; color: var(--muted); margin: 0; }
@media (max-width: 700px) { .scorecard { grid-template-columns: 1fr; } }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 1.5em 0; border-top: 1px solid #000; padding-top: 16px; }
.pros-cons h3 { margin-top: 0; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li { padding: 6px 0 6px 18px; position: relative; border-bottom: 1px solid var(--line); font-size: 14px; }
.pros-cons .pros li::before { content: "+"; position: absolute; left: 0; }
.pros-cons .cons li::before { content: "−"; position: absolute; left: 0; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid #000; border-bottom: 1px solid var(--line); margin: 2em 0; }
.inline-cta p { margin: 0; color: var(--muted); font-size: 14px; }
.inline-cta strong { display: block; }
.agent-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 1.5em 0; border-top: 1px solid #000; }
.agent-pick a { display: block; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.agent-pick strong { display: block; }
.agent-pick span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .agent-pick { grid-template-columns: 1fr; } }
.facts { border-top: 1px solid #000; border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0 0 28px; }
.facts h2 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.facts dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .checked { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 560px) { .facts dl { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border-top: 1px solid #000; }
table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 14px; }
th, td { padding: 12px 14px 12px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; }
tbody th { font-weight: 500; color: var(--muted); width: 26%; }
.th-agent i { display: none; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid #000; }
.feature { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-ico { display: none; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.stat b { display: block; font-size: 1.8rem; font-weight: 500; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.cta-band { padding: 32px 0; border-top: 1px solid #000; }
.cta-band p { color: var(--muted); }

/* FAQ */
.faqs { border-top: 1px solid #000; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 18px; }
.faq[open] summary::after { content: "−"; }
.faq > div { padding: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.faq > div p:last-child { margin: 0; }

/* Convertidor */
.conv { border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); }
.conv label { font-weight: 600; display: block; margin-bottom: 8px; }
.conv-row { display: flex; gap: 10px; }
.conv input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #000; border-radius: 0; }
.conv input:focus { outline: 2px solid #000; outline-offset: -2px; }
.conv-out { margin-top: 18px; display: grid; gap: 8px; }
.conv-out:empty { display: none; }
.conv-res { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.conv-res small { color: var(--muted); }
.conv-msg { font-size: 14px; padding: 12px 14px; background: var(--soft); }
@media (max-width: 560px) { .conv-row { flex-direction: column; } }
.copy-btn { font: inherit; font-size: 12px; border: 1px solid #000; padding: 6px 12px; background: #000; color: #fff; cursor: pointer; }
.copy-btn.is-done { background: #fff; color: #000; }

/* Barra fija en móvil */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .has-sticky .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .3s; }
  .has-sticky .sticky-cta.is-shown { transform: none; }
  .sticky-cta span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .sticky-cta b { font-size: 14px; }
  .sticky-cta small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-cta .btn { flex: none; }
  .has-sticky .site-footer { padding-bottom: 90px; }
}

/* ===== Pie ===== */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 40px 0 28px; font-size: 13px; color: var(--muted); }
.site-footer a { color: #000; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-h { font-size: 13px; font-weight: 600; color: #000; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-legal { font-size: 12px; margin: 0 0 32px; max-width: 900px; }
.footer-bottom { margin: 32px 0 0; font-size: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Sin animaciones de entrada */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
