/* Paleta sobria: grises fríos y un color de marca (por defecto el petróleo).
   Las superficies son planas, con borde en lugar de sombra. */
:root {
  --fondo-1: #edf0f2;
  --superficie: #ffffff;
  --superficie-alt: #f6f8f9;
  --texto: #0d1b2e;
  --suave: #5a6874;
  --borde: #d3dadf;
  /* --primario lo puede pisar el panel de administración (ver <style> en
     el <head> de cada página); el resto se deriva de él automáticamente. */
  --primario: #004181;
  --primario-hover: color-mix(in srgb, var(--primario) 85%, black);
  --primario-suave: color-mix(in srgb, var(--primario) 10%, white);
  --relleno: var(--primario); /* el primario como relleno: botones, talle elegido */
  --tinte: var(--primario);   /* el primario como color de texto o de ícono */
  --ok-fondo: #e6f4ec;
  --ok-texto: #17663f;
  --error-fondo: #fdecea;
  --error-texto: #b3261e;
  --sombra: 0 1px 2px rgba(16, 28, 38, .06);
  --radio: 14px;
  --fuente: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fuente-titulo: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
}

/* ---------- Modo oscuro ---------- */
/* data-tema="auto" sigue al dispositivo de cada persona (el valor por defecto) y
   cambia en vivo si ella cambia su modo claro/oscuro; "claro" y "oscuro" lo fuerzan.
   color-scheme hace que también los controles del navegador (barras de
   desplazamiento, desplegables, casillas) sigan el mismo modo. */
:root { color-scheme: light; }
:root[data-tema="oscuro"] { color-scheme: dark; }
:root[data-tema="auto"] { color-scheme: light dark; }

:root[data-tema="oscuro"] {
  --fondo-1: #0b141b;
  --superficie: #121f29;
  --superficie-alt: #0f1a22;
  --texto: #e6edf1 !important;
  --suave: #93a3ae;
  --borde: #26384a;
  --primario-hover: color-mix(in srgb, var(--primario) 80%, white);
  --primario-suave: color-mix(in srgb, var(--primario) 25%, black);
  --relleno: color-mix(in srgb, var(--primario) 88%, white);
  --tinte: color-mix(in srgb, var(--primario) 50%, white);
  --ok-fondo: #0d2a1c;
  --ok-texto: #4cd391;
  --error-fondo: #3a1514;
  --error-texto: #ff9b92;
  --sombra: 0 1px 2px rgba(0, 0, 0, .3);
}

@media (prefers-color-scheme: dark) {
  :root[data-tema="auto"] {
    --fondo-1: #0b141b;
    --superficie: #121f29;
    --superficie-alt: #0f1a22;
    --texto: #e6edf1 !important;
    --suave: #93a3ae;
    --borde: #26384a;
    --primario-hover: color-mix(in srgb, var(--primario) 80%, white);
    --primario-suave: color-mix(in srgb, var(--primario) 25%, black);
    --relleno: color-mix(in srgb, var(--primario) 88%, white);
    --tinte: color-mix(in srgb, var(--primario) 50%, white);
    --ok-fondo: #0d2a1c;
    --ok-texto: #4cd391;
    --error-fondo: #3a1514;
    --error-texto: #ff9b92;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3);
  }
}


* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fuente);
  line-height: 1.5;
  background: var(--fondo-1);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

.fondo-app {
  min-height: 100vh;
  padding: 2.5rem 1.25rem 4rem;
}

.envoltorio { max-width: 700px; margin: 0 auto; }

/* ---------- Logo de empresa en el perfil: en medio de la cabecera, entre el nombre y "Cerrar sesión" ---------- */

.logo-cabecera { flex: 1; display: flex; justify-content: center; min-width: 0; }
.logo-cabecera img { max-width: 200px; max-height: 40px; object-fit: contain; }

h1, h2, .identidad h1 { font-family: var(--fuente-titulo); }
h1 { margin: 0 0 .35rem; font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.sub { color: var(--suave); margin: 0 0 1.75rem; font-size: .95rem; }
.sub-chica { margin: 0; }

.form { text-align: left; }

.campo { margin-bottom: 1.1rem; }
.campo:last-of-type { margin-bottom: 0; }

label, .etiqueta-prenda {
  display: block;
  font-weight: 600;
  font-size: .82rem;
  color: color-mix(in srgb, var(--texto) 80%, var(--superficie));
  margin: 0 0 .4rem;
}

input {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  font-size: .95rem;
  color: var(--texto);
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  background: var(--superficie);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: var(--suave); opacity: .7; }
input:focus {
  outline: none;
  border-color: var(--relleno);
  background: var(--superficie);
  box-shadow: 0 0 0 4px var(--primario-suave);
}

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

.btn-primario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  margin-top: 1.6rem;
  padding: .8rem 1rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  background: var(--relleno);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, background .15s;
}
.btn-primario svg { width: 18px; height: 18px; }
.btn-primario:hover { background: color-mix(in srgb, var(--relleno) 85%, black); }
.btn-primario:active { transform: translateY(1px); }
.btn-primario.ancho { margin-top: 1.75rem; }

