/* COTA · estilos de la landing (los componentes tienen su propio CSS con prefijo). */
:root {
  --cota-piedra: #D6D1C5;
  --cota-papel: #EDE9E1;
  --cota-carbon: #20201E;
  --cota-terracota: #8A4B33;
  --cota-fuente: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tinta-suave: #4a4943;
  --gris: #6b675f;
  --linea: rgba(32, 32, 30, .18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cota-papel); color: var(--cota-carbon); font-family: var(--cota-fuente); font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--cota-terracota); outline-offset: 3px; }

/* ES: se oculta hasta que i18n.js aplica los textos (evita el parpadeo del texto argentino) */
html.es-pend body { opacity: 0; animation: es-ok 0s linear 1.2s forwards; }
@keyframes es-ok { to { opacity: 1; } }

/* ---------- piezas comunes ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(4rem, 9vw, 8rem) 0; }
.sec--piedra { background: var(--cota-piedra); }
.sec--papel { background: var(--cota-papel); }
.sec--carbon { background: var(--cota-carbon); color: var(--cota-papel); }
.etq { font-size: 12px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--gris); margin-bottom: 20px; }
.sec--carbon .etq { color: #b9b4a8; }
.h2 { font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.1; letter-spacing: -.012em; max-width: 20ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 36px;
  background: var(--cota-carbon); color: var(--cota-papel); text-decoration: none;
  font: 500 12px/1 var(--cota-fuente); letter-spacing: 2.4px; text-transform: uppercase; text-align: center;
  transition: background-color .5s var(--ease), transform .5s var(--ease);
}
@media (hover: hover) { .btn:hover { background: #3b3a37; } }
.btn:active { transform: translateY(1px); }
.btn--claro { background: var(--cota-papel); color: var(--cota-carbon); }
@media (hover: hover) { .btn--claro:hover { background: #fff; } }

/* aparición: opacidad + 14 px (solo transform y opacity); sin JS o sin movimiento, todo visible */
.js .rv { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- 0 · barra superior ---------- */
.top { background: var(--cota-carbon); color: var(--cota-papel); text-align: center; padding: 11px var(--gutter); font-size: 12px; line-height: 12px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; }

/* medios de pago (texto + chip, sin imágenes externas) */
.pagos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-size: 13px; color: var(--tinta-suave); }
.pagos__chip { display: inline-block; border: 1px solid currentColor; padding: 5px 10px; font-weight: 500; font-size: 12px; letter-spacing: .06em; color: var(--cota-carbon); background: rgba(255, 255, 255, .5); }
.fig__pie { margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--gris); }

/* barra fija de compra (escritorio) */
.tb { display: none; }
@media (min-width: 861px) {
  .tb { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--cota-carbon); color: var(--cota-papel); transform: translate3d(0, -105%, 0); transition: transform .9s var(--ease); }
  .tb.is-on { transform: none; }
  .tb__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
  .tb__t { font-size: 15px; }
  .tb__t b { font-weight: 500; margin-left: 4px; }
  .tb__t small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #b9b4a8; margin-left: 14px; }
  .tb__r { display: flex; align-items: center; gap: 22px; }
  .tb .pagos { margin: 0; color: #d7d2c6; }
  .tb .pagos__chip { color: var(--cota-papel); background: none; }
  .tb .btn { background: var(--cota-papel); color: var(--cota-carbon); min-height: 44px; padding: 0 26px; }
}

/* ---------- 2 · dolores ---------- */
.dl__lista { list-style: none; padding: 0; margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 7vw, 112px); }
.dl__item { display: grid; grid-template-columns: 34px 1fr; column-gap: 18px; padding: 30px 0 34px; border-top: 1px solid var(--linea); }
.dl__n { font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--cota-terracota); padding-top: .55em; }
.dl__t { font-weight: 400; font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.3; }
.dl__d { grid-column: 2; margin-top: 10px; color: var(--tinta-suave); line-height: 1.65; max-width: 44ch; }

