/* ═══ MÓDULO 1 · Hoja de Estilo Maestra y Motor de Luz / Superficie (Awwwards Grade) ═══ */
  :root {
    --void: #030303;
    --void-surface: #080808;
    --ember: #FF5E00;
    --ember-glow: rgba(255, 94, 0, 0.15);
    --fern: #2EBD59;
    --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  }

  html {
    background-color: var(--void);
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    background: transparent;
    isolation: isolate;
    color: #f5f5f4;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
  }

  ::selection {
    background: var(--ember);
    color: var(--void);
  }

  /* ── Lenis Ticker Lock ── */
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-stopped { overflow: hidden; }

  /* ── Micro-grano Analógico de 35mm ── */
  .film-grain {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    transform: translateZ(0);
    will-change: transform;
  }

  /* ── Canvases de Fondo ── */
  .film-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
    pointer-events: none;
    transform: translate3d(0,0,0);
  }

  .intertitle {
    background-color: var(--void);
    position: relative;
  }

  /* ── Refracción Física & Spotlight Cards ── */
  .spotlight-card {
    position: relative;
    background: radial-gradient(
      600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.05),
      transparent 60%
    ), var(--void-surface);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow:
      0 30px 60px -12px rgba(0, 0, 0, 0.75),
      0 18px 36px -18px rgba(0, 0, 0, 0.75),
      inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.6s var(--ease-cinematic), border-color 0.4s ease;
  }

  .spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
      450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 94, 0, 0.5),
      rgba(255, 255, 255, 0.1) 40%,
      transparent 70%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  .glass {
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
      inset 0 1px 1px 0 rgba(255, 255, 255, 0.12),
      0 20px 40px -15px rgba(0, 0, 0, 0.8);
  }

  .glass-ember {
    background: radial-gradient(120% 120% at 50% 0%, rgba(255, 94, 0, 0.12) 0%, rgba(10, 10, 10, 0.7) 100%);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border: 1px solid rgba(255, 94, 0, 0.28);
    box-shadow:
      inset 0 1px 1px 0 rgba(255, 150, 80, 0.3),
      0 25px 50px -12px rgba(255, 94, 0, 0.12);
  }

  .glass-fern {
    background: radial-gradient(120% 120% at 50% 0%, rgba(46, 189, 89, 0.08) 0%, rgba(10, 10, 10, 0.7) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(46, 189, 89, 0.25);
    box-shadow:
      inset 0 1px 1px 0 rgba(80, 255, 130, 0.25),
      0 25px 50px -12px rgba(0, 0, 0, 0.8);
  }

  /* ── Tipografía Monumental ── */
  .font-anton {
    letter-spacing: -0.04em;
    font-feature-settings: "liga" 1, "kern" 1;
  }

  .outline-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
    transition: -webkit-text-stroke 0.4s var(--ease-cinematic), color 0.4s ease;
  }
  .spotlight-card:hover .outline-text {
    -webkit-text-stroke: 1px rgba(255, 94, 0, 0.8);
    color: rgba(255, 94, 0, 0.05);
  }

  .outline-ghost {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    color: transparent;
  }

  /* ── Sliders Analógicos de Precisión ── */
  input[type=range].al-range, input[type=range]#ab-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    outline: none;
    position: relative;
    cursor: ew-resize;
  }

  input[type=range].al-range::-webkit-slider-thumb,
  input[type=range]#ab-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--void);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 18px rgba(255, 94, 0, 0.85);
    cursor: ew-resize;
    transition: transform 0.25s var(--ease-cinematic), box-shadow 0.25s ease;
  }

  input[type=range].al-range::-webkit-slider-thumb:hover,
  input[type=range]#ab-range::-webkit-slider-thumb:hover {
    transform: scale(1.22);
    box-shadow: 0 0 0 2px var(--ember), 0 0 24px var(--ember);
  }

  input[type=range].al-range::-moz-range-thumb,
  input[type=range]#ab-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--void);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 18px rgba(255, 94, 0, 0.85);
    cursor: ew-resize;
  }

  /* ── Línea Divisoria Láser A/B ── */
  #ab-line {
    box-shadow:
      0 0 4px 1px #fff,
      0 0 14px 3px var(--ember),
      0 0 35px 8px rgba(255, 94, 0, 0.6);
  }

  /* ── Animación Respiración Háptica ── */
  @keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 94, 0, 0.45); }
    50% { box-shadow: 0 0 0 14px rgba(255, 94, 0, 0); }
  }
  .hotspot-dot { animation: pulseGlow 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

  /* ── Carta Manuscrita Estilo Papel de Partitura ── */
  .letter-input {
    font-family: 'Caveat', cursive;
    font-size: 1.85rem;
    line-height: 1.2;
    color: var(--ember);
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    outline: none;
    width: 100%;
    padding: 0.3rem 0.5rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
  }
  .letter-input:focus {
    border-bottom: 1px solid var(--ember);
    background: rgba(255, 94, 0, 0.02);
  }

  /* ── Base ─────────────────────────────────────────────── */
    body {
    background: transparent;
    isolation: isolate;
    color: #f5f5f4;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
  }
  ::selection { background: #FF5E00; color: #050505; }

  /* Lenis es el ÚNICO motor de scroll — nada de scroll-behavior nativo */
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-stopped { overflow: hidden; }

  /* ── Motor visual: 3 canvases fijos detrás de todo ────── */
  .film-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0;
    visibility: hidden; /* autoAlpha: GPU libre cuando no se ve */
    will-change: opacity, visibility;
    pointer-events: none;
  }

  /* ── Franja de intertítulo: NEGRO PURO garantizado.
       El texto nunca compite con el plano: llega después. ── */
  .intertitle { background: #050505; }

  /* ── Glassmorphism SOLO en contenedores pequeños ──────── */
    
  /* ── Detalles cinematográficos ────────────────────────── */
      .grain::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ── MARCADOR DE ACTOS — quieto, sin pulso, sin venta ───── */
  #act-marker {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    background: rgba(5,5,5,0.55);
    border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .act-dot {
    width: 5px; height: 5px; border-radius: 9999px;
    background: rgba(255,255,255,0.15);
    transition: background 0.6s ease, box-shadow 0.6s ease, transform 0.6s ease;
  }
  .act-dot.done { background: rgba(255,94,0,0.45); }
  .act-dot.now  { background: #FF5E00; box-shadow: 0 0 8px rgba(255,94,0,0.8); transform: scale(1.3); }

  /* ── Carta manuscrita: inputs Caveat naranja ──────────── */
    .letter-input:focus { border-color: #FF5E00; }
  .letter-input::placeholder { color: rgba(255, 94, 0, 0.35); }
  select  select.letter-input option { background: #050505; color: #FF5E00; font-family: 'Inter', sans-serif; font-size: 1rem; }

  /* ── VISIÓN DE TÚNEL — al escribir la carta, el mundo desaparece ── */
  #tunnel-dim {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(5,5,5,0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s;
  }
  body.tunnel-vision #tunnel-dim { opacity: 1; visibility: visible; }
  body.tunnel-vision #carta { position: relative; z-index: 56; }
  body.tunnel-vision #act-marker,
  body.tunnel-vision nav { opacity: 0.3; transition: opacity 0.6s ease; }
  #carta .letter-field { transition: opacity 0.5s ease; }
  body.tunnel-vision #carta .letter-field:not(.field-focus) { opacity: 0.55; }
  body.tunnel-vision #carta .letter-field.field-focus { opacity: 1; }

  /* ── Comparador A/B ───────────────────────────────────── */
      /* ── Slider de ofrenda (La Alianza) ────────────────────── */
        .al-plan.on, .al-aporte.on {
    border-color: rgba(255,94,0,0.55);
    background: rgba(255,94,0,0.05);
  }

    /* Línea divisoria radiactiva: que se sienta la diferencia */
  
  /* ── Waypoints / línea de expedición ──────────────────── */
  #ruta-expedicion path {
    fill: none;
    stroke: #FF5E00;
    stroke-width: 1.5;
    stroke-dasharray: 6 8;
    vector-effect: non-scaling-stroke;
  }

  /* ── Hotspots ─────────────────────────────────────────── */
  .hotspot-dot {
    animation: pulso 2.4s ease-in-out infinite;
  }
  @keyframes pulso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 94, 0, 0.55); }
    50%      { box-shadow: 0 0 0 12px rgba(255, 94, 0, 0); }
  }
  .hotspot-dot--fern { animation: pulso-fern 2.4s ease-in-out infinite; }
  @keyframes pulso-fern {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 189, 89, 0.55); }
    50%      { box-shadow: 0 0 0 12px rgba(46, 189, 89, 0); }
  }

  /* ── Vidrio verde: los planes de los extremos ───────────── */
  
  [data-reveal] { opacity: 0; }
  .excusa-card { opacity: 0; }
    
    /* --- Sliders y efectos GTA --- */

  /* Paisajes estilo GTA */
  .gta-card { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .gta-outline-text { -webkit-text-stroke: 1.5px rgba(245, 245, 244, 0.85); color: transparent; }
  .gta-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
  .gta-reveal.gta-visible { opacity: 1; transform: none; }

  /* Parallax imagenes hero */
  .parallax-photo { will-change: transform; }
  .ab-clip { clip-path: inset(0 0 0 50%); will-change: clip-path; }

  /* ── Sala de escucha: cuando suena la frecuencia, el mundo se calla ── */
  body.beats-focus nav,
  body.beats-focus #act-marker { opacity: 0.3; transition: opacity 0.6s ease; }
  body.beats-focus #tunnel-dim { opacity: 0.45; visibility: visible; }
  .freq-card { transition: border-color 0.5s ease, box-shadow 0.5s ease; }
  .freq-card.playing { border-color: rgba(255,94,0,0.55); box-shadow: 0 0 30px rgba(255,94,0,0.18); }
  .freq-card .freq-stage { transition: filter 0.6s ease; }
  body.beats-focus .freq-card:not(.playing) .freq-stage { filter: brightness(0.4); }

  /* ── Utilidades de respaldo: clases nuevas que el CSS compilado no incluye ── */
  .h-32 { height: 8rem; }
  .w-9 { width: 2.25rem; } .h-9 { height: 2.25rem; }
  .rounded-lg { border-radius: 0.5rem; }
  .whitespace-nowrap { white-space: nowrap; }
  .space-y-7 > * + * { margin-top: 1.75rem; }
  .space-y-1.5 > * + * { margin-top: 0.375rem; }
  .pt-5 { padding-top: 1.25rem; } .pt-6 { padding-top: 1.5rem; } .pt-7 { padding-top: 1.75rem; }
  .salto-lift { margin-top: 0; }
  @media (min-width: 1024px) { .salto-lift { margin-top: -1rem; } }

  /* ── ¿QUÉ ES RANCO CAMP? — la revelación en 5 pilares ── */
  .qc-pilar { min-height: 72vh; }
  .qc-num { font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.85; color: transparent;
            -webkit-text-stroke: 1px rgba(255,255,255,0.12); }

  /* 01 · La marca: una figura gris que se construye en identidad */
  .qc-brand { position: relative; width: 15rem; height: 17rem; margin: 0 auto; }
  .qc-figure { position: absolute; inset: 2rem 3rem 0 3rem; transition: box-shadow 1.2s ease; }
  .qc-figure::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
                       width: 4.2rem; height: 4.2rem; border-radius: 50%; background: rgba(255,255,255,0.08); }
  .qc-figure::after { content: ''; position: absolute; top: 4.8rem; left: 50%; transform: translateX(-50%);
                      width: 7.5rem; height: 9rem; border-radius: 2.5rem 2.5rem 0 0; background: rgba(255,255,255,0.08); }
  .qc-brand.on .qc-figure { box-shadow: 0 0 60px rgba(255,94,0,0.25); }
  .qc-chip { position: absolute; opacity: 0; transform: translateY(14px); }
  .qc-chip span { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 9999px;
                  border: 1px solid rgba(255,94,0,0.5); background: rgba(255,94,0,0.08);
                  font-family: 'Special Elite', monospace; font-size: 9px; letter-spacing: 0.2em;
                  text-transform: uppercase; color: #FF5E00; }

  /* 02 · La obra: piezas dispersas que se ensamblan en un muro */
  .qc-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; max-width: 22rem; margin: 0 auto; }
  .qc-piece { height: 3.2rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
  .qc-piece--fire { border-color: rgba(255,94,0,0.5); background: rgba(255,94,0,0.07); }

  /* 03 · Termina lo que empezaste: archivos fantasma y el máster */
  .qc-file { transition: opacity 0.6s ease; }
  .qc-master { opacity: 0; }
  .qc-stamp { display: inline-block; border: 2px solid #FF5E00; color: #FF5E00; padding: 0.35rem 1.1rem;
              font-family: 'Special Elite', monospace; font-size: 11px; letter-spacing: 0.35em;
              transform: rotate(-7deg) scale(2.2); opacity: 0; }

  /* 04 · Apaga el ruido: barras de señal que colapsan */
  .qc-bars { display: flex; align-items: flex-end; gap: 0.6rem; height: 6rem; }
  .qc-bar { width: 1.1rem; border-radius: 0.25rem; background: rgba(255,255,255,0.25); transition: height 1s ease, background 1s ease; }
  .qc-bars.off .qc-bar { height: 10% !important; background: rgba(255,255,255,0.1); }

  /* 05 · El sonido: dos pulsos, una sola onda */
  @keyframes qc-pulse-fast { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.82); opacity: 0.65; } }
  @keyframes qc-pulse-slow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: 0.7; } }
  .qc-pulse-sq { width: 2.6rem; height: 2.6rem; background: #FF5E00; animation: qc-pulse-fast 0.7s ease-in-out infinite; }
  .qc-pulse-ci { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #4ADE80; animation: qc-pulse-slow 2.4s ease-in-out infinite; }
  .qc-draw { stroke-dasharray: 600; stroke-dashoffset: 600; }

  /* Cierre: la pregunta que se tacha en fuego */
  .qc-strike-wrap { position: relative; display: inline-block; }
  .qc-strike { position: absolute; left: -2%; top: 52%; width: 104%; height: 3px; background: #FF5E00;
               transform: scaleX(0); transform-origin: left center; box-shadow: 0 0 14px rgba(255,94,0,0.7); }
  /* Respaldo sección QC: clases ausentes en ranco.css compilado */
  .max-w-xs { max-width: 20rem; }
  .pt-24 { padding-top: 6rem; }
  .py-1.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
  @media (min-width: 768px) {
    .md:order-1 { order: 1; } .md:order-2 { order: 2; }
    .md:gap-16 { gap: 4rem; }
    .md:mb-32 { margin-bottom: 8rem; }
    .md:pt-32 { padding-top: 8rem; }
  }

  /* ── Fallbacks: clases nuevas que el CSS compilado puede no incluir ── */
  .rounded-3xl { border-radius: 1.5rem; }
  .h-36 { height: 9rem; }
  .h-44 { height: 11rem; }
  .gap-2\.5 { gap: 0.625rem; }
  .mb-14 { margin-bottom: 3.5rem; }
  .mt-14 { margin-top: 3.5rem; }
  .mt-28 { margin-top: 7rem; }
  .px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
  .py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
  .py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
  .py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
  .mt-0\.5 { margin-top: 0.125rem; }
  .top-3\.5 { top: 0.875rem; }
  .-top-3\.5 { top: -0.875rem; }
  .p-14 { padding: 3.5rem; }
  .min-h-\[340px\] { min-height: 340px; }
  .w-600 { width: 37.5rem; }
  .h-600 { height: 37.5rem; }
  .blur-160 { filter: blur(160px); }
  .bg-ember-5 { background-color: rgba(255,94,0,0.05); }
  .leading-\[0\.92\] { line-height: 0.92; }
  .leading-\[0\.95\] { line-height: 0.95; }
  .freq-dots { background-image: radial-gradient(#ffffff08 1px, transparent 1px); background-size: 12px 12px; }
  .bg-\[\#080808\] { background-color: #080808; }
  .bg-\[\#070707\] { background-color: #070707; }
  .bg-\[\#040404\] { background-color: #040404; }
  .bg-\[\#020202\] { background-color: #020202; }
  .bg-\[\#090909\]\/90 { background-color: rgba(9,9,9,0.9); }
  .bg-white\/\[0\.04\] { background-color: rgba(255,255,255,0.04); }
  .border-white\/\[0\.06\] { border-color: rgba(255,255,255,0.06); }
  .border-white\/\[0\.07\] { border-color: rgba(255,255,255,0.07); }
  .border-white\/\[0\.08\] { border-color: rgba(255,255,255,0.08); }
  .border-white\/\[0\.09\] { border-color: rgba(255,255,255,0.09); }
  .border-white\/\[0\.12\] { border-color: rgba(255,255,255,0.12); }
  .hover\:border-white\/\[0\.2\]:hover { border-color: rgba(255,255,255,0.2); }
  .border-ember\/60 { border-color: rgba(255,94,0,0.6); }
  .hover\:border-ember\/60:hover { border-color: rgba(255,94,0,0.6); }
  .shadow-\[0_0_50px_rgba\(255\,94\,0\,0\.18\)\] { box-shadow: 0 0 50px rgba(255,94,0,0.18); }
  .shadow-\[0_0_30px_rgba\(255\,94\,0\,0\.6\)\] { box-shadow: 0 0 30px rgba(255,94,0,0.6); }
  .shadow-\[0_0_30px_rgba\(255\,94\,0\,0\.4\)\] { box-shadow: 0 0 30px rgba(255,94,0,0.4); }
  .shadow-\[0_15px_40px_-10px_rgba\(255\,94\,0\,0\.25\)\] { box-shadow: 0 15px 40px -10px rgba(255,94,0,0.25); }
  .hover\:shadow-\[0_15px_40px_-10px_rgba\(255\,94\,0\,0\.25\)\]:hover { box-shadow: 0 15px 40px -10px rgba(255,94,0,0.25); }
  @media (min-width: 768px) {
    .md\:h-60 { height: 15rem; }
    .md\:p-14 { padding: 3.5rem; }
  }

