@font-face {
  font-family: "Schibsted Grotesk";
  src: url(assets/fonts/schibsted-grotesk-latin.woff2) format("woff2");
  font-weight: 400 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
:root {
  /* marca Caoba */
  --caoba: #5C1A24; --caoba-hondo: #2E0D13; --rosa: #F5A3B7; --hielo: #F1E8EC; --tinta: #1E0B10;
  --bg: var(--hielo); --surface: #E8DCE1; --ink: var(--tinta); --muted: #5E4248; --accent: var(--rosa); --accent-ink: var(--caoba);
  --m: clamp(16px, 3.2vw, 32px);
  --t-small: 14px; --t-body: 17px; --t-lead: clamp(18px, 1.6vw, 21px);
  --t-head: clamp(34px, 4.6vw, 62px); --t-display: clamp(40px, 6.4vw, 96px);
  --radio: 18px;
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--caoba);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-size: var(--t-body); line-height: 1.5; font-weight: 500; -webkit-font-smoothing: antialiased; }
::selection { background: var(--rosa); color: var(--caoba); }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; line-height: 1; hyphens: none; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 4px; }
.caoba :focus-visible, .hero :focus-visible { outline-color: var(--hielo); }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--hielo); color: var(--caoba); padding: 10px 14px; z-index: 10; border-radius: 8px; }
.saltar:focus { left: var(--m); }

/* botones: rectángulo de 18 px, rosa con texto caoba (manual de marca) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--radio);
  background: var(--rosa); color: var(--caoba); font: 800 17px/1 inherit; font-family: inherit; text-decoration: none; border: 2px solid var(--rosa);
  cursor: pointer; transition: background .2s, color .2s, transform .2s cubic-bezier(.16,1,.3,1); }
.btn:hover { background: var(--hielo); border-color: var(--hielo); }
.btn:active { transform: scale(.98); }
.btn-peq { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-borde { background: transparent; color: var(--caoba); border-color: var(--caoba); }
.btn-borde:hover { background: var(--caoba); color: var(--hielo); border-color: var(--caoba); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-texto { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; min-height: 44px; padding: 0 8px; cursor: pointer; text-decoration: underline; }

/* nav plana, no fija */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 18px var(--m); color: var(--hielo); }
.marca { font-weight: 900; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; }
.marca span, .pie-marca span { color: var(--rosa); }
.nav nav { display: flex; gap: 24px; margin-left: auto; font-weight: 700; font-size: 15px; }
.nav nav a { text-decoration: none; padding: 12px 0; }
.nav nav a:hover { text-decoration: underline; }

