/* ==========================================================================
   test.css — el test «Encuentra tu bonsái ideal».

   Hoja propia y ligera: la página se abre sobre todo desde un enlace en el
   móvil, así que no carga el style.css de la home. Los colores y las fuentes
   salen de tokens.css, como en el resto del sitio.

   Móvil primero. Todo lo que se toca mide al menos 48 px de alto.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --t-card: #FFFDF7;
  --t-line: rgba(25, 83, 43, .14);
  --t-line-strong: rgba(25, 83, 43, .32);
  --t-tint: #EAF1E2;
  --t-wa: #1C7C45;
  --t-wa-deep: #146236;
  --t-warn-bg: #FBF3DC;
  --t-warn-ink: #6B4E0E;
  --t-radius: 18px;
  --t-shadow: 0 1px 2px rgba(18, 59, 33, .06), 0 10px 30px rgba(18, 59, 33, .08);
  --t-ease: cubic-bezier(.2, .7, .2, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--pine);
}

:focus-visible {
  outline: 3px solid var(--sunshine);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.t-saltar {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--pine);
  color: var(--on-dark);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
}

.t-saltar:focus {
  left: 8px;
}

/* --- Iconos --------------------------------------------------------------- */

.t-ico,
.t-btn svg,
.t-nota-inicio svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.t-btn svg.t-ico-wa {
  stroke: none;
  width: 20px;
  height: 20px;
}

/* --- Barra superior ------------------------------------------------------- */

.t-barra {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(248, 244, 231, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

body[data-pantalla="tPregunta"] .t-barra,
body[data-pantalla="tResultados"] .t-barra {
  border-bottom-color: var(--t-line);
}

.t-logo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  flex-shrink: 0;
}

.t-logo img {
  width: 116px;
  height: auto;
}

.t-progreso {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.t-progreso-texto {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-ink);
  white-space: nowrap;
  order: 2;
}

.t-progreso-riel {
  flex: 1;
  height: 6px;
  background: rgba(25, 83, 43, .1);
  border-radius: 99px;
  overflow: hidden;
}

.t-progreso-relleno {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pine);
  border-radius: inherit;
  transition: width .45s var(--t-ease);
}

.t-revision {
  background: var(--t-warn-bg);
  color: var(--t-warn-ink);
  font-size: 13.5px;
  line-height: 1.45;
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(107, 78, 14, .15);
}

/* --- Pantallas y transiciones --------------------------------------------- */

.t-app {
  flex: 1;
  width: 100%;
  outline: none;
}

.t-pantalla.activa {
  animation: t-entra .42s var(--t-ease) both;
}

.t-pantalla.activa.desde-atras {
  animation-name: t-entra-atras;
}

@keyframes t-entra {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

@keyframes t-entra-atras {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .t-pantalla.activa,
  .t-tarjeta,
  .t-brote svg {
    animation: none !important;
  }

  .t-progreso-relleno,
  .t-op {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Tipografía común ------------------------------------------------------ */

.t-antetitulo {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 10px;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--pine-deep);
  letter-spacing: -.01em;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--pine);
}

/* --- Botones --------------------------------------------------------------- */

.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}

.t-btn:active {
  transform: scale(.98);
}

.t-btn-grande {
  min-height: 58px;
  font-size: 17px;
  padding: 16px 28px;
}

.t-btn-principal {
  background: var(--pine);
  color: var(--on-dark);
}

.t-btn-principal:hover {
  background: var(--pine-deep);
}

.t-btn-principal svg {
  transition: transform .2s;
}

.t-btn-principal:hover svg {
  transform: translateX(3px);
}

.t-btn-secundario {
  background: transparent;
  color: var(--pine);
  border-color: var(--t-line-strong);
}

.t-btn-secundario:hover {
  background: var(--t-tint);
}

.t-btn-fantasma {
  color: var(--muted-ink);
  padding-left: 14px;
  padding-right: 14px;
}

