/* ============================================================ producto.css
 *
 * La portada como página de producto (26-09-2026). Va DESPUÉS de estilo.css,
 * fluido.css y portada.css: reutiliza su material (tarjetas, botones,
 * comparador, tarifas, banda de cierre) y aquí solo se coloca lo nuevo.
 *
 * Orden de lectura que busca: qué es → qué recibes → cómo se hace → cuánto
 * cuesta → por qué fiarte → dudas → descargar. Un solo botón primario por
 * pantalla; la jerarquía la marcan el peso y el aire, no el color.
 */

:root { --bg-2: #F6F3E8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg-2: #15161A; }
}
:root[data-theme="dark"] { --bg-2: #15161A; }

/* Saltar al contenido: invisible hasta que llega el foco del teclado. */
.saltar {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.saltar:focus { top: .75rem; }

/* ------------------------------------------------------------------ héroe */
.producto .hero { grid-template-columns: 1.05fr .95fr; }
.producto .hero__texto .display {
  font-size: clamp(2.2rem, 4.1vw, 3.5rem);
  line-height: 1.04;
}
.producto .hero__texto .guia { max-width: 40ch; }
/* overflow: hidden recorta el "·" del elemento que ABRE un renglón (en móvil
   la línea se parte y ese punto quedaba suelto en el margen izquierdo); los
   puntos entre elementos del mismo renglón caen dentro de la caja y se ven. */
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0; padding: 0; list-style: none;
  overflow: hidden;
}
.hero__meta li { position: relative; }
.hero__meta li + li::before {
  content: "·"; position: absolute; left: -.6rem; color: var(--line-fuerte);
}
.producto .hero__pieza { max-width: 34rem; justify-self: end; width: 100%; }

@media (max-width: 900px) {
  /* En móvil primero se lee qué es; la prueba va justo debajo. */
  .producto .hero { grid-template-columns: 1fr; gap: 1.8rem; padding-top: 1.6rem; }
  .producto .hero__pieza { order: 0; justify-self: stretch; max-width: 34rem; }
}
@media (max-width: 480px) {
  .producto .hero__acciones .boton { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------- lo que recibes */
/* Primero las cinco fotos a lo ancho (la prueba, grande), debajo el anuncio. */
.recibe { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.recibe__fotos { padding: clamp(1.1rem, 2.4vw, 1.6rem); }
.recibe__t { max-width: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin: 0 0 .9rem;
}
.recibe__t b { font-size: 1.0625rem; letter-spacing: -.012em; }
.tira5 {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.5rem, 1.2vw, .9rem);
}
.tira5 li { margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.tira5 img {
  display: block; width: 100%; height: auto; aspect-ratio: 360 / 476;
  object-fit: cover; border-radius: 10px; background: var(--line);
}
.tira5 span { text-align: center; }
@media (max-width: 560px) {
  .tira5 { grid-template-columns: repeat(3, 1fr); }
}
.recibe__pie { margin: 1rem 0 0; }

.ficha__cab { margin: 0 0 .9rem; }
.ficha__trad { font-style: italic; }

/* ------------------------------------------------------ banda secundaria */
.banda { background: var(--bg-2); }
.banda.bloque { padding-inline: 0; }

/* -------------------------------------------------------------- 3 pasos */
.pasos3 {
  list-style: none; margin: 0; padding: 0; counter-reset: paso;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 860px) { .pasos3 { grid-template-columns: 1fr; } }
.pasos3 li { counter-increment: paso; }
.pasos3 .caja { height: 100%; }
.pasos3 .caja::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em;
  color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
.bloque__mas { margin: 1.4rem 0 0; }

/* -------------------------------------------------------------- precios */
.producto .precios__notas p b { display: block; margin-bottom: .2rem; }

/* ------------------------------------------------------------ confianza */
.fiable { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 1080px) { .fiable { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .fiable { grid-template-columns: 1fr; } }
.fiable .caja { height: 100%; }
.icono {
  width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-suave); color: var(--accent-ink);
}
.icono svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor;
             stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ preguntas */
.dudas { max-width: 46rem; border-top: 1px solid var(--line); }
.dudas details { border-bottom: 1px solid var(--line); }
.dudas summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; min-height: 3.5rem; padding: .9rem 0;
  font-weight: 650; font-size: 1.0625rem; letter-spacing: -.01em;
}
.dudas summary::-webkit-details-marker { display: none; }
.dudas summary::after {
  content: ""; flex: none; width: .6rem; height: .6rem; margin-right: .3rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 160ms cubic-bezier(.2,0,0,1);
}
.dudas details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.dudas details p { margin: 0 0 1.1rem; color: var(--muted); max-width: 62ch; }
.dudas summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ cierre */
.producto .cierre { margin-top: 0; }
.producto .cierre__titulo { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