button.secundario {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--suave);
  background: var(--superficie);
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
button.secundario svg { width: 16px; height: 16px; }
button.secundario:hover { background: var(--error-fondo); border-color: var(--error-texto); color: var(--error-texto); }

/* ---------- Cabecera de perfil ---------- */

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.identidad { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.identidad > div { min-width: 0; } /* para que el nombre largo se corte con "…" en vez de pasar por debajo del botón */

.avatar {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--relleno);
  color: #fff;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
}

.identidad h1 {
  font-size: 1.4rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Tarjetas de sección ---------- */

.tarjeta {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--borde);
  color: var(--texto);
}
h2 svg { width: 19px; height: 19px; color: var(--tinte); flex-shrink: 0; }

.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; margin: 0; }
.datos dt { font-size: .85rem; font-weight: 500; color: var(--suave); margin: 0 0 .2rem; }
.datos dd { margin: 0; font-size: .98rem; font-weight: 500; overflow-wrap: anywhere; }

.talles { display: grid; gap: 0; }

select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: .75rem 2.4rem .75rem .9rem;
  font: inherit;
  font-size: .95rem;
  color: var(--texto);
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08Z' clip-rule='evenodd'/%3E%3C/svg%3E")
    no-repeat right .85rem center / 18px,
    var(--superficie-alt);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
select:focus {
  outline: none;
  border-color: var(--primario);
  background-color: var(--superficie);
  box-shadow: 0 0 0 4px var(--primario-suave);
}

/* ---------- Alertas (banner fijo, ej. error de login) ---------- */

.alerta {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  margin: 0 0 1.25rem;
  font-size: .9rem;
  font-weight: 500;
}
.alerta svg { width: 20px; height: 20px; flex-shrink: 0; }
.alerta.ok { background: var(--ok-fondo); color: var(--ok-texto); }
.alerta.error { background: var(--error-fondo); color: var(--error-texto); }
.alerta.info { background: var(--primario-suave); color: var(--primario-hover); }

/* ---------- Toast (notificación flotante, ej. al guardar talles) ---------- */

.toast {
  display: flex;
  align-items: center;
  gap: .6rem;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 1.1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, .25);
  animation: toast-entrar .25s ease-out both;
}
.toast.saliendo { animation: toast-salir .2s ease-in both; }
.toast svg:first-child { width: 20px; height: 20px; flex-shrink: 0; }
.toast.ok { background: var(--ok-fondo); color: var(--ok-texto); }
.toast.error { background: var(--error-fondo); color: var(--error-texto); }

.toast-cerrar {
  margin: 0 0 0 .2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  opacity: .6;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.toast-cerrar:hover { opacity: 1; }

@keyframes toast-entrar {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes toast-salir {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -12px); }
}

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
  .datos, .talles { grid-template-columns: 1fr; }
  .cabecera { flex-wrap: wrap; }
  .tarjeta { padding: 1.35rem; }
}

/* ---------- Datos personales: grid a 2 columnas, correo ocupa todo el ancho ---------- */

.datos-ancho { grid-column: 1 / -1; }

/* ---------- Una prenda por fila ---------- */

.prenda {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--borde);
}
.prenda:first-child { padding-top: 0; }
.prenda:last-of-type { border-bottom: none; padding-bottom: .5rem; }

.etiqueta-chica {
  display: block;
  margin: -.25rem 0 .4rem;
  font-size: .8rem;
  color: var(--suave);
}