.t-btn-fantasma:hover {
  color: var(--pine);
  background: rgba(25, 83, 43, .06);
}

.t-btn-fantasma svg {
  width: 20px;
  height: 20px;
}

.t-btn-wa {
  background: var(--t-wa);
  color: #fff;
}

.t-btn-wa:hover {
  background: var(--t-wa-deep);
}

.t-enlace {
  color: var(--pine);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding: 12px 4px;
  min-height: 44px;
}

.t-enlace:hover {
  color: var(--pine-deep);
}

/* --- Inicio ---------------------------------------------------------------- */

.t-inicio {
  display: grid;
  gap: 0;
}

.t-inicio-foto {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--paper-deep);
}

.t-inicio-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* La foto real tiene la maceta en el tercio de abajo: se encuadra un poco
     más abajo del centro para que no quede bajo el degradado. */
  object-position: 50% 62%;
}

.t-inicio-foto::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(to bottom, rgba(248, 244, 231, 0), var(--paper));
}

.t-inicio-texto {
  position: relative;
  padding: 0 20px 36px;
  margin-top: -36px;
  max-width: 560px;
}

.t-inicio h1 {
  font-size: clamp(38px, 10.5vw, 64px);
  margin-bottom: 16px;
}

.t-inicio h1 em {
  display: block;
}

.t-sub {
  font-size: 17.5px;
  color: var(--muted-ink);
  margin-bottom: 26px;
  max-width: 34em;
}

.t-inicio .t-btn-grande {
  width: 100%;
}

.t-nota-inicio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted-ink);
  margin-top: 12px;
}

.t-nota-inicio svg {
  width: 18px;
  height: 18px;
}

.t-reanudar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  background: var(--t-tint);
  border-radius: 14px;
  padding: 4px 16px;
  margin-bottom: 16px;
  font-size: 15px;
}

.t-confianza {
  list-style: none;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--t-line);
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted-ink);
}

.t-confianza li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.t-confianza li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--t-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319532B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.t-noscript {
  padding: 0 20px 24px;
}

/* --- Pregunta -------------------------------------------------------------- */

.t-pregunta-caja {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 16px 32px;
}

.t-pregunta-titulo {
  font-size: clamp(30px, 8vw, 44px);
  margin-bottom: 20px;
  outline: none;
}

.t-ayuda {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--t-tint);
  color: var(--pine-deep);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  margin: -6px 0 20px;
}

.t-ayuda .t-ico {
  width: 20px;
  height: 20px;
  color: var(--moss);
  margin-top: 1px;
}

.t-opciones {
  display: grid;
  gap: 10px;
}

.t-opciones-rejilla {
  grid-template-columns: 1fr 1fr;
}

.t-opciones-fotos {
  grid-template-columns: 1fr 1fr;
}

.t-op {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--t-card);
  border: 1.5px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: 0 1px 2px rgba(18, 59, 33, .04);
  transition: border-color .18s, background .18s, box-shadow .18s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}

.t-op:hover {
  border-color: var(--t-line-strong);
  box-shadow: var(--t-shadow);
}

.t-op:active {
  transform: scale(.985);
}

.t-op.marcada {
  border-color: var(--pine);
  background: var(--t-tint);
  box-shadow: 0 0 0 1px var(--pine) inset;
}

.t-op-icono {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--pine);
  flex-shrink: 0;
  transition: background .18s;
}

.t-op.marcada .t-op-icono {
  background: #fff;
}

.t-op-texto {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.t-op-titulo {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
}

.t-op-detalle {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted-ink);
}

.t-op-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .18s, transform .18s var(--t-ease);
}

