/* =========================================================
   HERO "TRON" — rejilla luminosa + rayos de luz cruzando
   Fondo negro puro, acentos cian y ámbar (paleta clásica Tron).
   El logo va sobre un "disco de identidad" brillante para que no
   se pierda contra el fondo oscuro (el logo tiene tonos navy oscuros).
   ========================================================= */

.hero-tron {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 70px;
    color: #eaf6ff;
    background: #020204;
    perspective: 900px;
}

/* ---------- Piso de rejilla luminoso ---------- */
.tron-grid-piso {
    position: absolute;
    left: -25%; right: -25%; bottom: -14%;
    height: 55%;
    background-image:
        linear-gradient(rgba(94, 241, 255, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 241, 255, .35) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(600px) rotateX(78deg);
    transform-origin: bottom;
    -webkit-mask-image: linear-gradient(to top, black 5%, transparent 82%);
            mask-image: linear-gradient(to top, black 5%, transparent 82%);
    animation: tron-grid-mover 4.2s linear infinite;
    pointer-events: none;
}
@keyframes tron-grid-mover {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 64px, 64px 0; }
}

/* línea de "horizonte" brillante donde arranca el piso */
.tron-horizonte {
    position: absolute;
    left: 0; right: 0;
    bottom: 44%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(94, 241, 255, .9), transparent);
    box-shadow: 0 0 22px 4px rgba(94, 241, 255, .5);
    pointer-events: none;
}

/* ---------- Rayos de luz cruzando la pantalla (generados por JS) ---------- */
.rayos { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.raya { position: absolute; opacity: .85; }
.raya-h { height: 2px; background: linear-gradient(90deg, transparent, var(--color-raya, #5ef1ff), transparent); box-shadow: 0 0 12px var(--color-raya, #5ef1ff); }
.raya-v { width: 2px; background: linear-gradient(180deg, transparent, var(--color-raya, #5ef1ff), transparent); box-shadow: 0 0 12px var(--color-raya, #5ef1ff); }

/* rayo lanzado al hacer clic: nace en el punto del clic y sale disparado en un ángulo aleatorio */
.raya-clic {
    position: absolute;
    top: 0; left: 0;
    width: 130px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-raya, #5ef1ff), transparent);
    box-shadow: 0 0 14px var(--color-raya, #5ef1ff);
    transform-origin: left center;
    pointer-events: none;
}

/* ---------- Disco de identidad (fondo brillante detrás del logo) ---------- */
.tron-content { position: relative; z-index: 2; max-width: 660px; }

.disco-wrap {
    position: relative;
    width: 270px; height: 270px;
    margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
    transition: transform .2s ease;
}
.disco-anillo {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(94, 241, 255, .55);
    animation: girar 14s linear infinite;
}
.disco-anillo::before {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    width: 9px; height: 9px;
    margin-left: -4.5px;
    background: #5ef1ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #5ef1ff;
}
.disco-anillo-2 {
    position: absolute; inset: 16px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 157, 0, .6);
    animation: girar-reversa 20s linear infinite;
}
@keyframes girar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes girar-reversa { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

/* el panel claro que resuelve el contraste del logo */
.disco-fondo {
    position: absolute; inset: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #f2fcff 0%, #cdf0ff 32%, #74d8f4 62%, #1c3a52 100%);
    box-shadow:
        0 0 46px rgba(94, 241, 255, .55),
        inset 0 0 32px rgba(255, 255, 255, .55);
    animation: pulso-disco 3.6s ease-in-out infinite;
}
@keyframes pulso-disco {
    0%, 100% { box-shadow: 0 0 46px rgba(94, 241, 255, .55), inset 0 0 32px rgba(255, 255, 255, .55); }
    50%      { box-shadow: 0 0 60px rgba(94, 241, 255, .75), inset 0 0 38px rgba(255, 255, 255, .7); }
}

.logo-disco {
    position: relative;
    z-index: 2;
    width: 172px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
    animation: flotar-logo-tron 4.6s ease-in-out infinite;
}
@keyframes flotar-logo-tron { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 600px) {
    .disco-wrap { width: 210px; height: 210px; }
    .disco-fondo { inset: 22px; }
    .logo-disco { width: 130px; }
}

/* ---------- Texto ---------- */
.tron-eyebrow {
    display: inline-block;
    font-family: 'Sora', monospace;
    color: #5ef1ff;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: .74rem;
    margin-bottom: 16px;
}
.tron-title {
    color: #fff;
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    margin-bottom: 18px;
}
.tron-title span {
    background: linear-gradient(90deg, #5ef1ff, #ff9d00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tron-lead {
    color: #a9d8e6;
    font-size: 1.05rem;
    max-width: 54ch;
    margin: 0 auto 30px;
}
.tron-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-tron-cian {
    background: linear-gradient(120deg, #5ef1ff, #9df3ff);
    color: #012230;
    box-shadow: 0 0 22px rgba(94, 241, 255, .5);
}
.btn-tron-cian:hover { box-shadow: 0 0 32px rgba(94, 241, 255, .75); }
.btn-tron-ambar {
    border: 1px solid rgba(255, 157, 0, .6);
    color: #ffd9a0;
    background: rgba(255, 157, 0, .07);
}
.btn-tron-ambar:hover { border-color: #ff9d00; background: rgba(255, 157, 0, .16); }
