/* Mi talla real — la tarjeta de la portada, las pantallas y la calculadora Pruébalo aquí. Usa los tokens de estilos.css. */

/* ---------- El color de Mi talla real: azul profundo (cada producto tiene su acento; 2026-10-08) ----------
   Los nombres --wine* vienen de estilos.css, que es igual en los tres sitios: aquí solo cambia el valor.
   Contraste del texto blanco sobre el acento: 9,6 a 1. */
:root {
  --wine: #28466f;
  --wine-deep: #1d3554;
  --wine-wash: #e8eef6;
}
.preguntas summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%2328466f' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 3v12M3 9h12'/%3E%3C/svg%3E");
}

/* ---------- Piezas compartidas con ¿Me queda? (copiadas de su disena.css) ---------- */
.talla-tarjeta {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1.2rem;
  display: grid; gap: 1.1rem;
}
.paso-n {
  display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; flex: none;
  background: var(--wine); color: #fff; font-size: 0.82rem; font-weight: 750;
}
.ir-ejemplo { margin: 0.9rem 0 0; text-align: center; }
.ir-ejemplo .boton { display: inline-flex; align-items: center; gap: 0.45em; text-decoration: none; padding: 0.65em 1.2em; }
.ir-ejemplo svg { width: 16px; height: 16px; }
.editor-bloque { display: grid; gap: 0.55rem; }
.editor-pregunta { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-weight: 700; font-size: 1.08rem; }
.editor-ayuda { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.editor-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.8rem, 1fr)); gap: 0.6rem; }
.campo { display: grid; gap: 0.25rem; align-content: end; }
.campo span { font-weight: 600; font-size: 0.9rem; }
.campo small { display: block; font-size: 0.74rem; font-weight: 500; color: var(--ink-soft); }
.campo input {
  width: 100%; font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink);
  padding: 0.45em 0.6em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.campo input:focus { outline: 2px solid var(--wine); outline-offset: 1px; }

/* ---------- La tarjeta de la portada ---------- */
.tarjeta--talla { display: grid; gap: 0.7rem; }
.tarjeta--talla .tarjeta-app { margin: 0; }
.talla-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.talla-medidas { list-style: none; margin: 0; padding: 0; }
.talla-medidas li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.talla-medidas b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.talla-grande { margin: 0; text-align: center; padding: 0.4rem 0.9rem 0.5rem; border-radius: var(--radius-md); background: var(--wine-wash); }
.talla-grande small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
.talla-grande b { display: block; font-size: 2.1rem; line-height: 1.05; font-weight: 750; color: var(--wine); letter-spacing: -0.01em; }
.talla-nota { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }
.resena-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.resena-chips li {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.28em 0.7em; border-radius: 999px; background: var(--paper-deep);
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.resena-chips svg { width: 12px; height: 12px; }
.resena-chips .chip-ok { background: var(--wine-wash); color: var(--wine); }
.resena-chips .chip-no { background: #fff; color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }

/* En tableta la foto es 2:1 y ella queda a la derecha: la tarjeta va a la izquierda */
@media (min-width: 760px) and (max-width: 1023px) {
  .escena--talla .tarjeta { margin: -19% auto 0 3%; }
}
/* En computador el título es más largo que el de ¿Me queda?: puede ir en dos líneas */
@media (min-width: 1024px) {
  .portada h1 { white-space: normal; font-size: clamp(3.6rem, 1rem + 3.9vw, 5.4rem); }
}

/* ---------- Las pantallas de Así de fácil ---------- */
.mini-talla em { font-size: 1.9rem; line-height: 1.05; }
.mini-marcas b { color: var(--wine); }

/* ---------- Pruébalo aquí: la calculadora ---------- */
.talla { max-width: 980px; margin: 0 auto; }
.talla-guia { display: block; width: 100%; max-width: 300px; height: auto; margin: 0.2rem auto 0.4rem; }
.talla-resultado { padding: 1rem 1.1rem; border-radius: var(--radius-md); background: var(--wine-wash); }
.talla-resultado b { display: block; font-size: clamp(2.8rem, 2rem + 3vw, 3.8rem); line-height: 1; font-weight: 750; color: var(--wine); letter-spacing: -0.02em; }
.talla-resultado p { margin: 0.45rem 0 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.talla-honesta { margin: 0 0 0.6rem; font-size: 0.9rem; font-weight: 600; }
@media (min-width: 760px) {
  .talla-tarjeta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding: 1.6rem; gap: 1.4rem 2.4rem; }
}
