/* Canastas navideñas: estilo moderno con toque de Navidad (rojo, verde pino y dorado) */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --ink: #14161b; --mut: #5d6370; --line: #e4e6eb; --soft: #f7f8fa;
  --red: #c8102e; --red-d: #8f0c22; --redt: #fdecef;
  --pine: #0f5c3f; --pine-d: #0a3f2b; --grn: #11804f; --grnt: #e4f5ec;
  --gold: #f2b705; --gold-d: #a77b00; --goldt: #fff5d1;
  --blu: #1d5fd0; --blut: #e8f0ff;
  --radio: 14px; --sombra: 0 1px 2px #14161b0d, 0 8px 24px #14161b0f;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blu); }
.small { font-size: 13px; color: var(--mut); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; border: 0; padding: 10px 22px; font-weight: 700; cursor: pointer; background: var(--red); color: #fff; text-decoration: none; box-shadow: 0 6px 16px #c8102e33; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { background: var(--red-d); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 8px #c8102e33; }
.btn.full { width: 100%; }
.btn.sec { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.sec:hover { border-color: #c9cdd5; background: var(--soft); }
.btn.verde { background: var(--grn); box-shadow: 0 6px 16px #11804f33; }
.btn.verde:hover { background: var(--pine); }
.btn.chico { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .lnk:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lnk { background: none; border: 0; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; font-size: 14px; padding: 0 4px; }

/* Formularios */
.fld { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: 14px; }
.fld input, .fld select, .fld textarea { font-size: 16px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); font-weight: 400; width: 100%; transition: border-color .12s, box-shadow .12s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px #c8102e1a; outline: none; }
.fld textarea { min-height: 160px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.err { color: var(--red); font-size: 14px; font-weight: 650; min-height: 20px; }

/* Etiquetas de estado */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: var(--blut); color: var(--blu); }
.tag.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-registrada { background: #eef0f3; color: #4a505c; }
.s-enviada { background: var(--blut); color: var(--blu); }
.s-agencia { background: var(--redt); color: var(--red); }
.s-recogida { background: var(--grnt); color: var(--grn); }

.marca { display: flex; align-items: center; gap: 10px; }
.marca svg { flex: none; }
.marca b { font-size: 15px; line-height: 1.2; display: block; }

/* Banda navideña con nieve */
.navidad { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 85% -20%, #e0213f 0%, transparent 55%), linear-gradient(160deg, #b30d29 0%, #7d0a1d 100%); }
.navidad::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 18px, #fff 18px 24px, var(--pine) 24px 42px, #fff 42px 48px); opacity: .95; }
/* La nieve se mueve con transform (lo hace la tarjeta gráfica, sin redibujar la página) */
.nieve { position: absolute; inset: 0; pointer-events: none; overflow: hidden; contain: strict; }
.nieve::before, .nieve::after { content: ""; position: absolute; left: 0; right: 0; top: -200px; bottom: -200px;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 80px 120px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 150px 60px, #ffffffcc 50%, transparent 51%), radial-gradient(1.5px 1.5px at 190px 160px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 110px 10px, #ffffffaa 50%, transparent 51%), radial-gradient(1px 1px at 60px 180px, #fff 50%, transparent 51%);
  background-size: 220px 200px; opacity: .55; will-change: transform; animation: nevar 14s linear infinite; }
.nieve::after { background-size: 160px 150px; top: -150px; opacity: .7; animation-name: nevar2; animation-duration: 9s; }
@keyframes nevar { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 200px, 0); } }
@keyframes nevar2 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 150px, 0); } }

.cinta-demo { background: repeating-linear-gradient(-45deg, var(--goldt) 0 12px, #fff0b3 12px 24px); color: #6b4f00; border: 1px dashed var(--gold-d); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 650; text-align: center; }

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