/* =============================================================
   TRUENO — Landing de producto (tema oscuro)
   Se carga DESPUÉS de styles.css. No redefine nada global:
   todo cuelga de .t-page o del prefijo .t-, así que el resto
   del sitio no se entera de que este archivo existe.
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
.t-page {
  /* Negros de la foto del producto, no negro puro: el #000 sobre
     pantalla OLED come el detalle de la suela. */
  --t-bg:      #0B0B0C;
  --t-bg-2:    #141416;
  --t-bg-3:    #1C1C1F;

  --t-ink:     #F4F2EF;
  --t-ink-2:   rgba(244, 242, 239, .66);
  --t-ink-3:   rgba(244, 242, 239, .40);

  /* Ámbar sacado de la luz cálida del hero (#C08050–#D09060),
     subido en luminosidad para que aguante texto negro encima. */
  --t-amber:   #E29A4E;
  --t-amber-h: #F2AC62;
  --t-amber-s: rgba(226, 154, 78, .14);

  --t-line:    rgba(244, 242, 239, .12);
  --t-line-2:  rgba(244, 242, 239, .22);

  --t-sticky-h: 68px;

  background: var(--t-bg);
  color: var(--t-ink);
}

.t-page ::selection { background: var(--t-amber); color: #0B0B0C; }

/* En móvil la barra fija de compra tapa el final de la página. */
@media (max-width: 959px) {
  .t-page { padding-bottom: var(--t-sticky-h); }
}

/* =============================================================
   2. TIPOGRAFÍA Y PIEZAS COMUNES
   ============================================================= */
.t-section { padding: clamp(3rem, 9vw, 5.5rem) 0; }
.t-section--alt { background: var(--t-bg-2); }

.t-eyebrow {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t-amber);
  margin-bottom: .75rem;
}

.t-h2 {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 5.5vw, 2.375rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--t-ink);
  margin-bottom: 1.5rem;
}

.t-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--t-ink-2);
  max-width: 46ch;
}

/* =============================================================
   3. HERO
   ============================================================= */
.t-hero {
  padding-top: calc(var(--nav-h) + 1rem);
  padding-bottom: clamp(2rem, 6vw, 3rem);
  background:
    radial-gradient(120% 90% at 50% 0%, #17171A 0%, var(--t-bg) 62%);
}

.t-hero-inner { display: grid; gap: 1.25rem; }

.t-hero-media {
  position: relative;
  /* Altura fija desde el primer pintado: sin CLS y sin comerse
     la pantalla dentro del navegador de Instagram. */
  height: clamp(150px, 24svh, 320px);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--t-bg-3);
}

.t-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  display: block;
}

.t-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 7.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.t-claim {
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--t-ink-2);
  max-width: 40ch;
  margin-bottom: 1.125rem;
}

/* ── Precio ── */
.t-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: 1.25rem; }
.t-price-num {
  font-family: var(--sans);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.t-price-meta { font-size: .8125rem; color: var(--t-ink-2); line-height: 1.4; }

/* =============================================================
   4. SELECTOR DE TALLA
   ============================================================= */
.t-sizes { border: 0; padding: 0; margin: 0 0 1.125rem; }

.t-sizes-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .625rem;
}
.t-sizes-legend {
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  color: var(--t-ink); padding: 0;
}
.t-sizes-help {
  font-size: .75rem; color: var(--t-ink-3);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  font-family: var(--sans);
}
@media (hover: hover) { .t-sizes-help:hover { color: var(--t-amber); } }

.t-size-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .375rem; }

.t-size {
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--t-ink);
  background: var(--t-bg-3);
  border: 1.5px solid var(--t-line);
  border-radius: var(--r-sm);
  padding: .6875rem 0;
  cursor: pointer;
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out), color .15s var(--ease-out);
}
@media (hover: hover) { .t-size:hover { border-color: var(--t-line-2); } }
.t-size[aria-pressed="true"] {
  background: var(--t-amber);
  border-color: var(--t-amber);
  color: #0B0B0C;
  font-weight: 700;
}
.t-size:focus-visible { outline: 2px solid var(--t-amber); outline-offset: 2px; }