/* ---------- 3 · números ---------- */
.nm__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(28px, 5vw, 72px); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.nm__cap { margin-top: 20px; color: var(--tinta-suave); line-height: 1.6; max-width: 30ch; font-size: .98rem; }

/* ---------- 7 · qué incluye ---------- */
.incl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 104px); align-items: center; }
.incl__lista { list-style: none; padding: 0; margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.incl__lista li { padding: 20px 0 22px; border-top: 1px solid var(--linea); }
.incl__t { font-weight: 500; font-size: 1.02rem; }
.incl__d { margin-top: 6px; color: var(--tinta-suave); line-height: 1.6; font-size: .96rem; max-width: 46ch; }
.incl__mock { --py: 0; position: relative; aspect-ratio: 1 / 1.1; width: 100%; max-width: 620px; justify-self: end; }
.incl__mock figure { position: absolute; background: #fff; box-shadow: 0 4px 24px rgba(61, 52, 54, .14); }
.incl__mock img { width: 100%; }
.incl__cat { left: 0; top: 0; width: 58%; transform: translate3d(0, calc(var(--py) * -.5px), 0); }
.incl__lam { right: 0; top: 12%; width: 68%; transform: translate3d(0, calc(var(--py) * -1px), 0); }
.incl__gui { right: 4%; bottom: 0; width: 34%; transform: translate3d(0, calc(var(--py) * -1.7px), 0); }
@media (prefers-reduced-motion: reduce) { .incl__mock figure { transform: none; } }

/* ---------- 8 · oferta ---------- */
.of { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 104px); align-items: center; }
.of__incl { margin-top: 26px; color: var(--tinta-suave); line-height: 1.7; max-width: 38ch; }
.of__card { background: #F4F1EA; border: 1px solid var(--linea); padding: clamp(28px, 5vw, 56px); }
.of__antes { font-size: 1rem; color: var(--gris); text-decoration: line-through; text-decoration-thickness: 1px; }
.of__precio { margin-top: 4px; white-space: nowrap; font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.of__card .btn { margin-top: 30px; width: 100%; }
.of__meta { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 10px; font-size: .94rem; color: var(--tinta-suave); }
.of__meta li { display: flex; gap: 12px; align-items: baseline; }
.of__meta li::before { content: ''; flex: 0 0 14px; height: 1px; background: var(--cota-terracota); transform: translateY(-4px); }
.of__meta strong { font-weight: 500; color: var(--cota-carbon); }

/* ---------- 9 · bonos ---------- */
.bn__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin-top: clamp(2.5rem, 5vw, 4rem); }
.bn__c { background: var(--cota-papel); padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--linea); }
.bn__n { font-size: 12px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--cota-terracota); }
.bn__t { margin-top: 28px; font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.bn__d { margin-top: 12px; color: var(--tinta-suave); line-height: 1.65; font-size: .96rem; }


/* ---------- 11 · criterios ---------- */
.cr__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(28px, 5vw, 72px); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.cr__cap { margin-top: 20px; color: var(--tinta-suave); line-height: 1.6; max-width: 30ch; font-size: .98rem; }
.cr__apoyo { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 30px; border-top: 1px solid var(--linea); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(28px, 5vw, 72px); }
.cr__apoyo p { color: var(--tinta-suave); line-height: 1.65; }
.cr__apoyo .cr__nota { color: var(--cota-carbon); }

/* ---------- 12 · garantía ---------- */
.ga { text-align: left; }
.ga .h2 { color: var(--cota-papel); }
.ga__p { margin-top: 26px; max-width: 52ch; color: #d7d2c6; line-height: 1.7; font-size: 1.05rem; }

/* ---------- 13 · preguntas frecuentes ---------- */
.fq__lista { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 860px; }
.fq__i { border-top: 1px solid var(--linea); }
.fq__i:last-child { border-bottom: 1px solid var(--linea); }
.fq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 14px 0; font-weight: 400; font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.35; }
.fq__q::-webkit-details-marker { display: none; }
.fq__q::after { content: ''; flex: 0 0 14px; height: 14px; background: linear-gradient(var(--cota-carbon), var(--cota-carbon)) center / 100% 1px no-repeat, linear-gradient(var(--cota-carbon), var(--cota-carbon)) center / 1px 100% no-repeat; transition: transform .7s var(--ease); }
.fq__i[open] .fq__q::after { transform: rotate(135deg); }
.fq__r { padding: 0 0 26px; color: var(--tinta-suave); line-height: 1.7; max-width: 62ch; }
.fq__i[open] .fq__r { animation: fq-in .9s var(--ease) both; }
@keyframes fq-in { from { opacity: 0; transform: translate3d(0, -8px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fq__i[open] .fq__r { animation: none; } .fq__q::after { transition: none; } }

/* ---------- 14 · cierre y pie ---------- */
.ci { text-align: left; }
.ci .h2 { max-width: 22ch; }
.ci__p { margin-top: 24px; color: var(--tinta-suave); max-width: 46ch; line-height: 1.65; }
.ci__fila { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; }
.ci__precio { font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
.ci__precio s { font-size: .5em; color: var(--gris); margin-right: .6em; text-decoration-thickness: 1px; }
.pie { background: var(--cota-carbon); color: #b9b4a8; padding: 28px 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- barra fija de compra (celular) ---------- */
.sb { display: none; }
@media (max-width: 860px) {
  .sb { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--cota-carbon); color: var(--cota-papel); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    transform: translate3d(0, 105%, 0); transition: transform .9s var(--ease); }
  .sb.is-on { transform: none; }
  .sb__p { display: grid; line-height: 1.15; }
  .sb__p small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #b9b4a8; }
  .sb__p b { font-weight: 400; font-size: 1.25rem; }
  .sb .btn { min-height: 46px; padding: 0 20px; letter-spacing: 2px; white-space: nowrap; }
  .sb__p small { white-space: nowrap; }
  .pie { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- responsive general ---------- */
@media (max-width: 860px) {
  .incl, .of { grid-template-columns: 1fr; }
  .incl__mock { justify-self: center; max-width: 480px; }
  .bn__grid, .cr__grid, .nm__grid { grid-template-columns: 1fr; }
  .op__grid { grid-template-columns: 1fr; }
  .cr__apoyo { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dl__lista { grid-template-columns: 1fr; }
  .nm__grid { gap: 44px; }
}

/* ---------- muestra gratis ---------- */
[hidden] { display: none !important; }
.ms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ms__p { margin-top: 22px; max-width: 40ch; color: var(--tinta-suave); line-height: 1.65; }
.ms__caja { background: #F4F1EA; border: 1px solid var(--linea); padding: clamp(24px, 4vw, 44px); }
.ms__lab { display: block; font: 500 12px/1 var(--cota-fuente); letter-spacing: .25em; text-transform: uppercase; color: var(--gris); margin-bottom: 14px; }
.ms__fila { display: flex; flex-wrap: wrap; gap: 12px; }
.ms__in { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid var(--cota-carbon); border-radius: 0; background: #fff; color: var(--cota-carbon); font: 400 16px/1.2 var(--cota-fuente); }
.ms__in:focus-visible { outline: 2px solid var(--cota-terracota); outline-offset: 2px; }
.ms__fila .btn { flex: 0 0 auto; }
.ms__msg { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.ms__err { color: var(--cota-terracota); }
.ms__env { color: var(--gris); }
.ms__okt { font-weight: 500; margin-bottom: 18px; }
.ms__cta { margin-top: 22px; color: var(--tinta-suave); line-height: 1.6; }
.ms__go { color: var(--cota-carbon); font-weight: 500; text-underline-offset: 4px; }
.ms__ok { animation: fq-in .9s var(--ease) both; }

/* ---------- fotos del libro ---------- */
.libro { margin: 0; }
.libro img { width: 100%; height: auto; display: block; }
.libro--ancho { margin-top: clamp(3rem, 6vw, 5rem); }
.libro--ancho img { max-height: 74vh; object-fit: cover; }
.of__fig { margin: 0 0 26px; }
.of__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; display: block; }
.fq__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.fq__grid .fq__lista { margin-top: 0; max-width: none; }
.fq__fig { position: sticky; top: 96px; }
@media (max-width: 860px) {
  .ms, .fq__grid { grid-template-columns: 1fr; }
  .fq__fig { position: static; }
}
@media (max-width: 480px) { .ms__fila .btn { width: 100%; } }
@media (max-width: 480px) { .top { letter-spacing: .16em; padding-left: 8px; padding-right: 8px; } }

/* ---------- hecho para el trabajo de estudio ---------- */
.est .wrap { display: grid; gap: clamp(12px, 2vw, 24px); }
.est__f1 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.est__fig { margin: 0; overflow: hidden; background: var(--cota-piedra); }
.est__fig img { width: 100%; height: 100%; display: block; object-fit: cover; }
.est__fig--v { aspect-ratio: 2 / 3; }
.est__txt .h2 { max-width: 14ch; }
.est__p { margin-top: 26px; max-width: 46ch; color: var(--tinta-suave); line-height: 1.75; font-size: 1.02rem; }
.est__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font: 500 12px/1 var(--cota-fuente); letter-spacing: .25em; text-transform: uppercase; color: var(--cota-carbon); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.est__mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); margin-top: clamp(1rem, 4vw, 4rem); }
.est__mosaico .est__fig--w { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.est__mosaico .est__fig--p { aspect-ratio: 4 / 5; }
.est__banda { margin: clamp(12px, 2vw, 24px) 0 0; overflow: hidden; aspect-ratio: 21 / 9; background: var(--cota-piedra); }
.est__banda img { width: 100%; height: 100%; object-fit: cover; display: block; }
.est .est__fig.rv, .est .est__banda.rv { transform: translate3d(0, 12px, 0); }
.est .est__fig.rv.is-in, .est .est__banda.rv.is-in { transform: none; }
@media (max-width: 860px) {
  .est__f1 { grid-template-columns: 1fr; gap: 32px; }
  .est__fig--v { aspect-ratio: 4 / 5; }
  .est__banda { aspect-ratio: 16 / 9; }
}

/* ---------- qué incluye (grupos) ---------- */
.incl { align-items: start; }
.incl__mock { position: sticky; top: 90px; }
.incl__g { margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.incl__gt { font-size: 12px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--cota-terracota); }
.incl__g .incl__lista { margin-top: 8px; }
.sellos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sellos span { border: 1px solid var(--cota-carbon); padding: 5px 11px; font-size: 12px; font-weight: 500; letter-spacing: .08em; border-radius: 999px; white-space: nowrap; }
.sellos--of { margin-top: 18px; }
@media (max-width: 860px) { .incl__mock { position: relative; top: auto; } }

/* ---------- reseñas ---------- */
.rating { font-size: 14px; font-weight: 500; color: var(--cota-terracota); letter-spacing: .02em; }
.rating[hidden], .of__rev[hidden] { display: none; }
.of .rating { margin-top: 2px; }
.op__resumen { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 22px; }
.op__estrellas { color: var(--cota-terracota); letter-spacing: .12em; font-size: 1.1rem; }
.op__prom { font-weight: 500; font-size: 1.4rem; }
.op__n { color: var(--tinta-suave); font-size: .95rem; }
.op__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px); margin-top: clamp(1.8rem, 4vw, 3rem); }
.op__c { margin: 0; background: #F4F1EA; border: 1px solid var(--linea); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.op__e { color: var(--cota-terracota); letter-spacing: .14em; font-size: 1rem; }
.op__t { margin: 0; line-height: 1.65; font-size: 1rem; flex: 1; }
.op__p { display: grid; gap: 2px; font-size: .9rem; color: var(--tinta-suave); }
.op__p b { color: var(--cota-carbon); font-weight: 500; }
@media (max-width: 860px) {
  .op__lista { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .op__lista::-webkit-scrollbar { display: none; }
  .op__c { flex: 0 0 82%; scroll-snap-align: center; }
}
.op[hidden] { display: none; }
