/* K-VIBE+ · landing de concurso (diseño aprobado v3). Mobile first.
   Look: degradado violeta/magenta, vidrio con borde neón, títulos en mayúsculas itálicas,
   orbes que se mueven y cambian de color lentamente. */
:root {
  --bg: #3a0ca3; --bg2: #c21fd1; --primary: #8b3dff; --secondary: #4fd6ff; --accent: #ff3fd2;
  --text: #ffffff; --muted: rgba(255,255,255,.82);
  --glass: rgba(255,255,255,.12); --glass-line: rgba(255,255,255,.4);
  --field: rgba(255,255,255,.12); --line: rgba(255,255,255,.28);
  --error: #ffb3cf; --ok: #7dffcf;
  --radius: 26px;
  --font: 'LG EI Headline', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@property --c1 { syntax: '<color>'; inherits: false; initial-value: #ff3fd2; }
@property --c2 { syntax: '<color>'; inherits: false; initial-value: #4fd6ff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(160deg, rgba(58,12,163,.35), rgba(194,31,209,.2)), url('../img/v3/fondo.webp');
  background-size: cover; background-position: center; background-attachment: fixed;
  overflow-x: hidden;
}
html { overflow-x: clip; }
@supports (-webkit-touch-callout: none) { body { background-attachment: scroll; } } /* iOS no soporta fixed */
img { max-width: 100%; height: auto; display: block; }
a { color: #fff; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Orbes de fondo (se mueven y cambian de color) ---------- */
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; opacity: .55; will-change: transform;
  background: radial-gradient(circle at 50% 50%, var(--c1) 0%, color-mix(in srgb, var(--c1) 40%, transparent) 35%, transparent 68%);
  animation: drift 34s ease-in-out infinite alternate, tint 22s ease-in-out infinite alternate;
}
.o1 { width: 90vmax; height: 90vmax; left: -45vmax; top: -40vmax; --c1: #ff3fd2; }
.o2 { width: 80vmax; height: 80vmax; right: -40vmax; top: 10vh; --c1: #4fd6ff; animation-duration: 40s, 26s; animation-delay: -8s, -6s; opacity: .4; }
.o3 { width: 70vmax; height: 70vmax; left: 10vw; bottom: -45vmax; --c1: #8b3dff; animation-duration: 46s, 30s; animation-delay: -14s, -12s; }
.o4 { width: 45vmax; height: 45vmax; right: 5vw; bottom: 5vh; --c1: #ff7ae0; animation-duration: 30s, 18s; animation-delay: -20s, -3s; opacity: .35; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
  100% { transform: translate3d(-6vw, 10vh, 0) scale(.94); }
}
@keyframes tint {
  0%   { --c1: #ff3fd2; }
  33%  { --c1: #8b3dff; }
  66%  { --c1: #4fd6ff; }
  100% { --c1: #ff7ae0; }
}

/* ---------- Encabezado ---------- */
.site-head, main, .footer { position: relative; z-index: 1; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 14px 16px; }
.brand { display: block; }
.logo-img { height: 46px; width: auto; }
.logo-ph { font-weight: 800; font-style: italic; font-size: 24px; }
.logo-ph b { color: var(--secondary); }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: italic 700 16px var(--font); letter-spacing: .3px; text-transform: uppercase; color: #fff;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn-neon {
  background: linear-gradient(95deg, var(--accent) 0%, var(--primary) 50%, #4f7bff 78%, var(--secondary) 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), inset 0 6px 14px rgba(255,255,255,.28), 0 0 22px rgba(255,63,210,.55), 0 0 44px rgba(79,214,255,.25);
}
.btn-neon:hover { filter: brightness(1.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.8), inset 0 6px 14px rgba(255,255,255,.3), 0 0 30px rgba(255,63,210,.75), 0 0 60px rgba(79,214,255,.4); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 40px; font-size: 19px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .8; cursor: progress; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; color: #fff; font: 600 15px var(--font); text-decoration: underline; cursor: pointer; padding: 8px; }

/* ---------- Vidrio con borde neón ---------- */
.glass, .card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.06) 55%, rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 22px rgba(255,255,255,.14), 0 0 26px rgba(255,63,210,.35), 0 10px 40px rgba(40,0,90,.25);
}
.glass::before, .card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; pointer-events: none;
  background: linear-gradient(100deg, var(--accent) 0%, #d9a6ff 35%, #ffffff 55%, var(--secondary) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass::after, .card::after { /* destello */
  content: ''; position: absolute; top: -9px; right: 22px; width: 22px; height: 22px; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, rgba(255,255,255,.6) 30%, transparent 62%);
  filter: drop-shadow(0 0 8px #fff);
}

/* ---------- Hero ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 16px 40px; }
.hero { position: relative; text-align: center; padding: 6px 16px 24px; overflow-x: clip; width: 100vw; margin-left: calc(50% - 50vw); }
.hero-head { position: relative; width: min(92vw, 660px); margin: 4px auto 0; --w: min(92vw, 660px); font-weight: 400; }
.hero-head .over {
  position: absolute; left: 31.8%; right: 16%; top: 13.5%; z-index: 2; white-space: nowrap; text-align: left;
  font: italic 800 calc(var(--w) * .056) / 1 var(--font); letter-spacing: .02em; text-transform: uppercase; color: #fff;
}
.hero-logo { width: 100%; height: auto; }
.pill-hero {
  position: relative; display: block; width: 92%; margin: -3% auto 0; padding: .32em .4em; border-radius: .55em;
  font: italic 800 calc(var(--w) * .062) / 1.05 var(--font); text-transform: uppercase; letter-spacing: .01em; color: #fff; white-space: nowrap;
  transform: skewX(-14deg);
  background: linear-gradient(95deg, var(--accent) 0%, var(--primary) 42%, #5a6bff 72%, var(--secondary) 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.65), inset 0 8px 18px rgba(255,255,255,.3), 0 0 26px rgba(255,63,210,.65), 0 0 60px rgba(79,214,255,.3);
}
.pill-hero > span { display: block; transform: skewX(14deg); text-shadow: 0 2px 12px rgba(80,0,140,.45); }
.pill-hero::after { content: ''; position: absolute; top: -10px; right: 6%; width: 26px; height: 26px; background: radial-gradient(circle, #fff 0 16%, rgba(255,255,255,.6) 30%, transparent 62%); filter: drop-shadow(0 0 10px #fff); }

/* Pasos con personaje */
.step-list { list-style: none; margin: 34px auto 0; padding: 0; display: grid; gap: 22px; max-width: 560px; }
.step { position: relative; display: grid; grid-template-columns: 42% 1fr; align-items: center; }
.step-img { position: relative; z-index: 2; width: 115%; max-width: none; margin-left: -6%; filter: drop-shadow(0 10px 24px rgba(40,0,90,.35)); }
.step-text {
  margin: 0 0 0 -8%; padding: 20px 18px 20px 17%; text-align: left;
  font-weight: 600; font-size: clamp(14px, 3.7vw, 17px); line-height: 1.4;
}
.step.is-right { grid-template-columns: 1fr 42%; }
.step.is-right .step-img { order: 2; margin-left: -9%; }
.step.is-right .step-text { order: 1; margin: 0 -8% 0 0; padding: 20px 17% 20px 18px; text-align: right; }

.claim { display: grid; justify-items: center; gap: 14px; margin: 34px 0 26px; }
.claim p { margin: 0; font-size: clamp(20px, 5.4vw, 34px); line-height: 1.15; text-transform: uppercase; font-style: italic; text-shadow: 0 2px 16px rgba(60,0,120,.4); }
.claim .light { font-weight: 300; }
.claim b { font-weight: 800; }
.claim-sep { display: none; }
.claim-lg { width: min(60vw, 260px); height: auto; }

/* Piezas 3D flotantes (se mueven y cambian de tono) */
.deco { position: absolute; z-index: 0; pointer-events: none; will-change: transform; animation: bob 14s ease-in-out infinite alternate, hue 18s ease-in-out infinite alternate; }
.d-gusano { width: 90px; left: -34px; top: 40px; }
.d-estrellas { width: 70px; right: 2px; top: 46%; animation-duration: 9s, 15s; }
.d-nota { width: 54px; left: 4px; top: 52%; animation-duration: 11s, 20s; animation-delay: -4s, -7s; }
.d-espiral { width: 120px; right: -46px; bottom: 120px; animation-duration: 16s, 24s; animation-delay: -6s, -2s; }
.hero-head, .step-list, .claim, .hero > .btn { position: relative; z-index: 1; }
@keyframes bob {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(6px, -16px) rotate(6deg); }
  100% { transform: translate(-8px, 10px) rotate(-5deg); }
}
@keyframes hue {
  0%   { filter: hue-rotate(0deg) drop-shadow(0 0 14px rgba(255,255,255,.25)); }
  50%  { filter: hue-rotate(45deg) drop-shadow(0 0 18px rgba(255,63,210,.4)); }
  100% { filter: hue-rotate(-35deg) drop-shadow(0 0 14px rgba(79,214,255,.4)); }
}

/* ---------- Secciones ---------- */
.sheet { padding: 8px 0 20px; }
.card { padding: 26px 20px; margin: 22px 0; }
.center { text-align: center; }
.section-title, .display {
  margin: 0 0 18px; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05;
  font-size: clamp(1.6rem, 6.4vw, 2.3rem); text-shadow: 0 2px 18px rgba(255,63,210,.45);
}
.display.sm { font-size: clamp(1.5rem, 6.4vw, 2.1rem); }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); color: var(--muted); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list li::before { content: '✦'; position: absolute; left: 2px; top: 9px; color: #fff; text-shadow: 0 0 10px var(--secondary), 0 0 18px var(--accent); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); }

/* ---------- Formulario ---------- */
.form-wrap { scroll-margin-top: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 0; }
.leg-num { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 14px; font-style: normal; background: linear-gradient(135deg, var(--accent), var(--secondary)); box-shadow: 0 0 14px rgba(255,63,210,.6); }
.grid-2 { display: grid; gap: 0 14px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; font: 400 16px var(--font); color: #fff; background: var(--field);
  border: 1.5px solid var(--line); border-radius: 16px; padding: 13px 16px; min-height: 52px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 104px; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.6); }
input:focus, textarea:focus, select:focus { background: rgba(255,255,255,.18); border-color: #fff; box-shadow: 0 0 0 4px rgba(255,63,210,.35), 0 0 18px rgba(79,214,255,.35); }
[aria-invalid=true] { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(255,120,170,.35) !important; }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select option { color: #2a0a6b; background: #fff; }
.hint { font-size: .87rem; color: var(--muted); margin: 6px 0 0; }
.hint-warn { color: #ffe08a; }
.field-error { color: var(--error); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.counter { text-align: right; font-size: .82rem; color: var(--muted); margin: 4px 2px 0; }
.counter.near { color: #ffe08a; }

.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; min-height: 200px; margin: 12px 0 0;
  border: 2px dashed rgba(255,255,255,.55); border-radius: var(--radius); background: rgba(255,255,255,.07); cursor: pointer; overflow: hidden; font-weight: 400;
}
.dropzone:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.dropzone.is-invalid { border-color: var(--error); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dz-empty { display: grid; gap: 4px; justify-items: center; padding: 22px; color: var(--muted); pointer-events: none; }
.dz-empty svg { color: #fff; filter: drop-shadow(0 0 8px var(--accent)); }
.dz-empty strong { color: #fff; }
.dz-preview { width: 100%; max-height: 380px; object-fit: contain; background: rgba(0,0,0,.25); pointer-events: none; }
.dz-change { position: absolute; bottom: 10px; right: 10px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(40,0,90,.75); pointer-events: none; }

.consents { display: grid; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; margin: 0; }
.check input {
  flex: 0 0 24px; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 2px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.1); -webkit-appearance: none; appearance: none; display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: linear-gradient(135deg, var(--accent), var(--secondary)); border-color: #fff; }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check a { color: #fff; font-weight: 600; }
.cf-turnstile { margin: 0 0 14px; }
.fine { font-size: .82rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

.alert:focus { outline: none; }
.alert { border-radius: 16px; padding: 12px 16px; margin: 0 0 18px; font-weight: 600; text-align: left; }
.alert-error { background: rgba(255,80,140,.22); border: 1.5px solid rgba(255,170,200,.7); color: #fff; }
.alert-ok { background: rgba(80,255,190,.16); border: 1.5px solid rgba(140,255,210,.6); color: #fff; }

/* ---------- Verificación / gracias / mensajes ---------- */
main.narrow { max-width: 560px; padding-top: 16px; }
.icon-badge { width: 64px; height: 64px; border-radius: 50%; margin: 2px auto 12px; display: grid; place-items: center; font-size: 28px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--primary) 55%, var(--secondary)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 0 26px rgba(255,63,210,.6); }
.icon-badge.ok { background: linear-gradient(135deg, var(--secondary), #7dffcf); }
.code-form { margin: 20px 0 8px; }
.code-input { text-align: center; font-size: 30px !important; letter-spacing: 12px; font-weight: 700 !important; margin-bottom: 14px; padding-left: 24px !important; }
.verify-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.folio { font-size: 1.05rem; margin: 16px 0; }
.folio strong { display: inline-block; margin-left: 6px; padding: 6px 14px; border-radius: 12px; letter-spacing: 2px; background: rgba(255,255,255,.14); border: 1.5px solid var(--line); }
.lg-banner { margin: 22px 0; border-radius: 18px; overflow: hidden; }
.lg-banner-ph { aspect-ratio: 3 / 1; display: grid; place-content: center; justify-items: center; gap: 8px; background: linear-gradient(115deg, rgba(255,63,210,.5), rgba(139,61,255,.55) 55%, rgba(79,214,255,.45)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.lg-banner-ph span { font-size: 1.5rem; font-weight: 700; }
.lg-banner-ph img { width: min(70%, 280px); height: auto; }
.lg-banner-ph small { color: var(--muted); }
.announce { color: var(--muted); }
.announce strong { color: #fff; }
.legal { line-height: 1.7; }
.legal h2 { font-size: 1.15rem; margin-top: 1.4em; }

/* ---------- Footer ---------- */
.footer { padding: 30px 16px 44px; text-align: center; font-size: .9rem; color: var(--muted); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 10px; justify-items: center; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer a { color: #fff; }
.lg-logo { height: 26px; width: auto; }
.lg-logo-ph { font-weight: 700; color: #fff; }
.copy { font-size: .8rem; opacity: .75; }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  .site-head { padding: 20px 32px; }
  .logo-img { height: 54px; }
  main { padding: 0 32px 64px; }
  .hero { padding-top: 0; }
  .hero { padding: 0 32px 24px; }
  .claim { justify-content: center; }
  .hero-head { --w: min(46vw, 660px); width: var(--w); }
  .step-list { grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1180px; margin-top: 40px; }
  .step-text { font-size: 17px; }
  .claim { grid-template-columns: auto auto auto; align-items: center; gap: 34px; margin: 40px 0 34px; }
  .claim p { text-align: right; font-size: 30px; }
  .claim-sep { display: block; width: 2px; height: 74px; background: rgba(255,255,255,.75); border-radius: 2px; }
  .claim-lg { width: 270px; }
  .d-gusano { width: 200px; left: 4%; top: -10px; }
  .d-estrellas { width: 150px; right: 8%; top: 60px; }
  .d-nota { width: 90px; left: 3%; top: 46%; }
  .d-espiral { width: 230px; right: -40px; bottom: -20px; }
  .card { padding: 40px; }
  .rules, .form-wrap { max-width: 780px; margin-left: auto; margin-right: auto; }
  .form-wrap { margin-top: 40px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .deco { animation: none !important; }
  *, *::before, *::after { transition: none !important; }
}
