/* Acepta · base común (tipografías, colores y piezas) */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --fondo: #E4E8F5;
  --fondo-2: #EEF1FA;
  --crema: #FBF8F1;
  --tinta: #12141C;
  --tinta-2: #3F465E;
  --tinta-3: #4A5068;
  --suave: #6B728A;
  --linea: #D5DBEC;
  --azul: #1F56E0;
  --azul-texto: #1D4ED8;
  --azul-claro: #DCE4FF;
  --oscuro: #14161F;
  --verde: #0F8A5F;
  --verde-claro: #DDF5EA;
  --ambar: #B45309;
  --ambar-claro: #FEF0D7;
  --rojo: #C2253D;
  --rojo-claro: #FDE3E7;
  --morado: #6D4AD6;
  --morado-claro: #ECE6FF;
  --blanco: #FFFFFF;
  --sombra: 0 10px 30px rgba(40, 56, 110, 0.08);
  --sombra-2: 0 24px 60px rgba(40, 56, 110, 0.14);
  --radio: 24px;
  --titulo: "Plus Jakarta Sans", system-ui, sans-serif;
  --texto: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--texto); color: var(--tinta); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--titulo); letter-spacing: -0.02em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--azul-texto); }
:focus-visible { outline: 3px solid rgba(31, 86, 224, 0.45); outline-offset: 2px; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn-azul { background: var(--azul); color: #fff; box-shadow: 0 8px 20px rgba(31, 86, 224, 0.28); }
.btn-azul:hover { background: #1849C4; }
.btn-oscuro { background: var(--oscuro); color: #fff; }
.btn-blanco { background: #fff; color: var(--tinta); box-shadow: var(--sombra); }
.btn-suave { background: var(--fondo-2); color: var(--tinta); }
.btn-verde { background: #1FA971; color: #fff; }
.btn-rojo { background: var(--rojo-claro); color: var(--rojo); }
.btn-chico { padding: 9px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip-gris { background: #EDEFF5; color: #4A5068; }
.chip-azul { background: var(--azul-claro); color: var(--azul-texto); }
.chip-verde { background: var(--verde-claro); color: var(--verde); }
.chip-ambar { background: var(--ambar-claro); color: var(--ambar); }
.chip-rojo { background: var(--rojo-claro); color: var(--rojo); }
.chip-morado { background: var(--morado-claro); color: var(--morado); }

.tarjeta { background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: var(--radio); box-shadow: var(--sombra); }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--tinta-2); }
.campo input, .campo select, .campo textarea { font-weight: 400; color: var(--tinta); padding: 12px 14px; border-radius: 14px; border: 1px solid #C9D0E3; background: #F7F8FC; }
.campo textarea { min-height: 96px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgba(31, 86, 224, 0.12); }

.aviso-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--oscuro); color: #fff; padding: 13px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; transition: all .25s ease; z-index: 100; pointer-events: none; max-width: calc(100vw - 32px); }
.aviso-toast.ver { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.entra { animation: subir .45s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .entra { animation: none; } * { transition: none !important; } }
