/* path: viral/site/styles.css */
/* Viralviral.es: negro cálido, degradado rojo → naranja → amarillo → blanco, pegatinas con sombra dura.
   Las secciones alternan color (oscuro, naranja, blanco, oscuro, amarillo) y los botones van en verde. */
:root {
  --ink: #0E0B0A;
  --ink-2: #1A1311;
  --line: #3A2620;
  --red: #FF2D3C;
  --orange: #FF6A1A;
  --yellow: #FFC21A;
  --cream: #FFF3E0;
  --paper: #FFF8EE;
  --muted: #C9AFA0;
  --relief: #9C0F1C;
  --green: #2BE07B;
  --green-deep: #0A6B35;
  --hot: linear-gradient(135deg, var(--red), var(--orange) 45%, var(--yellow) 78%, #fff);
  --display: 'Bagel Fat One', 'Arial Black', sans-serif;
  /* Pareja de la gorda: Outfit, geométrica y redonda, que se lee limpia. Un trozo de cada titular en cada una. */
  --body: 'Outfit', system-ui, sans-serif;
  --alt: 'Outfit', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Grano encima de todo, para que el negro no sea plano. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 10;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: .005em; }
.alt, .cta, .step h3, .offer b, .easy, .join h2 span {
  font-family: var(--alt);
  font-weight: 600;
  letter-spacing: -.015em;
}
h1 .alt, h2 .alt { text-shadow: none; color: inherit; }
.cta { font-weight: 700; }
p { margin: 0; }
.wrap, .hero, footer { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* --- 1 · hero --- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  text-align: center;
  padding: 48px 0 64px;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 6% 0 auto;
  height: 70%;
  background: radial-gradient(closest-side, #FF6A1A40, #FF2D3C14 55%, transparent);
  filter: blur(10px);
  z-index: -1;
}
.lockup { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 30px); }
.mark { width: clamp(92px, 20vw, 180px); height: auto; overflow: visible; flex: none; }
.mark .outer, .mark .inner, .mark .ring { transform-box: view-box; transform-origin: 60px 60px; }
.mark .outer { animation: drop .14s cubic-bezier(.55, 0, 1, .45) .2s both, land .5s ease-out .34s; }
.mark .inner { animation: drop .13s cubic-bezier(.55, 0, 1, .45) .68s both, land .5s ease-out .81s, beat 1.9s ease-in-out 2.2s infinite; }
.mark .ring { opacity: 0; animation: echo 1.9s ease-out 1.6s infinite; }
.wordmark { width: clamp(220px, 46vw, 470px); height: auto; animation: slam .35s cubic-bezier(.2, 1.6, .4, 1) 1s both; }
.hero h1 { font-size: clamp(42px, 8vw, 86px); text-shadow: 5px 5px 0 var(--relief); animation: rise .5s ease-out 1.35s both; }
.hero h1 em { font-style: normal; color: var(--yellow); white-space: nowrap; }
.sub { color: var(--muted); max-width: 44ch; font-size: clamp(17px, 2.2vw, 21px); animation: rise .5s ease-out 1.5s both; }
.hero .cta { animation: rise .5s ease-out 1.65s both; }
.easy { color: #fff; font-size: 20px; opacity: .85; animation: rise .5s ease-out 1.8s both; }
@keyframes drop { from { transform: translateY(-140%); opacity: 0; } 60% { opacity: 1; } to { transform: translateY(0); opacity: 1; } }
@keyframes land { 0% { transform: scale(1.12, .86); } 40% { transform: scale(.95, 1.06); } 100% { transform: scale(1); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes echo { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes slam { from { opacity: 0; transform: scale(1.6) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Botón verde: el de vender. */
.cta {
  font-size: 21px;
  display: inline-block;
  border: 3px solid var(--ink);
  background: var(--green);
  color: var(--ink);
  padding: 14px 26px 12px;
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--green-deep);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.cta:hover { background: #5BF09B; transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 9px 9px 0 var(--green-deep); }
.cta:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--green-deep); }
.cta:disabled { opacity: .6; cursor: default; }

/* --- secciones --- */
section { padding: clamp(56px, 9vw, 96px) 0; position: relative; }
section h2 { font-size: clamp(34px, 6vw, 60px); margin-bottom: 18px; }
.band { color: var(--ink); }

/* 2 · prueba: banda naranja, inclinada */
.proof { background: linear-gradient(120deg, var(--red), var(--orange) 60%, var(--yellow)); clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); }
.proof h2 { max-width: 18ch; color: #fff; text-shadow: 4px 4px 0 var(--relief); }
.proof .lead { font-size: clamp(19px, 2.6vw, 24px); font-weight: 800; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.ticks li {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px 6px 12px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--relief);
}
.ticks li::before { content: '✓'; color: var(--green-deep); margin-right: 8px; }
.nomore { font-family: var(--display); font-size: clamp(24px, 4.4vw, 40px); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nomore s { text-decoration-color: var(--ink); text-decoration-thickness: 5px; opacity: .8; }

/* 3 · cómo: sección blanca con pantallitas */
.light { background: var(--paper); }
.how h2 { color: var(--ink); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px 22px; }
.step {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 18px 20px 22px;
  display: grid;
  gap: 8px;
  align-content: start;
  position: relative;
  box-shadow: 8px 8px 0 var(--accent);
  transition: transform .2s;
}
.step:hover { transform: translate(-3px, -3px) rotate(-.6deg); }
.s1 { --accent: var(--red); }
.s2 { --accent: var(--orange); }
.s3 { --accent: var(--green); }
.step .n {
  position: absolute; top: -20px; left: -12px;
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--display); font-size: 28px; color: #fff;
  background: var(--accent); border: 3px solid var(--ink); border-radius: 12px; transform: rotate(-8deg);
}
.step h3 { font-size: 28px; color: var(--ink); margin-top: 4px; }
.step p { color: #5B4A40; }
.ui { height: 128px; border-radius: 14px; background: var(--ink); margin-bottom: 8px; position: relative; overflow: hidden; }
.lib { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.lib .t { border-radius: 10px; display: grid; place-items: end start; padding: 8px 10px; font-weight: 800; font-size: 13px; color: var(--ink); animation: pick 3.2s ease-in-out infinite; }
.lib .c1 { background: var(--red); color: #fff; }
.lib .c2 { background: var(--orange); animation-delay: .8s; }
.lib .c3 { background: var(--yellow); animation-delay: 1.6s; }
.lib .c4 { background: #fff; animation-delay: 2.4s; }
@keyframes pick { 0%, 20%, 100% { transform: none; box-shadow: none; } 8% { transform: scale(1.05); box-shadow: 0 0 0 3px var(--green); } }
.prompt { padding: 16px; color: var(--cream); font-weight: 600; font-size: 15px; }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; max-width: calc(100% - 12px); vertical-align: bottom; animation: type 4s steps(42) infinite; }
.caret { display: inline-block; width: 9px; height: 18px; background: var(--yellow); vertical-align: -3px; animation: blink .8s steps(1) infinite; }
.save { position: absolute; right: 12px; bottom: 12px; background: var(--green); color: var(--ink); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 8px; }
@keyframes type { 0% { width: 0; } 60%, 100% { width: 100%; } }
@keyframes blink { 50% { opacity: 0; } }
.phone { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #3A1608, var(--ink) 70%); }
.phone::before { content: ''; position: absolute; width: 66px; height: 112px; border: 3px solid #fff; border-radius: 12px; top: 8px; }
.play { width: 0; height: 0; border-left: 22px solid var(--green); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; animation: beat 1.6s ease-in-out infinite; }
.spec { position: absolute; right: 10px; bottom: 8px; font-size: 11px; font-weight: 800; color: var(--muted); }

/* 4 · momento: oscuro con un filo de color a la izquierda */
.moment .wrap { border-left: 8px solid var(--orange); padding-left: clamp(18px, 4vw, 40px); }
.moment h2 { max-width: 16ch; }
.moment h2 em { font-style: normal; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.moment p { color: var(--muted); font-size: clamp(19px, 2.6vw, 24px); max-width: 40ch; }

/* 5 · taller: banda amarilla */
.workshop { background: var(--yellow); text-align: center; clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%); }
.workshop .wrap { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; }
.workshop h2 { font-size: clamp(36px, 8vw, 80px); margin: 0; text-shadow: 5px 5px 0 #fff; }
.sticker {
  font-family: var(--display);
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 6px 16px 4px;
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--relief);
  transform: rotate(-4deg);
  font-size: 18px;
}
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; width: 100%; max-width: 760px; margin: 6px 0 10px; text-align: left; }
.offer .card { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; box-shadow: 6px 6px 0 var(--orange); }
.offer b { font-size: 24px; line-height: 1.1; }
.offer span { color: #5B4A40; }

/* --- 6 · formulario --- */
.join h2 span { display: block; font-size: .5em; color: var(--yellow); margin-top: 6px; }
form {
  display: grid;
  gap: 16px;
  background: var(--ink-2);
  border: 2px solid var(--orange);
  border-radius: 22px;
  padding: clamp(18px, 4vw, 34px);
  box-shadow: 10px 10px 0 var(--relief);
}
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: start; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label small { font-weight: 400; color: var(--muted); }
.field { display: grid; gap: 6px; }
.lbl { font-weight: 600; font-size: 15px; }
.handle { display: grid; grid-template-columns: minmax(118px, 38%) 1fr; gap: 8px; }
input, select, textarea {
  font: inherit;
  font-weight: 400;
  color: var(--cream);
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 400; }
.pill:has(input:checked) { border-color: var(--green); color: var(--green); }
.pill input { width: auto; accent-color: var(--green); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; }
form .cta { justify-self: start; }
.msg { min-height: 1.5em; font-weight: 600; }
.msg.ok { color: var(--green); }
.msg.err { color: #FF8A8A; }
form.done { border-color: var(--green); }

footer { display: flex; align-items: center; gap: 10px; padding: 34px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

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

/* Contenido del Kit Viral (tarjeta del taller) */
.kit ul { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.kit li { color: #5B4A40; padding-left: 28px; position: relative; }
.kit li::before {
  /* El rombo de la marca en vez del check: relleno con el degradado (lo que te llevas)… */
  content: '';
  position: absolute;
  left: 3px;
  top: .5em;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--red), var(--orange) 50%, var(--yellow));
  border: 2px solid var(--ink);
}
/* …y hueco, como el rombo exterior (lo que aprendes). */
.learn li::before { background: #fff; border-color: var(--orange); }
/* Sello del producto: etiqueta negra con el símbolo y el nombre en la gorda con el degradado. */
.kitname {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 2px;
  padding: 3px 12px 1px 8px;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--orange);
  transform: rotate(-2deg);
  vertical-align: 2px;
}
.kitname svg { width: 22px; height: 22px; flex: none; }
.kitname span {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
  background: linear-gradient(120deg, var(--orange), var(--yellow) 60%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kit > span { font-weight: 600; color: var(--ink); }
