/* ================= Inter U · base (compartido sitio + panel) ================= */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("../fonts/montserrat-latin-900-normal.woff2") format("woff2"); }

:root {
  /* Paleta sacada del flyer */
  --night-950: #0d0418;
  --night-900: #160828;
  --night-850: #1c0b33;
  --night-800: #24103f;
  --night-700: #2f1653;
  --night-600: #3d1d6b;
  --violet-500: #5b2fc9;
  --violet-400: #7c4dff;
  --teal-400: #19b6d2;
  --gold-400: #ffb440;
  --gold-300: #ffc96b;
  --pumpkin-500: #f2621a;
  --pumpkin-400: #ff8a2a;
  --tape: #ffd21f;
  --moon: #f3f1ee;

  --ink: #ffffff;
  --ink-2: #e6dcf7;
  --ink-3: #b6a5d4;
  --ink-4: #8a77ad;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);

  --ok: #2ee59d;
  --bad: #ff4d6d;
  --warn: #ffb440;

  --radius: 20px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--night-900);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-400); color: var(--night-900); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--gold-400); --fg: #1a0b30;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 16px; letter-spacing: .02em; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn--cta {
  min-height: 60px; padding: 0 34px; font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 12px 40px -8px rgba(255, 180, 64, .55), 0 0 80px -10px rgba(242, 98, 26, .5);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset, 0 14px 44px -8px rgba(255, 180, 64, .7); }
  .btn--cta:hover { transform: translateY(-2px); }
}
.btn--ghost { --bg: rgba(255, 255, 255, .06); --fg: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn--dark { --bg: var(--night-700); --fg: var(--ink); }
.btn--ok { --bg: var(--ok); --fg: #062a1b; }
.btn--bad { --bg: var(--bad); --fg: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font-size: 16px; /* evita zoom en iPhone */
  background: rgba(255, 255, 255, .05); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-400); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(255, 180, 64, .15); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b6a5d4' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.select option { background: var(--night-800); }
.textarea { min-height: 90px; resize: vertical; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.check input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 2px solid var(--line-2); background: rgba(255, 255, 255, .04); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s; }
.check input::after { content: ""; width: 12px; height: 7px; border: 3px solid #1a0b30; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .18s var(--ease-out); }
.check input:checked { background: var(--gold-400); border-color: var(--gold-400); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check a { color: var(--gold-400); }

/* ---------- Alertas ---------- */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; line-height: 1.45; border: 1px solid; }
.alert--error { background: rgba(255, 77, 109, .12); border-color: rgba(255, 77, 109, .4); color: #ffd0d9; }
.alert--ok { background: rgba(46, 229, 157, .1); border-color: rgba(46, 229, 157, .35); color: #c9ffe8; }
.alert--info { background: rgba(255, 180, 64, .1); border-color: rgba(255, 180, 64, .35); color: #ffe7c2; }

/* ---------- Cinta de peligro ---------- */
.tape {
  --tape-h: 46px;
  position: relative; overflow: hidden; height: var(--tape-h);
  background: var(--tape); color: #111;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  border-block: 3px solid #111;
}
.tape::before, .tape::after { /* rayas negras en los bordes */
  content: ""; position: absolute; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(-45deg, #111 0 12px, transparent 12px 24px);
}
.tape::before { top: 0; } .tape::after { bottom: 0; }
.tape__track { display: flex; width: max-content; height: 100%; align-items: center; animation: tape-scroll 32s linear infinite; }
.tape__track span { padding: 0 22px; font-weight: 900; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.tape__track span::after { content: "✦"; margin-left: 44px; font-size: 12px; }
.tape--reverse .tape__track { animation-direction: reverse; }
@keyframes tape-scroll { to { transform: translateX(-50%); } }

/* Movimiento reducido: solo calmamos lo más intrusivo (las animaciones decorativas suaves se mantienen) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape__track { animation-duration: 90s !important; }
}