/* Parpadeo cuando alguien intenta comprar sin elegir talla. */
@keyframes t-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,154,78,0); }
  35%      { box-shadow: 0 0 0 4px rgba(226,154,78,.45); }
}
.t-sizes.is-flash .t-size-grid {
  border-radius: var(--r-sm);
  animation: t-flash .55s var(--ease-out) 2;
}

.t-size-note { font-size: .75rem; color: var(--t-ink-3); margin-top: .5rem; line-height: 1.45; }

/* =============================================================
   5. BOTÓN DE COMPRA
   ============================================================= */
.t-buy {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #0B0B0C;
  background: var(--t-amber);
  border: 0;
  border-radius: var(--r-sm);
  padding: 1.0625rem 1.5rem;
  cursor: pointer;
  transition: background .18s var(--ease-out), transform .15s var(--ease-out);
}
@media (hover: hover) { .t-buy:hover { background: var(--t-amber-h); transform: translateY(-1px); } }
.t-buy:active { transform: translateY(0); }
.t-buy:focus-visible { outline: 2px solid var(--t-amber); outline-offset: 3px; }
.t-buy[disabled] { opacity: .55; cursor: progress; }

.t-buy-note {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: .75rem; color: var(--t-ink-3); margin-top: .75rem; text-align: center;
}
.t-buy-note svg { flex-shrink: 0; opacity: .7; }

/* Avisos (sin talla, pago no disponible…) */
.t-warn {
  display: none;
  align-items: flex-start; gap: .5rem;
  font-size: .8125rem; line-height: 1.5;
  color: #FFD9A8;
  background: var(--t-amber-s);
  border: 1px solid rgba(226,154,78,.34);
  border-left: 3px solid var(--t-amber);
  border-radius: var(--r-sm);
  padding: .75rem .875rem;
  margin-top: .875rem;
}
.t-warn.is-on { display: flex; }

/* =============================================================
   6. GALERÍA
   ============================================================= */
.t-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }

.t-shot {
  /* Las fotos de estudio vienen sobre blanco: en vez de recortarlas,
     se presentan como fichas blancas sobre el fondo oscuro. */
  background: #fff;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin: 0;
}
.t-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================================================
   7. VÍDEO (fachada: no carga nada de Vimeo hasta pulsar)
   ============================================================= */
.t-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--t-bg-3);
  max-width: 900px;
}
.t-video-frame img,
.t-video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
.t-video-frame img { object-fit: cover; }

.t-video-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .875rem;
  background: rgba(11,11,12,.42);
  border: 0; cursor: pointer;
  color: var(--t-ink);
  font-family: var(--sans);
  transition: background .2s var(--ease-out);
}
@media (hover: hover) { .t-video-play:hover { background: rgba(11,11,12,.25); } }
.t-video-play:focus-visible { outline: 2px solid var(--t-amber); outline-offset: -4px; }

.t-video-play span[aria-hidden] {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--t-amber); color: #0B0B0C;
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.t-video-note { font-size: .75rem; color: rgba(244,242,239,.85); max-width: 30ch; text-align: center; line-height: 1.45; }

/* =============================================================
   8. BENEFICIOS
   ============================================================= */
.t-benefits { display: grid; gap: .75rem; }

.t-benefit {
  background: var(--t-bg-2);
  border: 1px solid var(--t-line);
  border-radius: var(--r-md);
  padding: 1.375rem 1.25rem;
}
.t-section--alt .t-benefit { background: var(--t-bg-3); }

.t-benefit-tag {
  display: inline-block;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--t-amber);
  background: var(--t-amber-s);
  border-radius: 999px;
  padding: .25rem .625rem;
  margin-bottom: .75rem;
}
.t-benefit h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; margin-bottom: .4rem; }
.t-benefit p  { font-size: .875rem; line-height: 1.6; color: var(--t-ink-2); }

/* =============================================================
   9. FICHA TÉCNICA
   ============================================================= */
.t-specs { width: 100%; border-collapse: collapse; font-size: .875rem; }
.t-specs th, .t-specs td { text-align: left; vertical-align: top; padding: .8125rem 0; border-bottom: 1px solid var(--t-line); }
.t-specs th {
  font-weight: 600; color: var(--t-ink-3);
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  width: 38%; padding-right: 1rem;
}
.t-specs td { color: var(--t-ink-2); line-height: 1.55; }