/* ---------- hero con la escena 3D ---------- */
.hero { height: 420vh; background: var(--caoba); color: var(--hielo); position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-poster img, #lienzo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#lienzo { opacity: 0; transition: opacity .3s; }
#lienzo.listo { opacity: 1; }
/* velo caoba bajo el titular: las tarjetas pasan por detrás sin ensuciar la lectura */
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--caoba) 0, var(--caoba) 30%, rgba(92,26,36,0) 54%); pointer-events: none; }
.hero-texto { z-index: 1; }
.hero-texto { position: absolute; left: var(--m); bottom: clamp(32px, 9vh, 96px); width: min(50%, 760px); display: grid; gap: 26px; }
.hero h1 { font-size: clamp(40px, 5vw, 80px); margin-left: -0.04em; line-height: .96; }
.fases { display: grid; }
.fase { grid-area: 1 / 1; font-size: var(--t-lead); line-height: 1.45; max-width: 40ch; opacity: 0; transform: translateY(8px);
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1); }
.fase.on { opacity: 1; transform: none; }
.hero-accion { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.precio-linea { font-size: var(--t-small); }
.precio-linea strong { color: var(--rosa); font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- campos ---------- */
.campo { padding: clamp(80px, 12vw, 200px) var(--m); }
.claro { background: var(--hielo); color: var(--tinta); }
.caoba { background: var(--caoba); color: var(--hielo); --muted: #D9C3CA; }
.rosa { background: var(--rosa); color: var(--tinta); }
.tit-seccion, .campo h2 { font-size: var(--t-head); margin-left: -0.03em; }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 44ch; }
.nota { font-size: var(--t-small); color: var(--muted); max-width: 52ch; }
.fila { display: grid; grid-template-columns: 1fr; gap: 48px; }
.col-tit { display: grid; gap: 22px; align-content: start; }
@media (min-width: 900px) {
  .fila { grid-template-columns: 5fr 7fr; gap: 6vw; align-items: center; }
}

/* antes / después */
.comparador { position: relative; aspect-ratio: 9 / 16; width: min(100%, 420px); max-height: 82vh; justify-self: center; border-radius: 22px; overflow: hidden; background: var(--tinta); }
@media (min-width: 900px) { .comparador { justify-self: start; margin-left: 8%; } }
.comparador video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-despues { clip-path: inset(0 0 0 var(--x)); }
.linea { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: var(--rosa); pointer-events: none; }
.linea::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 14px; background: var(--rosa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C1A24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat; }
.comparador input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.comparador:has(input:focus-visible) .linea::after { outline: 3px solid var(--tinta); outline-offset: 2px; }
.etq { position: absolute; top: 14px; padding: 6px 10px; border-radius: 10px; font-size: var(--t-small); font-weight: 800; pointer-events: none; }
.etq-a { left: 14px; background: var(--hielo); color: var(--tinta); }
.etq-d { right: 14px; background: var(--caoba); color: var(--hielo); }

/* cómo funciona: tres filas, verbo a la izquierda */
.pasos { list-style: none; margin: clamp(40px, 6vw, 88px) 0 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.pasos li { display: grid; gap: 14px; }
.pasos h3 { font-size: var(--t-display); color: var(--hielo); margin-left: -0.04em; }
.pasos li:last-child h3 { color: var(--rosa); }
.pasos p { font-size: var(--t-lead); max-width: 44ch; color: var(--muted); }
@media (min-width: 900px) {
  .pasos li { grid-template-columns: 7fr 5fr; align-items: end; gap: 6vw; }
  .pasos li:nth-child(2) { padding-left: 8vw; }
  .pasos li:nth-child(3) { padding-left: 16vw; }
}

/* precios */
.precios-cab { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.planes { display: grid; gap: 16px; }
.plan { display: grid; gap: 10px; align-content: start; padding: 30px 26px; border-radius: 20px; background: var(--surface); }
.plan h3 { font-size: 26px; }
.cifra { font-size: clamp(52px, 6vw, 80px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 8px; }
.cifra small { font-size: .32em; letter-spacing: 0; font-weight: 800; }
.iva { font-size: var(--t-small); color: var(--muted); font-weight: 600; }
.plan ul { margin: 14px 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 3px; border-radius: 2px; background: var(--caoba); }
.plan .btn { margin-top: auto; }
.plan-fuerte { background: var(--caoba); color: var(--hielo); --muted: #D9C3CA; }
.plan-fuerte li::before { background: var(--rosa); }
.plan-fuerte h3::after { content: "El que más recomendamos"; display: block; margin-top: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--rosa); }
@media (min-width: 900px) {
  .planes { grid-template-columns: 1fr 1.25fr 1fr; align-items: stretch; }
  .plan-fuerte { padding: 40px 34px; margin-block: -18px; }
}
.desistimiento { margin-top: 34px; max-width: 760px; display: grid; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--caoba); }
.pendiente { font-size: 13px; font-weight: 800; color: #8A5A00; background: #FFE7A8; padding: 4px 8px; border-radius: 6px; justify-self: start; }
.aviso-pago { font-size: 15px; font-weight: 700; color: var(--caoba); min-height: 1.4em; }
.comparativa { margin-top: clamp(72px, 9vw, 140px); display: grid; gap: 22px; }
.comparativa h3 { font-size: clamp(24px, 2.6vw, 34px); max-width: 22ch; }
.comparativa table { border-collapse: collapse; width: 100%; max-width: 1100px; font-size: 16px; }
.comparativa th, .comparativa td { text-align: left; padding: 14px 16px 14px 0; vertical-align: top; }
.comparativa thead th { font-size: var(--t-small); color: var(--muted); font-weight: 700; }
.comparativa tbody th { font-weight: 700; color: var(--muted); width: 22%; }
.comparativa tbody tr:nth-child(odd) { background: var(--surface); }
.comparativa td:last-child, .comparativa thead th:last-child { font-weight: 800; color: var(--caoba); }
.comparativa tbody th, .comparativa td:first-of-type { padding-left: 14px; }
@media (max-width: 700px) {
  .comparativa { overflow-x: auto; }
  .comparativa table { min-width: 620px; }
}

/* garantía: una frase a todo ancho */
#garantia { display: grid; gap: 28px; padding-block: clamp(96px, 14vw, 220px); }
.garantia-tit { font-size: var(--t-display) !important; max-width: 13ch; margin-left: -0.04em; line-height: .96; }
#garantia .lead { justify-self: end; max-width: 40ch; }

/* formulario de muestra */
.pedido { --muted: #5E4248; background: var(--hielo); color: var(--tinta); border-radius: 22px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; }
.progreso { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.progreso span { display: block; height: 100%; width: calc(var(--p, 1) / 3 * 100%); background: var(--caoba); transition: width .4s cubic-bezier(.16,1,.3,1); }
.paso-de { font-size: var(--t-small); font-weight: 700; color: var(--muted); }
.paso { border: 0; margin: 0; padding: 0; display: none; gap: 18px; }
.paso.on { display: grid; }
.paso legend { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 6px; padding: 0; }
.paso legend small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.paso label:not(.check):not(.op):not(.subida) { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.paso input[type=text], .paso input[type=email], .paso input[type=url], .paso textarea {
  font: 500 17px/1.4 inherit; font-family: inherit; color: var(--tinta); background: #fff; border: 2px solid #D8C8CE; border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%; }
.paso input:focus, .paso textarea:focus { border-color: var(--caoba); outline: none; }
::placeholder { color: #806A70; }
.subida { position: relative; display: grid; gap: 8px; place-items: center; text-align: center; padding: 34px 18px; border-radius: 16px; background: var(--surface); cursor: pointer; border: 2px dashed #B99BA4; }
.subida:hover, .subida.encima { border-color: var(--caoba); }
.subida input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.subida-txt b { color: var(--caoba); text-decoration: underline; }
.subida-lista { font-size: var(--t-small); font-weight: 700; color: var(--caoba); }
.opciones { display: grid; gap: 8px; }
.op { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 700; min-height: 50px; }
.op input { accent-color: var(--caoba); width: 20px; height: 20px; margin: 0; }
.op:has(input:checked) { background: var(--caoba); color: var(--hielo); }
.op:has(input:checked) input { accent-color: var(--rosa); }
.error { color: #A3122B; font-weight: 700; font-size: 15px; min-height: 0; }
.error:empty { display: none; }
.botones { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-direction: row-reverse; margin-top: 4px; }
.pedido .btn { background: var(--caoba); color: var(--hielo); border-color: var(--caoba); }
.pedido .btn:hover { background: var(--tinta); border-color: var(--tinta); }
.hecho { display: grid; gap: 10px; padding: 20px 0; }
.hecho[hidden], .progreso[hidden], .paso-de[hidden] { display: none; }
.hecho h3 { font-size: 40px; color: var(--caoba); }
.caoba .nota { color: var(--muted); }

/* FAQ */
.faq { margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { #preguntas { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: start; } #preguntas .faq { margin-top: 0; } }
.faq details { background: var(--surface); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 800; font-size: 19px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 3px solid var(--caoba); border-bottom: 3px solid var(--caoba); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 22px; max-width: 62ch; color: var(--muted); }

/* cierre */
.pie { background: var(--tinta); color: var(--hielo); padding: clamp(64px, 9vw, 140px) var(--m) 36px; display: grid; gap: 20px; overflow: hidden; }
.pie-marca { font-weight: 900; font-size: clamp(72px, 21vw, 340px); letter-spacing: -0.05em; line-height: .85; margin-left: -0.06em; }
.pie-lema { font-size: var(--t-lead); color: #D9C3CA; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 15px; }
.pie-enlaces a { padding: 10px 0; }

/* ---------- móvil ---------- */
@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav { justify-content: space-between; }
  .hero { height: 330vh; }
  .hero-texto { width: auto; right: var(--m); bottom: 24px; gap: 16px; }
  .stage::after { background: linear-gradient(0deg, var(--caoba) 0, var(--caoba) 30%, rgba(92,26,36,0) 52%); }
  .hero h1 { font-size: 36px; }
  .plan-fuerte { order: -1; }
  .fase { font-size: 17px; }
  .hero-accion .btn { width: 100%; }
  .campo { padding-block: 88px; }
  .garantia-tit { font-size: 46px !important; }
  #garantia .lead { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .stage { position: relative; }
  .fase { transition: none; }
}

/* Black Friday (23-30 nov 2026): franja fija abajo + nota en el plan Uno. Visibles solo si app.js les quita [hidden]. */
[data-bf][hidden] { display: none !important; }
.bf { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 12px var(--m); background: var(--rosa); color: var(--caoba-hondo); font-size: 15px; line-height: 1.3; box-shadow: 0 -8px 24px rgba(46,13,19,.28); }
.bf p { margin: 0; }
.bf a { font-weight: 800; color: var(--caoba); white-space: nowrap; text-underline-offset: 3px; }
.bf-corta { display: none; }
.con-bf { padding-bottom: 64px; }
.bf-plan { font-size: 15px; line-height: 1.4; padding: 10px 14px; border-radius: 12px; background: var(--rosa); color: var(--caoba-hondo); }
.bf-plan a { color: var(--caoba); font-weight: 700; }
@media (max-width: 760px) {
  .bf { justify-content: space-between; font-size: 14px; gap: 12px; }
  .bf-larga { display: none; } .bf-corta { display: inline; }
  .con-bf { padding-bottom: 76px; }
}
