/* ============================================================================
   EL FORMULARIO DE TARIFAS, con la estética de la web: papel hueso, lava
   azul de la portada detrás, la grotesca en minúscula con la cursiva de
   acento, etiquetas en mono y las opciones como TECLAS del mando (cada
   pregunta con el color de una sección: al elegir, la tecla se enciende).
   ========================================================================== */
:root {
  --papel: #EEEAE2; --papel2: #F7F5F0; --tinta: #111213; --suave: #5f5a52; --linea: #d6cfc3;
  --azul: #3E50C6; --rojo: #E1261C;
  --gro: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --texto: "Newsreader", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { background: var(--papel); -webkit-text-size-adjust: 100%; }
/* Sin fondo propio: el hueso lo pone <html> y así la lava (z-index -1) no queda tapada */
body { margin: 0; min-height: 100svh; font: 17px/1.6 var(--gro); color: var(--tinta); -webkit-font-smoothing: antialiased; background: transparent; }
a { color: inherit; }

/* --- La lava azul, detrás (como la portada en reposo) --- */
.t-lava { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.t-lava i {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75;
  background: radial-gradient(circle at 40% 40%, #9aa6ee, #c5cbf3 55%, transparent 70%);
  animation: tLava 26s ease-in-out infinite alternate;
}
.t-lava i:nth-child(1) { width: 52vmax; height: 52vmax; right: -16vmax; top: -18vmax; }
.t-lava i:nth-child(2) { width: 38vmax; height: 38vmax; left: -14vmax; bottom: -12vmax; animation-duration: 31s; animation-direction: alternate-reverse; }
.t-lava i:nth-child(3) { width: 24vmax; height: 24vmax; right: 18vw; bottom: 8vh; opacity: .45; animation-duration: 23s; }
@keyframes tLava { to { transform: translate(-6vmax, 5vmax) scale(1.12); } }

.t-caja { max-width: 1280px; margin: 0 auto; padding: 20px clamp(16px, 5vw, 64px) 90px; }
.t-arriba { display: flex; justify-content: space-between; align-items: center; margin: 0 0 clamp(28px, 6vw, 64px); }
.t-volver { font: 700 15px var(--gro); text-decoration: none; }
.t-volver:hover { text-decoration: underline; text-underline-offset: 4px; }

.t-rejilla { display: grid; gap: clamp(36px, 6vw, 88px); }
@media (min-width: 980px) {
  .t-rejilla { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; }
  .t-intro { position: sticky; top: 32px; }
}

/* --- Tipografía --- */
.t-mono { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.t-rec { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; }
.t-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); box-shadow: 0 0 0 3px rgb(225 38 28 / 16%); animation: tRec 1.6s steps(1, end) infinite; }
@keyframes tRec { 50% { opacity: .2; } }
.t-titulo { margin: 0; font: 800 clamp(2.7rem, 6.2vw, 5.4rem)/.9 var(--gro); letter-spacing: -.06em; text-transform: lowercase; }
.t-titulo em { font: italic 400 1.04em/1 var(--serif); letter-spacing: -.02em; color: var(--azul); }
.t-texto { margin: 22px 0 16px; max-width: 30em; font: 400 1.18rem/1.55 var(--texto); color: #2b2a27; }
.t-nota { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--suave); }

.t-pasos { list-style: none; margin: 26px 0 0; padding: 0; }
.t-pasos li { padding: 14px 0; border-top: 1px solid var(--linea); color: var(--suave); font-size: 15px; }
.t-pasos li:last-child { border-bottom: 1px solid var(--linea); }
.t-pasos .t-mono { color: var(--rojo); margin-right: 12px; }
.t-pasos b { color: var(--tinta); margin-right: 4px; }

/* --- El formulario --- */
.t-form { min-width: 0; }
.t-bloque { border: 0; margin: 0 0 clamp(48px, 7vw, 72px); padding: 0; min-width: 0; }
.t-paso { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; margin: 0 0 14px; }
.t-paso::after { content: ""; flex: 1; height: 1px; background: var(--linea); }
.t-h2 { margin: 0; font: 800 clamp(2rem, 4vw, 2.9rem)/.95 var(--gro); letter-spacing: -.05em; text-transform: lowercase; }
.t-sub { margin: 8px 0 28px; font: italic 400 1.35rem/1.2 var(--serif); color: var(--suave); }

.t-campo { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.t-campo > label, .t-campo > legend { display: block; padding: 0; margin: 0 0 4px; font: 700 1.08rem/1.3 var(--gro); letter-spacing: -.015em; }
.t-ayuda { margin: 0 0 10px; font-size: 14px; line-height: 1.45; color: var(--suave); }
.t-campo > label + input, .t-campo > label + textarea { margin-top: 8px; }
.t-opc { margin-left: 8px; font-size: 10px; }

.t-campo input[type=text], .t-campo input[type=email], .t-campo textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--linea); background: rgb(255 255 255 / 72%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 17px/1.4 var(--gro); color: var(--tinta);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.t-campo textarea { min-height: 120px; resize: vertical; }
.t-campo input::placeholder, .t-campo textarea::placeholder { color: #9a9387; }
.t-campo input:focus, .t-campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgb(62 80 198 / 22%); }

/* --- Las opciones: teclas del mando --- */
.t-opciones { display: flex; flex-wrap: wrap; gap: 10px 9px; margin-top: 10px; }
.t-opciones label { position: relative; cursor: pointer; }
.t-opciones input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.t-opciones span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 14px;
  font: 600 15px/1.2 var(--gro); letter-spacing: -.01em; color: var(--tinta);
  background: linear-gradient(180deg, #fbfaf7, var(--papel2));
  box-shadow: 0 1px 0 #fff inset, 0 4px 0 #cfc8bb, 0 8px 14px -8px rgb(0 0 0 / 30%);
  transform: translateY(-3px);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.t-opciones label:hover span { box-shadow: 0 1px 0 #fff inset, 0 5px 0 #c3bbad, 0 10px 16px -8px rgb(0 0 0 / 32%); }
.t-opciones input:active + span { transform: translateY(1px); box-shadow: 0 1px 0 #fff inset, 0 0 0 #cfc8bb, 0 2px 6px -2px rgb(0 0 0 / 25%); }
/* Encendida: el cristal de su color, hundida un poco (como la tecla activa) */
.t-opciones input:checked + span {
  color: var(--ki, #fff);
  background: linear-gradient(180deg, color-mix(in oklab, var(--k) 84%, white), var(--k));
  box-shadow: 0 1px 0 rgb(255 255 255 / 40%) inset, 0 2px 0 color-mix(in oklab, var(--k) 58%, black),
              0 0 0 3px color-mix(in oklab, var(--k) 22%, transparent), 0 6px 14px -6px color-mix(in oklab, var(--k) 70%, transparent);
  transform: translateY(0);
}
.t-opciones input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 3px; }

/* --- Protección de datos y consentimiento --- */
.t-datos { margin: 8px 0 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--linea); background: rgb(255 255 255 / 50%); font-size: 14px; line-height: 1.5; }
.t-datos summary { cursor: pointer; font-weight: 700; }
.t-datos dl { margin: 12px 0 0; }
.t-datos dt { margin-top: 10px; font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.t-datos dd { margin: 3px 0 0; }
.t-si { display: flex !important; gap: 12px; align-items: flex-start; font: 400 15px/1.45 var(--gro) !important; cursor: pointer; }
.t-si input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--tinta); }

/* --- Enviar: la tecla negra del mando ("ver proyectos") --- */
.t-enviar {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 62px;
  padding: 0 26px; border: 0; border-radius: 18px; cursor: pointer; text-decoration: none;
  font: 800 1.15rem var(--gro); letter-spacing: -.02em; color: #F7F5F0;
  background: linear-gradient(180deg, #34363a, #111213);
  box-shadow: 0 1px 0 rgb(255 255 255 / 18%) inset, 0 7px 0 #000, 0 16px 26px -12px rgb(0 0 0 / 55%);
  transform: translateY(-4px); transition: transform .14s var(--ease), box-shadow .14s var(--ease), opacity .2s;
}
.t-enviar:active { transform: translateY(2px); box-shadow: 0 1px 0 rgb(255 255 255 / 12%) inset, 0 0 0 #000, 0 4px 10px -4px rgb(0 0 0 / 40%); }
.t-enviar:focus-visible { outline: 3px solid var(--azul); outline-offset: 4px; }
.t-enviar[disabled] { opacity: .6; cursor: progress; }
.t-enviar.t-clara { width: auto; margin-top: 26px; color: var(--tinta); background: linear-gradient(180deg, #fff, var(--papel2)); box-shadow: 0 1px 0 #fff inset, 0 6px 0 #c3bbad, 0 14px 22px -12px rgb(0 0 0 / 35%); }
@media (min-width: 640px) { .t-enviar { width: auto; } }

/* --- Avisos y errores --- */
.t-aviso { margin: 0 0 28px; padding: 14px 16px; border-radius: 14px; background: #fff7df; border: 1px solid #e7c46b; font-size: 15px; line-height: 1.5; }
.t-error { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #fdf0ef; border: 1px solid #f0a9a4; color: #8f1d17; font-size: 15px; }
.t-campo.is-error > label, .t-campo.is-error > legend { color: #b3261e; }
.t-campo.is-error input, .t-campo.is-error textarea { border-color: #d9534f; }
.t-msg { margin: 8px 0 0; font-size: 14px; color: #b3261e; }

/* --- El campo trampa: ni se ve ni se alcanza con el tabulador --- */
.t-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.t-gracias { padding-top: 6px; }
.t-gracias:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .t-lava i, .t-rec::before { animation: none; }
  .t-opciones span, .t-enviar { transition: none; }
}