.t-marks { display: grid; gap: .5rem; margin-top: 1.5rem; }
.t-mark { display: grid; grid-template-columns: 3.25rem 1fr; gap: .875rem; align-items: start; }
.t-mark dt {
  font-weight: 700; font-size: .8125rem; color: #0B0B0C;
  background: var(--t-amber); border-radius: var(--r-sm);
  padding: .3125rem 0; text-align: center;
}
.t-mark dd { font-size: .8125rem; line-height: 1.5; color: var(--t-ink-2); margin: 0; padding-top: .25rem; }

/* =============================================================
   10. GARANTÍAS
   ============================================================= */
.t-trust { display: grid; gap: .75rem; }
.t-trust-item { display: grid; grid-template-columns: 2.25rem 1fr; gap: .875rem; align-items: start; }
.t-trust-item svg { color: var(--t-amber); margin-top: .1rem; }
.t-trust-item h3 { font-size: .9375rem; font-weight: 600; margin-bottom: .25rem; }
.t-trust-item p  { font-size: .8125rem; line-height: 1.55; color: var(--t-ink-2); }

/* =============================================================
   10b. DESCUENTO POR VOLUMEN
   ============================================================= */
.t-volumen {
  display: grid;
  gap: 1.5rem;
  background: var(--t-amber-s);
  border: 1px solid rgba(226, 154, 78, .3);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 5vw, 2.75rem);
}

.t-volumen-titulo { margin-bottom: .75rem; }

.t-volumen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--t-amber);
  background: transparent;
  border: 1.5px solid var(--t-amber);
  border-radius: var(--r-sm);
  padding: .875rem 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
