/* Lumio · sistema visual de Xora (docs/spec/00-interfaz.md). Monocromo estricto, sin acento. */
:root {
  --page-bg: #faf9f5;
  --soft-card-2: #f4f3ef;
  --panel-bg: #f0efeb;
  --soft-card: #e9e8e4;
  --white-card: #fffdf8;
  --text: #1b1b1b;
  --black: #181818;
  --deep-black: #151515;
  --muted: #6b675f;
  --muted-light: #bdbab2;
  --line: #d9d7d0;
  --sombra-suave: 0 30px 60px -12px rgb(24 24 24 / 0.04);
  --sombra-panel: 0 40px 80px -20px rgb(24 24 24 / 0.1);
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
  --fuente: Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body {
    font-size: 15px;
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p,
ol,
ul {
  margin: 0;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.etiqueta {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.apagado {
  color: var(--muted);
}

.pequeno {
  font-size: 14px;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Botones: píldora, monocromos, sin degradados */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 9999px;
  font: 600 12px/1 var(--fuente);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    background-color 0.2s;
}

.boton-primario {
  background: var(--black);
  color: var(--page-bg);
}

.boton-primario:hover {
  opacity: 0.8;
}

.boton-secundario {
  background: var(--soft-card);
  color: var(--text);
}

.boton-secundario:hover {
  background: var(--line);
}

.boton-invertido {
  background: var(--page-bg);
  color: var(--black);
}

.boton-invertido:hover {
  opacity: 0.8;
}

.boton-grande {
  min-height: 56px;
  padding: 0 32px;
  font-size: 13px;
}

.boton-pequeno {
  min-height: 36px;
  padding: 0 16px;
}

.boton:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.fondo-negro :focus-visible {
  outline-color: var(--page-bg);
}

/* Campos: relleno tonal, sin borde en reposo, borde negro al enfocar */
.campo {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--soft-card-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.campo:focus {
  outline: none;
  border-color: var(--black);
}

textarea.campo {
  resize: vertical;
  line-height: 1.5;
}

.icono {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Píldora negra flotante: la firma de Lumio */
.nav-pildora {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  max-width: 700px;
  height: 56px;
  padding: 0 10px 0 12px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: rgb(24 24 24 / 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--page-bg);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--page-bg);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.marca img {
  display: block;
  width: 32px;
  height: 32px;
}

.marca-sub {
  font-weight: 400;
  color: var(--muted-light);
}

.tarjeta {
  border: 1px solid var(--soft-card);
  border-radius: 32px;
  background: var(--white-card);
  padding: 32px;
  transition: box-shadow 0.3s var(--curva);
}

.tarjeta:hover {
  box-shadow: var(--sombra-suave);
}

/* Avisos (toasts) */
.avisos {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 520px;
  transform: translateX(-50%);
  pointer-events: none;
}

.aviso {
  padding: 12px 20px;
  border-radius: 9999px;
  background: var(--black);
  color: var(--page-bg);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--sombra-panel);
  animation: aparecer 0.3s var(--curva);
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
