:root {
  --g: #0f6b5c;
  --g-dark: #0a4a40;
  --g-deep: #06302a;
  --g-soft: #e7f3ef;
  --g-mist: #f2f8f6;
  --gold: #f2a93b;
  --gold-soft: #fdf1dc;
  --ink: #142027;
  --ink-2: #3c4a55;
  --muted: #6b7884;
  --line: #e3e8ec;
  --bg: #fbfaf7;
  --card: #ffffff;
  --danger: #c0392b;
  --ok: #1e8e5a;
  --r: 18px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 39, .05), 0 1px 3px rgba(20, 32, 39, .06);
  --shadow: 0 2px 6px rgba(20, 32, 39, .04), 0 12px 32px -8px rgba(20, 32, 39, .12);
  --shadow-lg: 0 30px 60px -20px rgba(6, 48, 42, .35);
  --head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--g); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }

/* Barra demo */
.demo-bar { background: var(--g-deep); color: #cfe7e1; font-size: 12.5px; text-align: center; padding: 6px 16px; letter-spacing: .02em; }
.demo-bar b { color: var(--gold); font-weight: 700; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(251, 250, 247, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20, 32, 39, .3); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: 3px; color: var(--g); text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.nav .links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav .links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.nav .links a:hover { background: var(--g-mist); color: var(--g); }
.nav .links a.active { color: var(--g); }
.nav .links .btn { margin-left: 8px; color: #fff; }
.nav .links .btn:hover { color: #fff; background: var(--g-dark); }
.menu-btn { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; font-size: 20px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav .links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 2px; box-shadow: var(--shadow); }
  .nav .links.open { display: flex; }
  .nav .links a { padding: 12px; }
  .nav .links .btn { margin: 8px 0 0; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; font-family: var(--body); transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--g); color: #fff; box-shadow: 0 6px 16px -6px rgba(15, 107, 92, .55); }
.btn-primary:hover { background: var(--g-dark); box-shadow: 0 10px 22px -8px rgba(15, 107, 92, .6); }
.btn-gold { background: var(--gold); color: #2b1d05; box-shadow: 0 6px 16px -6px rgba(242, 169, 59, .7); }
.btn-gold:hover { background: #f5b553; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cfd7dd; }
.btn-white { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-white:hover { background: rgba(255, 255, 255, .2); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #f1c9c4; }
.btn-danger:hover { background: #fdf1ef; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #1a8b75 0%, transparent 60%), linear-gradient(160deg, var(--g-deep) 0%, var(--g) 100%); color: #fff; padding: 72px 0 96px; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 19px; color: #d6ebe5; max-width: 560px; margin-bottom: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #e8f5f1; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 99px; margin-bottom: 22px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 169, 59, .25); }
.searchbox { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 18px; box-shadow: var(--shadow-lg); max-width: 600px; }
.searchbox input, .searchbox select { border: 0; background: transparent; font-size: 16px; padding: 12px 14px; outline: none; min-width: 0; }
.searchbox input { flex: 1.4; }
.searchbox select { flex: 1; border-left: 1px solid var(--line); border-radius: 0; color: var(--ink-2); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: #bfe0d7; font-size: 14px; font-weight: 600; }
.hero-trust span::before { content: "✓"; color: var(--gold); margin-right: 7px; font-weight: 800; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero-visual { display: none; } }
@media (max-width: 560px) { .searchbox { flex-direction: column; } .searchbox select { border-left: 0; border-top: 1px solid var(--line); } .hero { padding: 48px 0 64px; } }

/* Tarjeta visual del hero */
.hero-visual { position: relative; }
.mock { background: #fff; color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); }
.mock-req { background: var(--g-mist); border-radius: 14px; padding: 14px 16px; font-size: 14px; margin-bottom: 14px; }
.mock-req small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--g); margin-bottom: 4px; }
.mock-offer { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; animation: rise .6s both; }
.mock-offer:nth-child(3) { animation-delay: .15s; } .mock-offer:nth-child(4) { animation-delay: .3s; }
.mock-offer.best { border: 2px solid var(--g); background: #fbfefd; }
.mock-score { width: 44px; height: 44px; border-radius: 50%; background: var(--g); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 16px; flex: none; }
.mock-offer.gray .mock-score { background: #9aa6b1; }
.mock-offer b { font-size: 14px; display: block; } .mock-offer span { font-size: 12px; color: var(--muted); }
.mock-offer .p { margin-left: auto; font-weight: 800; font-family: var(--head); }
.float-badge { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; animation: float 5s ease-in-out infinite; }
.float-badge.a { top: -18px; right: -12px; } .float-badge.b { bottom: -20px; left: -18px; animation-delay: 1.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Secciones */
section.block { padding: 88px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 560px) { section.block { padding: 60px 0; } .g2, .g3 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); }
.card.hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5dde3; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--g-soft); margin-bottom: 16px; }
.icon-tile.gold { background: var(--gold-soft); }
.card h3 { font-size: 20px; }

/* Cómo funciona */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.how .card { padding: 34px; }
.how .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: var(--g-soft); color: var(--g); margin-bottom: 14px; }
.how .tag.gold { background: var(--gold-soft); color: #8a5a0b; }
.steps { list-style: none; padding: 0; margin: 20px 0 26px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--g); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.steps li::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 16px; } .steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* Categorías */
.cat { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 18px; }
.cat .icon-tile { margin: 0; width: 48px; height: 48px; font-size: 24px; }
.cat b { display: block; font-size: 15.5px; } .cat span { font-size: 13px; color: var(--muted); }

/* Franja de confianza */
.trust-band { background: linear-gradient(135deg, var(--g-deep), var(--g)); color: #fff; border-radius: 28px; padding: 54px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.trust-band h2 { font-size: clamp(26px, 3vw, 38px); }
.trust-band p { color: #cfe7e1; }
.trust-list { display: grid; gap: 14px; }
.trust-list div { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; }
.trust-list i { font-style: normal; font-size: 20px; }
.trust-list b { display: block; } .trust-list span { font-size: 14px; color: #cfe7e1; }
@media (max-width: 860px) { .trust-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Insignias */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--g-soft); color: var(--g); white-space: nowrap; }
.badge-gold { background: var(--gold-soft); color: #8a5a0b; }
.badge-gray { background: #eef1f4; color: var(--muted); }
.badge-red { background: #fdecea; color: var(--danger); }
.verified { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--g); }
.verified::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 14px; }

/* Páginas */
.page { padding: 48px 0 88px; }
.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 680px; }
.narrow { max-width: 820px; }

/* Formularios */
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid #d3dbe1; border-radius: 12px; background: #fff; width: 100%; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 4px rgba(15, 107, 92, .12); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; color: var(--ink); }
.checks label:has(input:checked) { border-color: var(--g); background: var(--g-mist); color: var(--g); }
.checks input { width: auto; accent-color: var(--g); }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14.5px; color: var(--ink); margin-bottom: 10px; }
.consent input { width: auto; margin-top: 3px; accent-color: var(--g); }

/* Toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar input { flex: 1; min-width: 220px; }
.toolbar select { width: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); font-family: var(--body); }
.chip.on { background: var(--g); border-color: var(--g); color: #fff; }

/* Tarjetas de producto */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product .thumb { height: 120px; display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, var(--g-mist), #fff); border-bottom: 1px solid var(--line); position: relative; }
.product .thumb .badge { position: absolute; top: 10px; left: 10px; }
.product .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h4 { font-size: 15.5px; margin: 0; line-height: 1.3; }
.product .sup { font-size: 13px; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.product .sup:hover { color: var(--g); }
.price { font-family: var(--head); font-weight: 800; font-size: 22px; }
.price-bs { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.product .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }

/* Resultados */
.result { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; padding: 22px; }
.result + .result { margin-top: 14px; }
.score { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 22px; color: #fff; background: conic-gradient(var(--g) calc(var(--v) * 1%), #d7e7e2 0); position: relative; }
.score::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--g); }
.score span { position: relative; }
.score.low::before { background: #8a97a6; }
.result.best { border: 2px solid var(--g); box-shadow: var(--shadow); }
.result .meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.result .total { text-align: right; }
.result .total b { font-family: var(--head); font-size: 24px; display: block; }
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; margin-top: 12px; }
.bar { font-size: 12px; color: var(--muted); }
.bar i { display: block; height: 6px; background: #edf1f3; border-radius: 4px; margin-top: 4px; overflow: hidden; }
.bar i span { display: block; height: 100%; background: linear-gradient(90deg, var(--g), #22a387); border-radius: 4px; }
@media (max-width: 640px) { .result { grid-template-columns: 52px 1fr; } .result .total { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; } .score { width: 52px; height: 52px; font-size: 18px; } .bars { grid-template-columns: repeat(2, 1fr); } }

/* Perfil de proveedor */
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.avatar { width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(135deg, var(--g), #1a8b75); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 30px; flex: none; box-shadow: var(--shadow); }
.avatar.sm { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 22px; }
.fact { background: var(--g-mist); border-radius: 14px; padding: 14px 16px; }
.fact small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.fact b { font-size: 15px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border: 0; }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { background: #f6f8f9; font-weight: 700; color: var(--ink-2); font-size: 13px; }
td.num, th.num { text-align: right; }
tr.up td { background: #eef9f2; } tr.down td { background: #fff6e8; } tr.new td { background: #eef4fd; }

/* Asistente */
.wizard-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; }
.wizard-steps span { font-size: 13px; font-weight: 700; color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; }
.wizard-steps span.on { color: var(--g); border-color: var(--g); }
.wizard-steps span.done { color: var(--ink); border-color: #8ccfc1; }
@media (max-width: 640px) { .wizard-steps span { font-size: 0; } .wizard-steps span::first-letter { font-size: 13px; } }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.drop { border: 2px dashed #c3ced8; border-radius: var(--r); padding: 30px; text-align: center; background: #fcfdfd; cursor: pointer; transition: all .15s; }
.drop.over { border-color: var(--g); background: var(--g-mist); }
.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.option-cards label { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; display: block; background: #fff; transition: all .15s; }
.option-cards input { width: auto; margin-right: 6px; accent-color: var(--g); }
.option-cards label:has(input:checked) { border-color: var(--g); background: var(--g-mist); }

/* Avisos */
.notice { padding: 14px 16px; border-radius: 12px; font-size: 14.5px; margin: 14px 0; }
.notice-info { background: #eaf2fb; color: #1d4f80; }
.notice-ok { background: #e7f6ee; color: #145c3b; }
.notice-warn { background: #fff4e0; color: #7a4d06; }
.notice-err { background: #fdecea; color: #8e2a20; }

/* Estadísticas */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px; }
.stat b { display: block; font-family: var(--head); font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }

/* Planes */
.tabs { display: inline-flex; background: #eef1f3; border-radius: 12px; padding: 4px; margin-bottom: 28px; }
.tabs button { border: 0; background: none; padding: 10px 18px; border-radius: 9px; font-weight: 700; cursor: pointer; font-family: var(--body); font-size: 15px; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--g); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.plan .amount { font-family: var(--head); font-size: 44px; font-weight: 800; margin: 8px 0 2px; }
.plan .amount small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .was { color: var(--muted); font-size: 14px; text-decoration: line-through; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--g); font-weight: 800; }

/* FAQ */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 22px; color: var(--g); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* Legal */
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal p, .legal li { color: var(--ink-2); }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(6, 30, 26, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; z-index: 60; animation: fade .15s; }
.modal { background: #fff; border-radius: 22px; width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .2s; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head .x { background: #f2f4f6; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--muted); flex: none; }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-body.chat { background: #f4f7f8; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.msg-row { display: flex; margin: 8px 0; } .msg-row.yo { justify-content: flex-end; }
.burbuja { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; background: #fff; border: 1px solid var(--line); white-space: pre-line; }
.yo .burbuja { background: var(--g); color: #fff; border-color: var(--g); border-bottom-right-radius: 4px; }
.msg-row:not(.yo) .burbuja { border-bottom-left-radius: 4px; }
.burbuja small { display: block; opacity: .6; font-size: 11px; margin-top: 4px; }
.cotizacion { background: #fff; border: 2px solid var(--g); border-radius: 16px; padding: 14px 16px; margin: 10px 0; font-size: 14px; }
.cotizacion table { font-size: 14px; } .cotizacion td { padding: 4px 0; border: 0; white-space: normal; }
.typing { color: var(--muted); font-size: 13px; font-style: italic; margin: 6px 2px; }
.demo-tag { font-size: 11px; font-weight: 800; color: #8a5a0b; background: var(--gold-soft); padding: 3px 8px; border-radius: 99px; }

/* Admin */
.admin-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.admin-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; position: sticky; top: 90px; }
.admin-nav button { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 11px 12px; border-radius: 10px; font: 600 14.5px var(--body); color: var(--ink-2); cursor: pointer; }
.admin-nav button.on { background: var(--g-mist); color: var(--g); }
.count { background: var(--gold); color: #2b1d05; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.app-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; margin: 14px 0; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } .admin-nav { position: static; display: flex; overflow-x: auto; } .admin-nav button { white-space: nowrap; } .kv { grid-template-columns: 1fr; } }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 80; animation: pop .2s; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); z-index: 40; transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Pie */
footer { background: var(--g-deep); color: #a9c9c1; padding: 64px 0 28px; font-size: 14.5px; margin-top: 0; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
footer a { color: #d7ece6; text-decoration: none; display: block; padding: 4px 0; }
footer a:hover { color: #fff; }
footer .logo { color: #fff; margin-bottom: 12px; }
footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer .cols { grid-template-columns: 1fr; } }

.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty .icon-tile { margin: 0 auto 14px; }
.reveal { animation: rise .5s both; }

.g-premio { grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 860px) { .g-premio { grid-template-columns: 1fr; } }

/* Chats (estilo mensajes directos) */
.dm { display: grid; grid-template-columns: 340px 1fr; height: min(72vh, 720px); min-height: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.dm-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.dm-list h3 { font-size: 18px; padding: 18px 18px 10px; margin: 0; }
.dm-item { display: flex; gap: 12px; align-items: center; padding: 12px 18px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; font: inherit; color: inherit; border-left: 3px solid transparent; }
.dm-item:hover { background: var(--g-mist); }
.dm-item.on { background: var(--g-mist); border-left-color: var(--g); }
.dm-item .info { min-width: 0; flex: 1; }
.dm-item b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-item .prev { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dm-item.unread b, .dm-item.unread .prev { color: var(--ink); font-weight: 700; }
.dm-item .when { font-size: 11.5px; color: var(--muted); align-self: flex-start; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--g); flex: none; }
.dm-conv { display: flex; flex-direction: column; min-width: 0; }
.dm-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dm-head .back { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; padding: 0 6px 0 0; color: var(--ink); }
.dm-msgs { flex: 1; overflow-y: auto; padding: 18px; background: #f6f8f9; display: flex; flex-direction: column; gap: 6px; }
.dm-msgs .msg-row { margin: 0; }
.dm-day { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.dm-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.dm-form textarea { resize: none; height: 46px; max-height: 120px; border-radius: 22px; padding: 12px 16px; }
.dm-form .btn { border-radius: 22px; }
.dm-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.nav-badge { background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.as-tag { font-size: 12px; background: var(--gold-soft); color: #8a5a0b; border-radius: 99px; padding: 3px 10px; font-weight: 700; }
@media (max-width: 760px) {
  .dm { grid-template-columns: 1fr; height: calc(100vh - 190px); }
  .dm.abierta .dm-list { display: none; }
  .dm:not(.abierta) .dm-conv { display: none; }
  .dm-head .back { display: block; }
}

body.en-chats .wa-float { display: none; }