@media (hover: hover) {
  .t-volumen-btn:hover { background: var(--t-amber); color: #0B0B0C; }
}
.t-volumen-btn:focus-visible { outline: 2px solid var(--t-amber); outline-offset: 3px; }

@media (min-width: 720px) {
  .t-volumen {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

/* =============================================================
   11. FAQ
   ============================================================= */
.t-faq { border-top: 1px solid var(--t-line); }
.t-faq details { border-bottom: 1px solid var(--t-line); }
.t-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.125rem 0;
  font-size: .9375rem; font-weight: 600; line-height: 1.4;
  cursor: pointer; list-style: none;
}
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq summary::after {
  content: "+";
  font-size: 1.375rem; font-weight: 400; line-height: 1;
  color: var(--t-amber); flex-shrink: 0;
  transition: transform .2s var(--ease-out);
}
.t-faq details[open] summary::after { transform: rotate(45deg); }
.t-faq summary:focus-visible { outline: 2px solid var(--t-amber); outline-offset: 2px; }
.t-faq-body { padding: 0 0 1.125rem; font-size: .875rem; line-height: 1.65; color: var(--t-ink-2); max-width: 60ch; }
.t-faq-body a { color: var(--t-amber); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   12. CIERRE
   ============================================================= */
.t-final { text-align: center; }
.t-final .t-lead { margin-inline: auto; }
.t-final .t-buy { max-width: 420px; margin: 1.75rem auto 0; }

/* =============================================================
   13. BARRA FIJA DE COMPRA (solo móvil)
   ============================================================= */
.t-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: flex; align-items: center; gap: .75rem;
  height: var(--t-sticky-h);
  padding: 0 var(--gutter);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(20, 20, 22, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--t-line);
  transform: translateY(102%);
  transition: transform .28s var(--ease-out);
}
.t-sticky.is-on { transform: translateY(0); }

.t-sticky-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.t-sticky-price { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.t-sticky-size  { font-size: .6875rem; color: var(--t-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t-sticky .t-buy {
  width: auto; margin-left: auto; flex-shrink: 0;
  padding: .8125rem 1.5rem; font-size: .9375rem;
}

@media (min-width: 960px) { .t-sticky { display: none; } }

/* =============================================================
   14. PIE LEGAL
   ============================================================= */
.t-legal { display: flex; flex-wrap: wrap; gap: .4rem .25rem; justify-content: center; margin-top: .75rem; }
.t-legal a { font-size: .8125rem; color: var(--on-dark-2); text-decoration: none; }
.t-legal a:not(:last-child)::after { content: "·"; margin: 0 .35rem; color: var(--on-dark-2); }
@media (hover: hover) { .t-legal a:hover { color: var(--on-dark); text-decoration: underline; } }

/* =============================================================
   15. PÁGINA DE GRACIAS
   ============================================================= */
.t-gracias {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
}
.t-gracias-card { max-width: 560px; margin-inline: auto; text-align: center; }
.t-gracias-tick {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--t-amber); color: #0B0B0C;
  display: grid; place-items: center;
  margin: 0 auto 1.5rem;
}
.t-gracias h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800; line-height: 1.1; margin-bottom: .875rem;
}
.t-steps { text-align: left; margin: 2.25rem 0 0; display: grid; gap: .875rem; counter-reset: paso; }
.t-step {
  display: grid; grid-template-columns: 1.75rem 1fr; gap: .875rem; align-items: start;
  font-size: .875rem; line-height: 1.6; color: var(--t-ink-2);
}
.t-step::before {
  counter-increment: paso; content: counter(paso);
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--t-bg-3); border: 1px solid var(--t-line);
  color: var(--t-ink); font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}
.t-step strong { color: var(--t-ink); font-weight: 600; }

/* =============================================================
   16. BANNER DE COOKIES
   Solo se pinta si CONFIG.pixelId tiene valor. Con el Pixel
   apagado la landing no carga nada de terceros y no hay banner.
   ============================================================= */
.t-cookies {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: var(--t-bg-2);
  border-top: 1px solid var(--t-line-2);
  padding: 1.125rem var(--gutter);
  padding-bottom: calc(1.125rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
}
.t-cookies-inner {
  max-width: var(--container); margin-inline: auto;
  display: grid; gap: .875rem;
}
.t-cookies p { font-size: .8125rem; line-height: 1.55; color: var(--t-ink-2); }
.t-cookies a { color: var(--t-amber); text-decoration: underline; text-underline-offset: 2px; }
.t-cookies-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.t-cookie-btn {
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  padding: .8125rem 1rem; border-radius: var(--r-sm); cursor: pointer;
  border: 1.5px solid var(--t-line-2);
  background: transparent; color: var(--t-ink);
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
@media (hover: hover) { .t-cookie-btn:hover { border-color: var(--t-ink-3); background: rgba(244,242,239,.05); } }
.t-cookie-btn:focus-visible { outline: 2px solid var(--t-amber); outline-offset: 2px; }

/* =============================================================
   17. PANTALLAS BAJAS
   El navegador dentro de Instagram se queda en unos 600-660px
   útiles. El botón de comprar tiene que seguir entrando sin
   hacer scroll, así que ahí el hero se aprieta.
   ============================================================= */
@media (max-width: 959px) and (max-height: 800px) {
  .t-hero        { padding-top: calc(var(--nav-h) + .5rem); padding-bottom: 1.5rem; }
  .t-hero-inner  { gap: .75rem; }
  .t-hero-media  { height: clamp(140px, 22svh, 300px); }
  .t-eyebrow     { font-size: .625rem; margin-bottom: .5rem; }
  .t-hero h1     { font-size: 1.75rem; margin-bottom: .375rem; }
  .t-claim       { font-size: .875rem; line-height: 1.45; margin-bottom: .875rem; }
  .t-price       { margin-bottom: .75rem; }
  .t-price-num   { font-size: 1.875rem; }
  .t-price-meta  { font-size: .75rem; line-height: 1.35; }
  .t-sizes       { margin-bottom: .875rem; }
  .t-sizes-head  { margin-bottom: .5rem; }
  .t-size        { padding: .5625rem 0; font-size: .875rem; }
  .t-size-note   { display: none; }   /* está en la ficha y en el FAQ */
  .t-buy         { padding: .9375rem 1.5rem; font-size: 1rem; }
  .t-buy-note    { margin-top: .5rem; }
}

/* =============================================================
   18. ESCRITORIO
   ============================================================= */
@media (min-width: 720px) {
  .t-benefits      { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .t-trust         { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .t-gallery-grid  { gap: 1rem; }
  .t-cookies-inner { grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
  .t-cookies-btns  { grid-template-columns: auto auto; }
  .t-cookie-btn    { min-width: 140px; }
}

@media (min-width: 960px) {
  .t-hero { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 4rem; }
  .t-hero-inner {
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
  .t-hero-media { height: auto; aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
  .t-buy { width: auto; min-width: 280px; }
  .t-buy-note { justify-content: flex-start; }
  .t-size-grid { max-width: 420px; }
  .t-specs-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
}