/* Talles por letra: un botón por talle, como las etiquetas de la ropa. */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: block; margin: 0; font-size: inherit; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: grid;
  place-items: center;
  min-width: 3.1rem;
  height: 2.7rem;
  padding: 0 .85rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--texto);
  background: var(--superficie);
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.chip:hover span { border-color: var(--tinte); }
.chip input:checked + span { color: #fff; background: var(--relleno); border-color: var(--relleno); }
.chip input:focus-visible + span { border-color: var(--relleno); box-shadow: 0 0 0 4px var(--primario-suave); }

/* ---------- Guía de talles (placeholder por prenda) ---------- */

.guia-prenda {
  margin-top: .75rem;
  border: 1.5px dashed var(--borde);
  border-radius: 10px;
  background: var(--superficie-alt);
}
.guia-prenda summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--suave);
  cursor: pointer;
  list-style: none;
}
.guia-prenda summary::-webkit-details-marker { display: none; }
.guia-prenda summary svg:first-child { width: 17px; height: 17px; color: var(--tinte); flex-shrink: 0; }
.guia-prenda summary .chevron {
  width: 20px; height: 20px;
  margin-left: auto;
  color: var(--tinte);
  transition: transform .15s;
}
.guia-prenda[open] summary .chevron { transform: rotate(180deg); }
.guia-prenda p {
  margin: 0;
  padding: 0 .9rem .85rem;
  font-size: .85rem;
  color: var(--suave);
  line-height: 1.5;
}

.guia-imagen {
  padding: 0 .9rem .9rem;
}
.guia-imagen img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--borde);
  background: #fff;
}


/* ---------- Stepper numérico (pantalón y calzado) ---------- */

.stepper {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  overflow: hidden;
  background: var(--superficie);
}
.stepper:focus-within {
  border-color: var(--relleno);
  box-shadow: 0 0 0 4px var(--primario-suave);
}

.stepper-btn {
  flex: 0 0 44px;
  border: none;
  background: transparent;
  color: var(--tinte);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.stepper-btn:hover { background: var(--primario-suave); }
.stepper-btn:active { background: color-mix(in srgb, var(--primario) 22%, var(--superficie)); }
.stepper-btn.menos { border-right: 1.5px solid var(--borde); }
.stepper-btn.mas { border-left: 1.5px solid var(--borde); }

.stepper-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto);
  padding: .75rem .5rem;
  -moz-appearance: textfield;
}
.stepper-input:focus { outline: none; }
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- Panel de administración: tema de colores ---------- */

.admin-form { display: grid; gap: 1.5rem; }

.selector-color {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.selector-color input[type="color"] {
  flex: 0 0 48px;
  width: 48px;
  height: 42px;
  padding: 4px;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  background: var(--superficie-alt);
  cursor: pointer;
}
.selector-color input[type="text"] {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  text-transform: lowercase;
}

.paleta-preset {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .65rem;
  margin-bottom: .75rem;
}
.admin-form .etiqueta-chica { margin-top: .5rem; } /* aire entre cada control y su texto de ayuda */
.tema-preset {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--borde);
  background: var(--muestra);
  color: var(--muestra-texto);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  padding: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tema-preset:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35); }

/* ---------- Responsive ---------- */


.btn-primario:disabled { opacity: .7; cursor: progress; }

/* ---------- Campo obligatorio sin completar ---------- */

/* Cada prenda sin elegir se marca en su propio recuadro. El margen deja aire entre
   un recuadro y el siguiente, para que dos prendas seguidas no se peguen. */
.prenda.falta {
  border-radius: 12px;
  background: var(--error-fondo);
  box-shadow: 0 0 0 2px var(--error-texto);
  animation: sacudida .35s ease-in-out;
}
.prenda.falta {
  margin: 1rem -.9rem;
  padding: 1.25rem .9rem;
  border-bottom-color: transparent;
}
.prenda.falta .etiqueta-prenda { color: var(--error-texto); }
.prenda.falta .chip span,
.prenda.falta .stepper { border-color: var(--error-texto); }
.msg-falta {
  margin: .55rem 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--error-texto);
}
@keyframes sacudida {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .prenda.falta { animation: none; }
}

/* ---------- Datos de contacto y confirmación del domicilio real ---------- */

.pendiente { color: var(--suave); font-style: italic; font-weight: 500; }
.datos-nota { margin: 1rem 0 0; font-size: .8rem; color: var(--suave); line-height: 1.5; }
.confirmacion {
  margin-top: 1.1rem;
  padding: .9rem 1rem;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--superficie-alt);
}
.confirmacion .check {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--texto);
  cursor: pointer;
}
/* Pisa el estilo general de "input" (ancho 100%, relleno, borde) que no sirve para una casilla. */
.confirmacion .check input {
  appearance: auto;
  -webkit-appearance: checkbox;
  flex: 0 0 1.3rem;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  accent-color: var(--relleno);
  cursor: pointer;
}

@media (max-width: 560px) {
  .logo-cabecera { order: -1; flex-basis: 100%; margin-bottom: .25rem; }
}

/* ---------- Barra fija del perfil: nombre, logo y "Cerrar sesión" siempre a la vista ---------- */

