/* OLDLANDCRUISER — prototipo. Paleta: arena, verde oliva, grafito y crema. */
:root {
  --arena: #d8c3a0;
  --arena-2: #ead9bc;
  --crema: #f6f1e7;
  --papel: #fffdf8;
  --oliva: #4f5d32;
  --oliva-2: #3d4826;
  --oliva-claro: #e4e8d6;
  --grafito: #23262a;
  --grafito-2: #3a3e44;
  --gris: #6b6f75;
  --linea: #ddd3c2;
  --oxido: #b8571f;
  --oxido-2: #9a4616;
  --ok: #2f6b3a;
  --ok-bg: #e2efe2;
  --aviso: #8a5a00;
  --aviso-bg: #fbefd2;
  --mal: #9b2c2c;
  --mal-bg: #f7e1e1;
  --radio: 6px;
  --sombra: 0 1px 2px rgba(35, 38, 42, .06), 0 6px 24px rgba(35, 38, 42, .08);
  --ff-tit: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ff: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--crema); color: var(--grafito);
  font-family: var(--ff); font-size: 17px; line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--oliva); text-underline-offset: 3px; }
a:hover { color: var(--oxido); }
h1, h2, h3, h4 { font-family: var(--ff-tit); line-height: 1.05; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--oxido); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.kicker { font-family: var(--ff-tit); text-transform: uppercase; letter-spacing: .16em; font-size: .9rem; font-weight: 600; color: var(--oxido); margin-bottom: .6em; display: block; }
.lead { font-size: 1.15rem; color: var(--grafito-2); max-width: 62ch; }
.muted { color: var(--gris); }
.small { font-size: .88rem; }