.t-op-check .t-ico {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.t-op.marcada .t-op-check {
  opacity: 1;
  transform: none;
}

/* Rejilla de dos: icono arriba, texto debajo */
.t-opciones-rejilla .t-op {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 118px;
  gap: 12px;
}

/* Lista con detalle: una por fila */
.t-opciones-lista .t-op {
  padding-right: 40px;
}

.t-opciones-lista .t-op-check {
  top: 50%;
  right: 14px;
  margin-top: -11px;
}

/* Con fotografía */
.t-opciones-fotos .t-op {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.t-op-foto {
  display: block;
  aspect-ratio: 1;
  background: var(--paper-deep);
  overflow: hidden;
}

.t-op-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--t-ease);
}

.t-op:hover .t-op-foto img {
  transform: scale(1.04);
}

.t-opciones-fotos .t-op-texto {
  padding: 12px 14px 14px;
}

.t-opciones-fotos .t-op:not(:has(.t-op-foto)) {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 14px;
}

.t-opciones-fotos .t-op:not(:has(.t-op-foto)) .t-op-texto {
  padding: 0;
}

.t-pregunta-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.t-pregunta-pie .t-enlace {
  font-weight: 500;
  color: var(--muted-ink);
  font-size: 14.5px;
}

/* --- Cargando -------------------------------------------------------------- */

.t-cargando {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted-ink);
  font-size: 16px;
}

.t-brote svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--pine);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: t-brota 1.4s var(--t-ease) infinite alternate;
  transform-origin: 50% 90%;
}

@keyframes t-brota {
  from {
    transform: scale(.82);
    opacity: .55;
  }
}

/* --- Resultados ------------------------------------------------------------ */

.t-resultados {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 16px 40px;
}

.t-res-cabecera {
  max-width: 720px;
  margin-bottom: 24px;
}

.t-res-cabecera h1 {
  font-size: clamp(32px, 8.4vw, 52px);
  margin-bottom: 12px;
  outline: none;
}

.t-res-intro {
  font-size: 16px;
  color: var(--muted-ink);
  margin-bottom: 14px;
}

.t-res-respuestas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.t-pastillas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.t-pastillas li {
  font-size: 13px;
  font-weight: 500;
  background: var(--t-card);
  border: 1px solid var(--t-line);
  border-radius: 99px;
  padding: 5px 12px;
  color: var(--muted-ink);
}

.t-res-respuestas .t-enlace {
  font-size: 14px;
}

.t-tarjetas {
  display: grid;
  gap: 18px;
}

.t-tarjeta {
  display: flex;
  flex-direction: column;
  background: var(--t-card);
  border: 1px solid var(--t-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--t-shadow);
  animation: t-sube .5s var(--t-ease) both;
  animation-delay: calc(var(--i) * 90ms);
}

@keyframes t-sube {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.t-tarjeta.destacada {
  border-color: var(--pine);
  box-shadow: 0 0 0 1px var(--pine), var(--t-shadow);
}

.t-tarjeta-foto {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  overflow: hidden;
}

.t-tarjeta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-etiqueta {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pine);
  color: var(--on-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 12px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(18, 59, 33, .25);
}

.t-etiqueta-suave {
  background: var(--t-card);
  color: var(--muted-ink);
  box-shadow: 0 2px 8px rgba(18, 59, 33, .12);
}

.t-tarjeta-cuerpo {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 18px 18px;
}

.t-tarjeta-nombre {
  font-size: 27px;
  margin-bottom: 6px;
}

.t-tarjeta-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 12px;
  color: var(--muted-ink);
  font-size: 14.5px;
}

.t-tarjeta-meta strong {
  font-size: 21px;
  color: var(--pine);
  font-weight: 700;
}

