/* =====================================================================
   FAME · estilos compartidos (web pública, misiones y panel)
   ===================================================================== */
:root {
  --mag: #E6007E;
  --mag-dark: #A8005C;
  --cyan: #29ABE2;
  --lime: #D9EC4B;
  --lime-dark: #8FA100;
  --black: #000;
  --night: #121216;
  --night-2: #1C1C22;
  --white: #fff;
  --pink-soft: #FFE3F2;
  --grey: #6B6B75;
  --line: #E7E7EC;
  --grad: linear-gradient(115deg, var(--cyan) 0%, var(--mag) 42%, var(--mag) 58%, var(--lime) 100%);
  --radius: 22px;
  --wrap: 1160px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* colores editables desde el panel > Contenido */
  --hd-bg: #000000; --hd-fg: #FFFFFF; --hd-hover: var(--lime);
  --ft-bg: #000000; --ft-fg: #BDBDC7;
  color-scheme: light;
}
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--black); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Tipografía de marca ---------- */
.display {
  font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; margin: 0;
}
/* el "sticker": lima con borde magenta y sombra negra, como en el Canva */
.sticker {
  color: var(--lime);
  text-shadow:
    -3px -3px 0 var(--mag), 3px -3px 0 var(--mag), -3px 3px 0 var(--mag), 3px 3px 0 var(--mag),
     0 -3px 0 var(--mag), 0 3px 0 var(--mag), -3px 0 0 var(--mag), 3px 0 0 var(--mag),
     6px 8px 0 var(--black);
}
.sticker--cyan { text-shadow:
    -3px -3px 0 var(--cyan), 3px -3px 0 var(--cyan), -3px 3px 0 var(--cyan), 3px 3px 0 var(--cyan),
     0 -3px 0 var(--cyan), 0 3px 0 var(--cyan), -3px 0 0 var(--cyan), 3px 0 0 var(--cyan),
     6px 8px 0 var(--black); }
.h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 60ch; }
.muted { color: var(--grey); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--lime); --fg: var(--black); --sh: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1rem; text-decoration: none;
  box-shadow: 0 5px 0 var(--sh); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sh); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sh); }
.btn--mag { --bg: var(--mag); --fg: var(--white); }
.btn--white { --bg: var(--white); }
.btn--ghost { --bg: transparent; --fg: currentColor; --sh: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--lime); color: var(--lime); }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; box-shadow: 0 3px 0 var(--sh); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--hd-bg); background: color-mix(in srgb, var(--hd-bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--hd-fg);
}
.header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand__txt { font-weight: 900; font-size: 1.7rem; letter-spacing: -.02em; }
.brand__txt { color: var(--lime); text-shadow: 2px 2px 0 var(--mag), -1px -1px 0 var(--mag), 1px -1px 0 var(--mag), -1px 1px 0 var(--mag); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--hd-hover); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
@media (max-width: 880px) {
  .nav { display: none; position: absolute; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--hd-bg); padding: 8px 16px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(128,128,128,.25); font-size: 1.05rem; }
  .menu-btn { display: block; }
  .header .btn { margin-left: 0; }
}

/* ---------- Hero (la "foto" de la noche) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--black);
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 110px);
}
.hero__bgimg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; pointer-events: none; }
.hero__grain { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(circle at 78% 30%, rgba(230,0,126,.55), transparent 42%),
    radial-gradient(circle at 92% 85%, rgba(217,236,75,.35), transparent 38%),
    radial-gradient(circle at 60% 110%, rgba(41,171,226,.45), transparent 40%);
}
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; width: 10px; height: 16px; border-radius: 2px; opacity: .85; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 10vw, 7.4rem); transform: rotate(-3deg); transform-origin: left; margin-bottom: 28px; }
.hero h1 span { display: block; }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 34ch; margin: 0 0 32px; opacity: .92; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { position: relative; justify-self: center; width: min(560px, 100%); aspect-ratio: 1200 / 700; }
.hero__art .mascot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__quote { position: absolute; right: 4%; bottom: -16%; background: var(--white); color: var(--black); font-weight: 800;
  padding: 10px 16px; border-radius: 18px 18px 4px 18px; transform: rotate(4deg); box-shadow: 4px 5px 0 var(--mag); font-size: .95rem; max-width: 220px; line-height: 1.3; }
/* flash: único momento animado de la página */
.flash { position: absolute; inset: 0; background: var(--white); pointer-events: none; z-index: 5; animation: flash 1.1s ease-out .25s both; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 880px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { width: min(420px, 100%); order: -1; }
}

/* ---------- Cinta ---------- */
.tape { background: var(--grad); color: var(--black); overflow: hidden; border-block: 3px solid var(--black); }
.tape__track { display: flex; width: max-content; animation: tape 32s linear infinite; }
.tape span { font-weight: 900; text-transform: uppercase; font-size: 1.1rem; padding: 12px 22px; white-space: nowrap; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; background: var(--white); }
.soft { opacity: .82; }
.lead--strong { font-weight: 500; }
.how-title { margin: 8px 0 18px; font-size: 1.3rem; }
.section--night { background: var(--black); color: var(--white); }
.section--grad { background: var(--grad); }
.section--pink { background: var(--pink-soft); }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__head .lead { margin-top: 20px; }