/* ---------- Barra demo ---------- */
.demo-bar { background: var(--grafito); color: var(--arena-2); font-size: .82rem; text-align: center; padding: 6px 16px; }
.demo-bar strong { color: #fff; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 231, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.hdr { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--grafito); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { font-family: var(--ff-tit); font-size: 1.45rem; letter-spacing: .04em; font-weight: 700; }
.brand small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-top: -3px; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--grafito); font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: var(--radio); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--arena-2); color: var(--grafito); }
.hdr-actions { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radio); border: 1px solid var(--linea); background: var(--papel); color: var(--grafito); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--grafito); color: var(--grafito); }
.icon-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--oxido); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.badge[data-n="0"] { display: none; }
.menu-toggle { display: inline-flex; }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .hdr-actions { margin-left: 8px; }
  .menu-toggle { display: none; }
}
@media (max-width: 480px) {
  .hdr { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand svg { width: 32px; height: 32px; }
  .brand b { font-size: 1.15rem; }
  .brand small { display: none; }
  .hdr-actions { gap: 4px; }
  .icon-btn { width: 40px; height: 40px; }
  .demo-bar { font-size: .74rem; padding: 5px 12px; }
}
.mobile-nav { display: none; border-top: 1px solid var(--linea); background: var(--crema); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--linea); text-decoration: none; color: var(--grafito); font-weight: 600; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radio); border: 2px solid transparent; font-family: var(--ff-tit); font-size: 1.1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--oxido); color: #fff; }
.btn-primary:hover { background: var(--oxido-2); color: #fff; }
.btn-oliva { background: var(--oliva); color: #fff; }
.btn-oliva:hover { background: var(--oliva-2); color: #fff; }
.btn-line { background: transparent; border-color: currentColor; color: var(--grafito); }
.btn-line:hover { background: var(--grafito); color: var(--crema); border-color: var(--grafito); }
.btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--grafito); }
.btn-wa { background: #1f7a4a; color: #fff; }
.btn-wa:hover { background: #17603a; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--grafito); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 70% 55%; transform: scale(1.06); animation: heroIn 1.6s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 24, .25) 0%, rgba(20, 22, 24, .35) 40%, rgba(20, 22, 24, .88) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 40px; width: 100%; }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .kicker { color: var(--arena); }
.hero p.lead { color: #f0e8da; max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.hero-ctas .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .hero-ctas .btn { flex: 0 0 auto; } }

/* ---------- Buscador por vehículo ---------- */
.finder { background: var(--papel); color: var(--grafito); border-radius: 10px; padding: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.finder h2 { font-size: 1.5rem; margin-bottom: 12px; }
.finder-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.finder-grid .full { grid-column: 1 / -1; }
@media (min-width: 900px) { .finder-grid { grid-template-columns: repeat(6, 1fr); } .finder-grid .w2 { grid-column: span 2; } .finder-grid .full { grid-column: 1 / -1; } }
.finder-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--gris); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.finder-or::before, .finder-or::after { content: ""; flex: 1; height: 1px; background: var(--linea); }

/* ---------- Formularios ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; }
.hint { font-size: .8rem; color: var(--gris); margin-top: 3px; font-weight: 400; }
input, select, textarea { font: inherit; font-size: 16px; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9bda8; border-radius: var(--radio); background: #fff; color: var(--grafito); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--oliva); box-shadow: 0 0 0 3px rgba(79, 93, 50, .2); }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--oliva); flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
fieldset { border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px; margin: 0; }
legend { font-family: var(--ff-tit); font-weight: 600; font-size: 1.15rem; padding: 0 6px; }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--papel); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.section-dark { background: var(--grafito); color: var(--crema); }
.section-dark .lead { color: #d9d2c4; }
.section-oliva { background: var(--oliva); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-head p { margin: 0; }

/* Accesos por estado */
.estados { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .estados { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .estados { grid-template-columns: repeat(4, 1fr); } }
.estado-card { position: relative; display: block; padding: 22px; border-radius: 10px; background: var(--papel); border: 1px solid var(--linea); text-decoration: none; color: var(--grafito); transition: transform .25s var(--ease), box-shadow .25s; overflow: hidden; }
.estado-card:hover { transform: translateY(-3px); box-shadow: var(--sombra); color: var(--grafito); }
.estado-card .tag { margin-bottom: 14px; }
.estado-card h3 { font-size: 1.6rem; text-transform: uppercase; }
.estado-card p { color: var(--grafito-2); margin: 0 0 12px; }
.estado-card .go { font-family: var(--ff-tit); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--oxido); }

/* Series */
.series-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .series-grid { grid-template-columns: repeat(4, 1fr); } .series-grid .serie-card:first-child { grid-column: span 2; } .series-grid .serie-card { min-height: 230px; } }
.serie-card { position: relative; display: flex; align-items: flex-end; min-height: 190px; border-radius: 10px; overflow: hidden; color: #fff; text-decoration: none; background: var(--grafito); }
.serie-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.serie-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(15, 16, 18, .85)); }
.serie-card:hover img { transform: scale(1.05); }
.serie-card .t { position: relative; z-index: 1; padding: 14px 16px; }
.serie-card b { display: block; font-family: var(--ff-tit); font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
.serie-card span { font-size: .82rem; color: #e7dfcf; }
.serie-card:hover { color: #fff; }

/* Cómo funciona / pasos */
.pasos { counter-reset: paso; display: grid; gap: 16px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 800px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.pasos li { position: relative; padding: 22px 22px 22px 70px; background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; }
.section-dark .pasos li { background: var(--grafito-2); border-color: #4b5057; }
.pasos li::before { counter-increment: paso; content: counter(paso, decimal-leading-zero); position: absolute; left: 18px; top: 18px; font-family: var(--ff-tit); font-weight: 700; font-size: 2rem; color: var(--oxido); line-height: 1; }
.pasos h3 { font-size: 1.25rem; }
.pasos p { margin: 0; }
.pasos-v { grid-template-columns: 1fr !important; }

/* Split */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split-img { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--arena); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* Tarjetas de confianza */
.trust { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust div { padding: 18px; border-left: 3px solid var(--oxido); background: rgba(255, 255, 255, .05); }
.trust b { display: block; font-family: var(--ff-tit); font-size: 1.25rem; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Etiquetas ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 4px; line-height: 1.2; }
.tag-nuevo { background: #e3ebf3; color: #24456b; }
.tag-usado { background: var(--arena-2); color: #6a4b1b; }
.tag-reparado { background: var(--oliva-claro); color: var(--oliva-2); }
.tag-accesorio { background: #ece3f0; color: #5b3a6b; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-pend { background: var(--aviso-bg); color: var(--aviso); }
.tag-out { background: var(--mal-bg); color: var(--mal); }
.tag-demo { background: var(--grafito); color: var(--arena); }

/* ---------- Catálogo ---------- */
.page-head { position: relative; color: #fff; background: var(--grafito); overflow: hidden; }
.page-head .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 22, 24, .92) 0%, rgba(20, 22, 24, .6) 60%, rgba(20, 22, 24, .35)); }
.page-head .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head p { color: #e9e1d2; max-width: 62ch; }
.page-head .kicker { color: var(--arena); }
.crumbs { font-size: .85rem; margin-bottom: 12px; color: var(--gris); }
.crumbs a { color: var(--oliva); }
.page-head .crumbs, .hero .crumbs { color: #cfc6b5; }
.page-head .crumbs a, .hero .crumbs a { color: #fff; }

.cat-layout { display: grid; gap: 24px; padding: 28px 0 64px; }
@media (min-width: 980px) { .cat-layout { grid-template-columns: 280px 1fr; } }
.filters { background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 16px; align-self: start; }
@media (min-width: 980px) { .filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; } }
.filters h2 { font-size: 1.3rem; }
.filters .field { margin-bottom: 12px; }
.filters-toggle { display: inline-flex; }
@media (max-width: 979px) { .filters { display: none; } .filters.is-open { display: block; } }
@media (min-width: 980px) { .filters-toggle { display: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 30px; border: 1px solid var(--linea); background: var(--papel); font-size: .88rem; cursor: pointer; font-weight: 600; color: var(--grafito); }
.chip[aria-pressed="true"] { background: var(--grafito); color: #fff; border-color: var(--grafito); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar select { width: auto; min-width: 180px; }

.grid-prod { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-prod { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .grid-prod { grid-template-columns: repeat(3, 1fr); } }
.prod { display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); }
.prod:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.prod-img { position: relative; aspect-ratio: 4/3; background: var(--arena); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .tag { position: absolute; top: 10px; left: 10px; }
.prod-img .tag-demo { left: auto; right: 10px; }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-body h3 { font-size: 1.25rem; margin: 0; }
.prod-body h3 a { color: var(--grafito); text-decoration: none; }
.prod-body h3 a:hover { color: var(--oxido); }
.prod-meta { font-size: .84rem; color: var(--gris); }
.prod-meta code { font-size: .82rem; background: var(--crema); padding: 1px 5px; border-radius: 3px; }
.prod-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 8px; }
.price b { font-family: var(--ff-tit); font-size: 1.7rem; line-height: 1; }
.price small { display: block; color: var(--gris); font-size: .74rem; }
.empty { padding: 30px; text-align: center; background: var(--papel); border: 1px dashed #c9bda8; border-radius: 10px; }

/* ---------- Ficha ---------- */
.ficha { display: grid; gap: 28px; padding: 28px 0 56px; }
@media (min-width: 960px) { .ficha { grid-template-columns: 1.1fr 1fr; gap: 44px; } }
.gallery-main { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--arena); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--arena); }
.thumbs button[aria-current="true"] { border-color: var(--oxido); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { font-size: .82rem; color: var(--gris); margin-top: 8px; }
.ficha h1 { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: none; }
.buybox { background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 18px; margin: 16px 0; }
.buybox .price b { font-size: 2.4rem; }
.qty { display: flex; gap: 10px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.qty input { width: 90px; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.specs th { width: 42%; color: var(--gris); font-weight: 600; }
.notice { padding: 12px 14px; border-radius: var(--radio); font-size: .93rem; margin: 12px 0; border-left: 4px solid; }
.notice-ok { background: var(--ok-bg); border-color: var(--ok); }
.notice-pend { background: var(--aviso-bg); border-color: #d39b22; }
.notice-info { background: var(--oliva-claro); border-color: var(--oliva); }
.notice-mal { background: var(--mal-bg); border-color: var(--mal); }
.pend { background: #fff1b8; color: #6b4e00; padding: 0 4px; border-radius: 3px; font-weight: 600; font-size: .92em; }

/* Envío por CP */
.cp-calc { display: flex; gap: 8px; margin-top: 8px; }
.cp-calc input { max-width: 160px; }

/* ---------- Carrito / checkout ---------- */
.steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: st; overflow-x: auto; }
.steps li { flex: 1; min-width: 110px; padding: 10px 8px; border-bottom: 3px solid var(--linea); font-size: .85rem; font-weight: 600; color: var(--gris); }
.steps li::before { counter-increment: st; content: counter(st) ". "; }
.steps li.is-active { border-color: var(--oxido); color: var(--grafito); }
.steps li.is-done { border-color: var(--oliva); color: var(--oliva); }
.checkout { display: grid; gap: 24px; padding: 28px 0 64px; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1fr 360px; } }
.panel { background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 18px; }
.summary { align-self: start; }
@media (min-width: 960px) { .summary { position: sticky; top: 84px; } }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.sum-row.total { border-top: 2px solid var(--grafito); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 1.15rem; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); align-items: center; }
.cart-line img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; }
.cart-line .ctrl { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.cart-line input { width: 70px; min-height: 36px; padding: 4px 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--mal); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--linea); border-radius: var(--radio); margin-bottom: 8px; background: #fff; cursor: pointer; font-weight: 400; }
.option:has(input:checked) { border-color: var(--oliva); box-shadow: 0 0 0 2px rgba(79, 93, 50, .2); }
.option b { display: block; }

/* ---------- Reparación ---------- */
.rep-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .rep-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rep-grid { grid-template-columns: repeat(3, 1fr); } }
.rep-card { background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; padding: 18px; }
.rep-card ul { padding-left: 18px; margin: 6px 0 12px; }
.rep-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: .9rem; margin: 0 0 12px; }
.rep-card dt { color: var(--gris); }
.rep-card dd { margin: 0; }
.cases { display: grid; gap: 12px; }
@media (min-width: 800px) { .cases { grid-template-columns: 1fr 1fr; } }
.cases details, .faq details { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 0 16px; }
.cases summary, .faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.cases summary::after, .faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--oxido); }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 14px; }
.faq { display: grid; gap: 8px; }

/* Tabla transporte */
.tabla { width: 100%; border-collapse: collapse; background: var(--papel); border-radius: 10px; overflow: hidden; font-size: .95rem; }
.tabla th, .tabla td { padding: 12px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.tabla th { background: var(--grafito); color: var(--crema); font-family: var(--ff-tit); font-size: 1.05rem; letter-spacing: .03em; }
.tabla-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--linea); }

/* ---------- Legal / texto ---------- */
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.legal-layout { display: grid; gap: 24px; padding: 28px 0 64px; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px 1fr; } }
.legal-nav { align-self: start; }
@media (min-width: 960px) { .legal-nav { position: sticky; top: 84px; } }
.legal-nav a { display: block; padding: 8px 10px; border-radius: var(--radio); text-decoration: none; color: var(--grafito); font-weight: 600; }
.legal-nav a:hover { background: var(--arena-2); }

/* ---------- Pie ---------- */
.site-footer { background: var(--grafito); color: #cfc8ba; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #f0e8da; text-decoration: none; }
.site-footer a:hover { color: var(--arena); text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.independencia { margin-top: 32px; padding-top: 18px; border-top: 1px solid #44484e; font-size: .82rem; color: #a9a397; }

/* ---------- WhatsApp flotante + asistente ---------- */
.fab-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px; border-radius: 28px; border: 0; color: #fff; font-family: var(--ff-tit); font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); cursor: pointer; text-decoration: none; }
.fab svg { width: 24px; height: 24px; }
.fab-ai { background: var(--oliva); }
.fab-ai:hover { background: var(--oliva-2); color: #fff; }
.fab-wa { background: #1f7a4a; width: 54px; padding: 0; justify-content: center; }
.fab-wa:hover { background: #17603a; color: #fff; }
@media (max-width: 520px) { .fab-ai span { display: none; } .fab-ai { width: 54px; padding: 0; justify-content: center; } }

.chat { position: fixed; right: 16px; bottom: 84px; z-index: 70; width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100vh - 110px)); background: var(--papel); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--linea); }
.chat.is-open { display: flex; }
.chat-inline { position: static; width: 100%; height: 640px; display: flex; box-shadow: var(--sombra); }
.chat-head { background: var(--grafito); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.chat-head b { font-family: var(--ff-tit); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
.chat-head small { display: block; color: #bdb6a8; font-size: .75rem; }
.chat-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; width: 40px; height: 40px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--crema); }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 10px; font-size: .94rem; line-height: 1.45; }
.msg p { margin: 0 0 6px; }
.msg p:last-child { margin: 0; }
.msg-bot { background: #fff; border: 1px solid var(--linea); align-self: flex-start; border-bottom-left-radius: 2px; }
.msg-user { background: var(--oliva); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.msg .mini-prod { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 8px; border: 1px solid var(--linea); border-radius: 8px; margin: 6px 0; background: var(--crema); text-decoration: none; color: var(--grafito); }
.msg .mini-prod img { width: 56px; height: 44px; object-fit: cover; border-radius: 4px; }
.msg .mini-prod b { display: block; font-size: .9rem; line-height: 1.2; }
.msg .mini-prod span { font-size: .78rem; color: var(--gris); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.quick button, .quick a { font: inherit; font-size: .82rem; padding: 5px 10px; border-radius: 20px; border: 1px solid var(--oliva); background: #fff; color: var(--oliva); cursor: pointer; text-decoration: none; font-weight: 600; }
.quick button:hover, .quick a:hover { background: var(--oliva); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--linea); background: var(--papel); }
.chat-form input { min-height: 44px; }
.chat-form button { flex: none; }
.chat-foot { font-size: .72rem; color: var(--gris); padding: 0 12px 8px; background: var(--papel); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--grafito); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100vw - 32px); font-size: .95rem; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Revelado al hacer scroll — contenido visible por defecto si no hay JS */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Calculadora interna */
.calc-out { font-family: var(--ff-tit); font-size: 2rem; font-weight: 700; }
.formula { font-family: ui-monospace, Consolas, monospace; background: var(--grafito); color: var(--arena-2); padding: 12px 14px; border-radius: var(--radio); font-size: .92rem; overflow-x: auto; }

@media print { .site-header, .fab-wrap, .chat, .demo-bar, .site-footer { display: none !important; } }
