:root {
  color-scheme: light dark;
  --fondo: #ffffff;
  --texto: #1a1a1a;
  --texto-suave: #5a5a5a;
  --borde: #d9d9d9;
  --acento: #b3121b;
  --acento-texto: #ffffff;
  --superficie: #f6f6f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #16151a;
    --texto: #f1f1f1;
    --texto-suave: #b5b5b5;
    --borde: #3a3a3f;
    --superficie: #211f26;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
}

.contenedor {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}
.contenedor.ancho { max-width: 1000px; }
.contenedor.centrado { text-align: center; padding-top: 4rem; }

h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; border-bottom: 1px solid var(--borde); padding-bottom: 0.35rem; }

.ayuda { color: var(--texto-suave); font-size: 0.95rem; }

.lista-novedades { list-style: none; margin: 0; padding: 0; }
.novedad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--borde);
}
.novedad-check { display: flex; align-items: center; gap: 0.6rem; flex: 1; cursor: pointer; }
.novedad-check input[type="checkbox"] { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.novedad-nombre { font-size: 0.95rem; }
.novedad-precio { color: var(--acento); font-size: 0.95rem; font-weight: 700; white-space: nowrap; }

input[type="number"].cantidad-novedad,
input[type="number"].otro-cantidad {
  width: 3.5rem;
  padding: 0.35rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  background: var(--fondo);
  color: var(--texto);
}
input:disabled { opacity: 0.4; }

.fila-otro {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.fila-otro .otro-nombre {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  background: var(--fondo);
  color: var(--texto);
}
.quitar-otro {
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--texto);
  border-radius: 6px;
  width: 2.2rem;
  cursor: pointer;
}

.grupo-datos label { display: block; margin-top: 0.75rem; font-size: 0.9rem; }
.grupo-datos input[type="text"],
.grupo-datos input[type="tel"] {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.25rem;
  border: 1px solid var(--borde);
  border-radius: 8px;
  background: var(--fondo);
  color: var(--texto);
  font-size: 1rem;
}

.boton-principal {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--acento);
  color: var(--acento-texto);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.boton-enlace { width: auto; padding: 0.7rem 1.5rem; display: inline-block; }
.boton-secundario {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  background: var(--superficie);
  color: var(--texto);
  cursor: pointer;
  font-size: 0.9rem;
}

.error { color: var(--acento); font-weight: 600; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fila-importar { display: flex; gap: 0.5rem; }
.fila-importar input { flex: 1; padding: 0.5rem; border: 1px solid var(--borde); border-radius: 6px; background: var(--fondo); color: var(--texto); }

.mensaje-admin {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 0.75rem;
}

.tabla-admin { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 1rem; }
.tabla-admin th, .tabla-admin td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--borde); }
.tabla-admin tr.inactivo { opacity: 0.5; }