.t-tarjeta-desc {
  font-size: 15px;
  color: var(--muted-ink);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t-mini {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 8px;
}

.t-razones,
.t-avisos {
  list-style: none;
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.4;
}

.t-razones li,
.t-avisos li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.t-razones .t-ico {
  width: 18px;
  height: 18px;
  color: var(--moss);
  stroke-width: 2.2;
  margin-top: 1px;
}

.t-avisos li {
  background: var(--t-warn-bg);
  color: var(--t-warn-ink);
  border-radius: 10px;
  padding: 8px 10px;
}

.t-avisos .t-ico {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.t-datos {
  display: grid;
  gap: 8px;
  padding: 12px 0 2px;
  border-top: 1px solid var(--t-line);
  margin-bottom: 16px;
  font-size: 14px;
}

.t-datos div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.t-datos dt {
  color: var(--muted);
}

.t-datos dd {
  color: var(--ink);
}

.t-tarjeta-acciones {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.t-tarjeta-acciones .t-btn {
  width: 100%;
}

.t-etiqueta-borrador {
  left: auto;
  right: 12px;
  background: var(--sunshine);
  color: var(--ink);
}

/* --- Colección (debajo de los tres) -------------------------------------- */

.t-coleccion {
  display: grid;
  margin-top: 22px;
  background: var(--t-card);
  border: 1px solid var(--t-line-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--t-shadow);
  animation: t-sube .5s var(--t-ease) both;
  animation-delay: 300ms;
}

.t-coleccion-fotos {
  position: relative;
  display: grid;
  gap: 3px;
  background: var(--paper-deep);
  aspect-ratio: 16 / 10;
}

.t-coleccion-fotos-2 {
  grid-template-columns: 1fr 1fr;
}

.t-coleccion-fotos-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.t-coleccion-fotos-3 img:first-child {
  grid-row: span 2;
}

.t-coleccion-fotos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

.t-coleccion-cuerpo {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
}

.t-coleccion-desc {
  font-size: 15px;
  color: var(--muted-ink);
  margin-bottom: 12px;
}

.t-incluye {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--t-tint);
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--pine-deep);
}

.t-incluye li::before {
  content: "·";
  font-weight: 700;
  margin-right: 8px;
  color: var(--moss);
}

@media (min-width: 760px) {
  .t-coleccion {
    grid-template-columns: 1fr 1.1fr;
  }

  .t-coleccion-fotos {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .t-coleccion-cuerpo {
    padding: 28px 28px 24px;
  }

  .t-coleccion .t-tarjeta-acciones {
    grid-template-columns: 1fr 1fr;
  }
}

.t-res-acciones {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 30px auto 0;
  max-width: 520px;
}

.t-res-acciones>.t-btn {
  width: 100%;
}

.t-res-secundarias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.t-nota {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 18px auto 0;
}

.t-vacio {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  background: var(--t-card);
  border: 1px solid var(--t-line);
  border-radius: 22px;
  padding: 32px 20px;
  max-width: 620px;
  font-size: 16.5px;
}

.t-vacio-icono {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--t-tint);
  color: var(--pine);
}

/* --- Error ----------------------------------------------------------------- */

.t-error {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.t-error h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.t-error p {
  color: var(--muted-ink);
  margin-bottom: 24px;
}

.t-acciones {
  display: grid;
  gap: 10px;
}

/* --- Detalle --------------------------------------------------------------- */

.t-detalle {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  border-radius: 24px 24px 0 0;
  background: var(--t-card);
  color: var(--ink);
  box-shadow: 0 -10px 40px rgba(18, 59, 33, .2);
  overflow: hidden;
}

.t-detalle[open] {
  animation: t-hoja .32s var(--t-ease) both;
}

@keyframes t-hoja {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

.t-detalle::backdrop {
  background: rgba(18, 35, 25, .5);
  backdrop-filter: blur(2px);
}

.t-detalle-caja {
  position: relative;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.t-detalle-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 253, 247, .92);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(18, 59, 33, .18);
}

.t-detalle-foto {
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}

.t-detalle-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-detalle-cuerpo {
  padding: 22px 20px 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.t-detalle-cuerpo h2 {
  font-size: 30px;
  margin-bottom: 10px;
  padding-right: 8px;
}

.t-detalle-desc {
  color: var(--muted-ink);
  margin-bottom: 18px;
}

.t-detalle-tabla {
  display: grid;
  border-top: 1px solid var(--t-line);
  margin-bottom: 8px;
  font-size: 14.5px;
}

.t-detalle-tabla div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--t-line);
}

.t-detalle-tabla dt {
  color: var(--muted);
}

.t-detalle-acciones {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

/* --- Pie ------------------------------------------------------------------- */

.t-pie {
  padding: 26px 16px;
  padding-bottom: calc(26px + var(--alto-cookies, 0px));
  border-top: 1px solid var(--t-line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.t-pie nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin-top: 8px;
}

.t-pie a {
  color: var(--muted-ink);
  display: inline-block;
  padding: 8px 0;
}

/* --- Aviso de cookies (lo inyecta pixel.js) --------------------------------
   Copia del bloque de style.css: esta página no carga la hoja de la home. Si
   cambias uno, cambia el otro. */
.dg-cookies {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 70;
  max-width: 420px;
  background: var(--pine);
  color: var(--on-dark);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(18, 59, 33, .28);
}

.dg-cookies p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-dark-soft);
  margin-bottom: 16px;
}

.dg-cookies a {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dg-cookies-acciones {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.dg-cookies button {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
}

.dg-cookies-no {
  background: transparent;
  color: var(--on-dark-muted);
  border-color: rgba(243, 240, 230, .28) !important;
}

.dg-cookies-si {
  background: var(--sunshine);
  color: var(--ink);
}

.dg-cookies-corto {
  display: none;
}

@media (max-width: 620px) {
  .dg-cookies {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px 16px 0 0;
    padding: 12px 14px 12px 18px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .dg-cookies p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
  }

  .dg-cookies-largo {
    display: none;
  }

  .dg-cookies-corto {
    display: inline;
  }

  .dg-cookies-acciones {
    flex-shrink: 0;
    gap: 6px;
  }

  .dg-cookies button {
    padding: 9px 13px;
    font-size: 13px;
  }
}

/* --- Pantallas medianas ----------------------------------------------------- */

@media (min-width: 640px) {
  .t-barra {
    padding-left: 28px;
    padding-right: 28px;
  }

  .t-logo img {
    width: 132px;
  }

  .t-progreso {
    max-width: 460px;
    margin-left: auto;
  }

  .t-pregunta-caja {
    padding-top: 44px;
  }

  .t-opciones-rejilla {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .t-opciones-fotos {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .t-opciones-lista {
    gap: 12px;
  }

  .t-resultados {
    padding-top: 44px;
  }

  .t-tarjetas-2,
  .t-tarjetas-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .t-tarjetas-1 {
    max-width: 460px;
  }

  .t-detalle {
    margin: auto;
    max-width: 880px;
    width: calc(100% - 48px);
    border-radius: 24px;
  }

  .t-detalle-caja {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 88dvh;
  }

  .t-detalle-foto {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .t-detalle-cuerpo {
    overflow-y: auto;
    max-height: 88dvh;
  }

  .t-acciones {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Escritorio ------------------------------------------------------------ */

@media (min-width: 960px) {
  .t-inicio {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 40px 56px;
    gap: 64px;
  }

  .t-inicio-foto {
    aspect-ratio: 1;
    border-radius: 28px;
    box-shadow: var(--t-shadow);
  }

  .t-inicio-foto::after {
    display: none;
  }

  .t-inicio-texto {
    margin: 0;
    padding: 0;
  }

  .t-inicio .t-btn-grande {
    width: auto;
  }

  .t-nota-inicio {
    justify-content: flex-start;
  }

  .t-pregunta-caja {
    max-width: 880px;
  }

  .t-opciones-rejilla {
    grid-template-columns: repeat(4, 1fr);
  }

  .t-opciones-rejilla:has(> :nth-child(5)) {
    grid-template-columns: repeat(3, 1fr);
  }

  .t-opciones-fotos {
    grid-template-columns: repeat(5, 1fr);
  }

  .t-tarjetas-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .t-tarjetas-2 {
    max-width: 820px;
  }
}
