/* Tema negro vinotinto de Ruta Clara: un solo fondo fijo, siempre en movimiento, detrás de toda la página.
   Capas: video de seda/humo vino (fondo-vino.mp4) + resplandores que derivan + vías del logo + velo para leer. */
html { background: #0d0709; color-scheme: dark; }
body, body.doc-page, main, .section, footer.closing, #servicios { background: transparent !important; }

.fondo-global { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0d0709; pointer-events: none; }
.fondo-global__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.fondo-global__brillo { position: absolute; inset: -25%;
  background:
    radial-gradient(38% 32% at 22% 28%, rgb(140 32 58 / .38), transparent 70%),
    radial-gradient(34% 30% at 78% 72%, rgb(96 18 38 / .42), transparent 70%),
    radial-gradient(28% 24% at 60% 20%, rgb(170 70 60 / .14), transparent 70%);
  animation: fondo-brillo 22s ease-in-out infinite alternate; }
.fondo-global::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(13 7 9 / .45) 0%, rgb(13 7 9 / .62) 50%, rgb(13 7 9 / .72) 100%); }
.fondo-global__vias { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.fondo-global__vias path { fill: none; stroke: #efc9d1; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 18 22; opacity: .16;
  animation: fondo-vias 9s linear infinite; }
.fondo-global__vias path:nth-child(2) { animation-duration: 13s; opacity: .1; }
.fondo-global__vias .fina { stroke-width: 1; stroke-dasharray: 4 10; opacity: .14; animation-duration: 17s; }
@keyframes fondo-brillo { to { transform: translate(5%, -4%) rotate(8deg) scale(1.1); } }
@keyframes fondo-vias { to { stroke-dashoffset: -400; } }
html.sin-movimiento .fondo-global__brillo, html.sin-movimiento .fondo-global__vias path { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .fondo-global__brillo, .fondo-global__vias path { animation: none; } }

/* barra superior: oscura, casi opaca */
header.nav { background: rgb(13 7 9 / .9); border-bottom-color: rgb(239 201 209 / .12); backdrop-filter: blur(10px); }
.nav__logo, .nav__link { color: var(--p-ink); }

/* portada: el color base del trámite inicial es vino, y el borde inferior se funde con el fondo */
[data-tramite="traspaso"] { --tono: #6e1a2c; }
.hero--escena { background-color: #0d0709; }
.hero--escena::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; z-index: 0; pointer-events: none;
  background: linear-gradient(0deg, #0d0709, transparent); }

/* superficies sobre el fondo vivo */
.card { background: rgb(27 13 18 / .72); border-color: rgb(239 201 209 / .12); backdrop-filter: blur(6px); }
.form--panel { background: rgb(27 13 18 / .82) !important; border: 1px solid rgb(239 201 209 / .14); backdrop-filter: blur(8px); }
.field :is(input, select, textarea) { background: rgb(13 7 9 / .7); color: var(--p-ink); border-color: rgb(239 201 209 / .25); }
.field :is(input, select, textarea):focus { border-color: #d9677e; }
.field select option { background: #1b0d12; color: #f3ebe6; }
.check input { accent-color: #b33a54; }
.rows li, .faq > .faq__item { border-color: rgb(239 201 209 / .14) !important; }
.tarjeta { box-shadow: 0 0 0 1px rgb(239 201 209 / .1); }
.portada-tramite { box-shadow: 0 0 0 1px rgb(239 201 209 / .1); }
.doc-head, .doc-foot { background: rgb(13 7 9 / .85); backdrop-filter: blur(10px); position: relative; z-index: 1; }
.doc { position: relative; z-index: 1; }
.link { color: #f0c4cd; }
.link:hover { color: #fff; }
.asistente__out[data-tipo] { border-left-color: #d9677e; }
/* textos pequeños sobre el video de la portada: más luz y una sombra suave para leer en cualquier cuadro */
.escena__texto .hero__kicker, .opciones__label { color: #fff !important; text-shadow: 0 1px 14px rgb(0 0 0 / .75), 0 0 2px rgb(0 0 0 / .6); }
.escena__texto .hero__lead { text-shadow: 0 1px 12px rgb(0 0 0 / .6); }
