  html { overflow-x: hidden; max-width: 100%; }
  :root {
    --bg: #0A0506;
    --surface: #160B0D;
    --surface-2: #221114;
    --ink: #F3E9E6;
    --muted: #A8918D;
    --accent: #D7263D;
    --accent-deep: #8E0F20;
    --accent-soft: rgba(215, 38, 61, 0.14);
    --line: rgba(243, 233, 230, 0.10);
    --shadow: 0 18px 38px -18px rgba(215, 38, 61, 0.65);
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --horror: "UnifrakturMaguntia", "Old English Text MT", serif;
    --verde: #47B865;
    --maquina: "Special Elite", "Courier New", monospace;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; min-height: 100vh; min-height: 100svh;
    background: radial-gradient(120% 60% at 50% 0%, #1A080B 0%, var(--bg) 60%) var(--bg);
    color: var(--ink); font-family: var(--sans); overflow-x: hidden;
  }
  .ambient {
    position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: 0; pointer-events: none;
    background: url("portada.jpg") center top / cover no-repeat;
    filter: blur(50px) brightness(0.45) saturate(1.4); opacity: 0.55;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
            mask-image: linear-gradient(to bottom, #000 40%, transparent);
  }
  /* Grano de película y viñeta: da el aire de cinta de terror */
  .grano {
    position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.07;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    box-shadow: inset 0 0 140px 40px rgba(0, 0, 0, 0.85);
    animation: grano 0.9s steps(4) infinite;
  }
  @keyframes grano { 0% { transform: translate(0, 0); } 25% { transform: translate(-6px, 4px); } 50% { transform: translate(4px, -6px); } 75% { transform: translate(-3px, -3px); } }

  .page { position: relative; z-index: 1; width: 100%; max-width: 480px; margin: 0 auto; }
  .hero { margin: 0; }
  .hero img {
    display: block; width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  }
  .content { position: relative; margin-top: -150px; padding: 0 20px calc(48px + env(safe-area-inset-bottom, 0px)); }

  .name { margin: 0 auto 6px; max-width: 360px; line-height: 0; animation: parpadeo 6s infinite; }
  .name img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 22px rgba(71, 184, 101, 0.35)); }
  @keyframes parpadeo {
    0%, 91%, 100% { opacity: 1; }
    92% { opacity: 0.35; } 93% { opacity: 1; } 95% { opacity: 0.55; } 96% { opacity: 1; }
  }
  .badge {
    display: block; width: fit-content; margin: 0 auto 14px; padding: 6px 14px; border-radius: 4px;
    font-family: var(--maquina); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
    color: var(--accent); background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(215, 38, 61, 0.4);
  }
  .tagline {
    text-align: center; font-size: 15px; line-height: 1.55; margin: 0 auto 20px; max-width: 33ch;
    text-shadow: 0 0 12px var(--bg), 0 0 4px var(--bg);
  }
  .tagline strong { color: var(--accent); font-weight: 700; }

  .socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
  .socials a {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--surface); display: flex; align-items: center; justify-content: center;
    color: var(--ink); transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .socials a svg { width: 20px; height: 20px; }
  .socials a:hover, .socials a:focus-visible { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

  .link-cta {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 17px 14px; margin-bottom: 34px; border-radius: 14px;
    text-decoration: none; text-align: center; font-size: clamp(16px, 4.6vw, 19px); font-weight: 800;
    background: linear-gradient(135deg, #C81D33, #6E0A17); color: #fff; box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: latido 2.4s ease-in-out infinite;
  }
  .link-cta svg { width: 22px; height: 22px; flex: none; }
  .link-cta.secundario { margin: 6px 0 30px; animation: none; }
  @keyframes latido {
    0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(215, 38, 61, 0.5); }
    14% { box-shadow: var(--shadow), 0 0 0 6px rgba(215, 38, 61, 0.18); }
    28% { box-shadow: var(--shadow), 0 0 0 0 rgba(215, 38, 61, 0.4); }
    42% { box-shadow: var(--shadow), 0 0 0 10px rgba(215, 38, 61, 0); }
  }

  .section-title {
    font-family: var(--horror); font-weight: 400; letter-spacing: 0.01em;
    font-size: 36px; line-height: 1.1; margin: 0 0 14px; color: var(--verde);
    text-shadow: 0 0 18px rgba(215, 38, 61, 0.45);
  }
  .section-title::after {
    content: ""; display: block; width: 72px; height: 10px; margin-top: 4px;
    background:
      radial-gradient(circle at 10px 2px, var(--verde) 3px, transparent 4px),
      radial-gradient(circle at 36px 4px, var(--verde) 2.5px, transparent 3.5px),
      linear-gradient(var(--verde), var(--verde)) 0 0 / 100% 3px no-repeat;
  }

  .videos {
    display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px 34px; padding: 0 20px 10px;
    scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .videos::-webkit-scrollbar { display: none; }
  .clip {
    position: relative; flex: none; width: min(62vw, 230px); aspect-ratio: 9 / 16; margin: 0;
    border-radius: 16px; overflow: hidden; scroll-snap-align: start;
    background: var(--surface-2); border: 1px solid rgba(215, 38, 61, 0.35); box-shadow: var(--shadow);
  }
  .clip video { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.08); }
  .clip figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px;
    background: linear-gradient(transparent, rgba(10, 0, 2, 0.85));
    color: #fff; font-family: var(--maquina); font-size: 14px; pointer-events: none;
  }

  .estilos { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .estilos li {
    padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
    border-top: 2px solid var(--accent-deep);
  }
  .estilos b { display: block; font-family: var(--horror); font-weight: 400; font-size: 22px; line-height: 1.15; color: var(--verde); margin-bottom: 6px; }
  .estilos .intro, .estilos .ancho { grid-column: 1 / -1; }
  .estilos .intro span { display: block; font-family: var(--maquina); font-size: 15px; line-height: 1.5; color: var(--ink); text-align: center; }
  .pasos li a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--verde); text-underline-offset: 3px; }
  .estilos span { font-size: 14px; line-height: 1.5; color: var(--muted); }

  .pasos { list-style: none; counter-reset: paso; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .pasos li {
    counter-increment: paso; position: relative; padding: 14px 16px 14px 58px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted);
  }
  .pasos li b { color: var(--ink); }
  .pasos li::before {
    content: counter(paso); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--horror); font-size: 20px; color: #fff; background: var(--accent-deep);
    box-shadow: 0 0 14px rgba(215, 38, 61, 0.5);
  }

  .links { display: flex; flex-direction: column; gap: 12px; }
  .link-card {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; border-radius: 14px;
    text-decoration: none; font-size: 15px; font-weight: 600; background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); transition: transform 0.15s ease, border-color 0.15s ease;
  }
  .link-card .icon { flex: none; width: 22px; height: 22px; color: var(--accent); }
  .link-card .icon svg { width: 22px; height: 22px; }
  .link-card small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
  .link-card .arrow { margin-left: auto; color: var(--muted); }
  .link-card:hover, .link-card:focus-visible { border-color: var(--accent); transform: translateY(-1px); }

  a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  footer { text-align: center; margin-top: 36px; font-size: 12px; line-height: 1.6; color: var(--muted); }
  footer a { color: var(--muted); text-decoration: underline; }
  @media (prefers-reduced-motion: reduce) {
    *, *::after { transition: none !important; animation: none !important; }
  }