/* Qué es FAME */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about p { margin: 0 0 1em; max-width: 60ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center;
  padding: 16px 18px; border: 2px solid var(--black); border-radius: var(--radius); background: var(--white); box-shadow: 5px 5px 0 var(--black); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-weight: 900; font-size: 1.5rem; background: var(--mag); color: var(--lime); }
.steps li:nth-child(2)::before { background: var(--cyan); color: var(--white); }
.steps li:nth-child(3)::before { background: var(--lime); color: var(--black); }
.steps li:nth-child(4)::before { background: var(--black); color: var(--lime); }
.steps li { color: var(--black); }
.steps strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.steps span { font-size: .95rem; color: var(--grey); line-height: 1.45; display: block; margin-top: 2px; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }

/* Premios */
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prize { color: var(--black); background: var(--white); border: 3px solid var(--black); border-radius: 28px; padding: 26px 24px 28px; box-shadow: 8px 8px 0 var(--black); position: relative; }
.prize:nth-child(2) { transform: rotate(1.2deg); }
.prize:nth-child(3) { transform: rotate(-1deg); }
.prize__icon { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; border: 3px solid var(--black); }
.prize__icon svg { width: 52px; height: 52px; }
.prize__goal { font-weight: 900; font-size: 2.6rem; line-height: 1; }
.prize__goal small { font-size: 1rem; font-weight: 700; margin-left: 4px; }
.prize h3 { font-size: 1.35rem; margin: 10px 0 6px; line-height: 1.2; }
.prize p { margin: 0; color: var(--grey); font-size: .97rem; }
.prizes__foot { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--black); color: var(--white); border-radius: 28px; padding: 26px 30px; }
.prizes__foot p { margin: 0; font-size: 1.1rem; font-weight: 600; max-width: 46ch; }
@media (max-width: 880px) { .prizes { grid-template-columns: 1fr; } .prize:nth-child(n) { transform: none; } }

/* Productoras */
.b2b { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.b2b__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.b2b__list li { border-top: 3px solid var(--lime); padding-top: 14px; }
.b2b__list li:nth-child(2) { border-color: var(--mag); }
.b2b__list li:nth-child(3) { border-color: var(--cyan); }
.b2b__list li:nth-child(4) { border-color: currentColor; }
.b2b__list h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; }
.b2b__list p { margin: 0; opacity: .8; font-size: .97rem; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; padding: 0; list-style: none; }
.formats li { border: 1.5px solid rgba(128,128,128,.55); border-radius: 999px; padding: 6px 14px; font-size: .9rem; opacity: .92; }
@media (max-width: 880px) { .b2b { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .b2b__list { grid-template-columns: 1fr; } }

/* Instagram */
.ig__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.ig__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig__grid a { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; text-decoration: none; color: var(--white); font-weight: 800; }
.ig__grid a:nth-child(3n+1) { background: var(--mag); }
.ig__grid a:nth-child(3n+2) { background: var(--black); color: var(--lime); }
.ig__grid a:nth-child(3n) { background: var(--cyan); }
.ig__grid svg { width: 46%; height: auto; }
@media (max-width: 700px) { .ig__grid { grid-template-columns: repeat(3, 1fr); } }

/* Preguntas frecuentes */
.faq { max-width: 860px; }
.faq__list { display: grid; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.faq__item { border: 2px solid currentColor; border-radius: 18px; padding: 0 20px; }
.faq__item summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 1.05rem; padding: 18px 32px 18px 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 700; color: var(--mag); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 18px; opacity: .85; max-width: 70ch; }

/* Contacto */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.channels { display: grid; gap: 14px; margin-top: 28px; }
.channel { color: var(--black); display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--white); border: 3px solid var(--black);
  border-radius: 999px; padding: 10px 22px 10px 10px; box-shadow: 5px 5px 0 var(--black); font-weight: 800; word-break: break-all; }
.channel:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--black); }
.channel i { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: var(--lime); }
.channel i svg { width: 22px; height: 22px; }
.channel small { display: block; font-weight: 500; color: var(--grey); font-size: .82rem; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */
.card { color: var(--black); background: var(--white); border: 3px solid var(--black); border-radius: 28px; padding: clamp(22px, 4vw, 36px); box-shadow: 8px 8px 0 var(--black); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field label span { font-weight: 500; color: var(--grey); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px; border: 2px solid #CFCFD8; border-radius: 14px; background: var(--white); font-size: 1rem; transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mag); box-shadow: 0 0 0 3px rgba(230,0,126,.15); }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.ok { color: #16833B; }
.form-msg.err { color: #C0003F; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ft-bg); color: var(--ft-fg); padding: 48px 0 32px; font-size: .92rem; }
.footer__in { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer__legal { width: 100%; border-top: 1px solid rgba(128,128,128,.25); padding-top: 20px; margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--black); color: var(--white);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 100; transition: transform .25s; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 4px 0 var(--mag); visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Barra de aviso, vista previa y WhatsApp flotante ---------- */
.announce { text-align: center; font-weight: 700; font-size: .95rem; padding: 9px 16px; line-height: 1.4; }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }
.preview-flag { position: sticky; top: 0; z-index: 60; background: var(--cyan); color: var(--black); text-align: center; font-weight: 700; font-size: .9rem; padding: 8px 16px; }
.wa-float { position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

.demo-flag { background: var(--lime); color: var(--black); text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 16px; }