.cabecera-fija {
  position: sticky;
  top: 0;
  z-index: 20;
  /* se pega al borde superior de la pantalla (anula el relleno de arriba de .fondo-app) */
  margin: -2.5rem 0 1.5rem;
  padding: .75rem 1.1rem;
  background: color-mix(in srgb, var(--superficie) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--borde);
  border-top: none;
  border-radius: 0 0 var(--radio) var(--radio);
}
.cabecera-fija .avatar { width: 42px; height: 42px; font-size: .95rem; }
.cabecera-fija .identidad h1 { font-size: 1.25rem; }

/* que al llevar a la persona a un campo no quede tapado por la barra */
.prenda, .confirmacion { scroll-margin-top: 7.5rem; }

@media (max-width: 560px) {
  .cabecera-fija {
    flex-wrap: wrap;
    row-gap: .35rem;
    margin: -2.5rem -.5rem 1.25rem;
    padding: .55rem .8rem;
  }
  .cabecera-fija .logo-cabecera { flex-basis: 100%; }
  .cabecera-fija .logo-cabecera img { max-height: 26px; }
  .cabecera-fija .identidad { flex: 1; }
  .cabecera-fija .avatar { width: 36px; height: 36px; font-size: .85rem; }
  .cabecera-fija button.secundario { padding: .45rem .75rem; }
}

/* ---------- Acceso (login) ---------- */

/* Dos mitades: a la izquierda la marca, con el logo grande como marca de
   agua; a la derecha el formulario. En el celular, la marca queda arriba. */
.acceso {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.acceso-marca {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background: color-mix(in srgb, var(--primario) 62%, #04121a);
}
.acceso-marca-logo { position: relative; height: 3rem; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.acceso-marca-icono { display: block; width: 3.5rem; height: 3.5rem; filter: none; }
.acceso-marca-icono svg { width: 100%; height: 100%; }
.acceso-marca-agua {
  position: absolute;
  right: -12%;
  bottom: 4%;
  width: 92%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .09;
  pointer-events: none;
}
.acceso-marca-texto { position: relative; }
.acceso-marca-texto h2 {
  display: block;
  max-width: 11ch;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
}
.acceso-marca-texto p { margin: 1.1rem 0 0; font-size: 1.1rem; color: rgba(255, 255, 255, .78); }

.acceso-form, .acceso-simple {
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
  background: var(--fondo-1);
}
.acceso-simple { min-height: 100vh; }
.acceso-contenido { width: 100%; max-width: 22rem; }
.acceso-contenido h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3rem); }
.bajada { margin: .6rem 0 0; font-size: 1.05rem; color: var(--suave); }
.acceso-contenido .form { margin-top: 1.75rem; }
.acceso-contenido .campo { margin-bottom: 1.15rem; }
.acceso-contenido .campo input { height: 3rem; padding: 0 .9rem; }

.enlace-discreto { margin: 2rem 0 0; font-size: .9rem; }
.enlace-discreto a { color: var(--suave); }
.enlace-discreto a:hover { color: var(--tinte); }

.sello {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  color: var(--tinte);
  background: var(--primario-suave);
  border-radius: 50%;
}
.sello svg { width: 1.3rem; height: 1.3rem; }

@media (max-width: 820px) {
  .acceso { grid-template-columns: 1fr; }
  .acceso-marca { gap: 1.5rem; padding: 1.5rem 1.25rem 2rem; }
  .acceso-marca-logo { height: 2.2rem; }
  .acceso-marca-agua { right: -22%; bottom: -8%; width: 120%; }
  .acceso-marca-texto h2 { max-width: none; font-size: 2.3rem; }
  .acceso-marca-texto p { margin-top: .6rem; font-size: 1rem; }
  .acceso-form { align-items: start; padding-top: 2rem; }
}

/* ---------- Aviso previo a confirmar los talles ---------- */

.nota-confirmacion {
  margin: 1.5rem 0 1rem;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--suave);
}

/* En el tema oscuro el logo (azul) no se lee: se muestra en blanco. */
:root[data-tema="oscuro"] .logo-cabecera img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root[data-tema="auto"] .logo-cabecera img { filter: brightness(0) invert(1); }
}

/* ---------- Domicilio real (solo lectura) ---------- */

.subtitulo {
  margin: 1.6rem 0 .9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--borde);
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
}

/* Aclaración debajo de "Confirmo que los datos de mi domicilio real son correctos". */
.confirmacion-ayuda { margin: .45rem 0 0 2.05rem; font-size: .8rem; line-height: 1.45; color: var(--suave); }
