/* --- VARIABLES GLOBALES --- */
:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;
    --text-main: #ffffff;
    --neon-orange: #ff5e00; 
    --text-muted: #888888;
    --glow-color: rgba(255, 94, 0, 0.6); 
    --font-main: 'Space Grotesk', sans-serif;
    --border-color: #222222;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
    overflow-y: auto;   
    background: radial-gradient(circle at center top, #1a0a00 0%, var(--bg-color) 70%);
    cursor: none;
}

a, button, .brand-logo, .coming-soon {
    cursor: none !important; 
}

/* --- HEADER CENTRADO --- */
.site-header {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding: 2rem 3rem;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 50;
}

.brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--neon-orange);
    text-shadow: 0 0 10px var(--glow-color);
    cursor: pointer;
    user-select: none;
}

.copy-container { z-index: 2; }

/* --- BOTÓN DE WALLET --- */
.wallet-address {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    width: auto;
}

.wallet-address:hover {
    color: var(--neon-orange);
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px var(--glow-color) inset;
    background: transparent;
}

/* --- TOOLTIP --- */
.tooltip {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: max-content;
    max-width: 250px;
    text-align: center;
    background: var(--neon-orange);
    color: #000;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    transform: translateY(10px);
    z-index: 20;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- NUEVO: MATRIX BACKGROUND FULL SCREEN --- */
#full-matrix-bg {
    position: fixed; /* Fijo para que no se mueva al hacer scroll */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* No interfiere con los clics */
    z-index: 0; /* Detrás del contenido principal (que es z-index 10) */
    opacity: 0.3; /* Sutil para que se lea bien el texto de encima */
}

/* --- SCROLL SECTIONS --- */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 10; /* Por encima del fondo Matrix */
    position: relative;
}

.hero-section {
    min-height: 90vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding-top: 4rem; 
}

.retro-pc-section {
    min-height: auto; 
    width: 100%;
    display: flex;
    flex-direction: column; /* ¡IMPORTANTE! Añade esto para apilar los elementos */
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem 6rem 2rem; 
}

.pc-image-wrapper {
    position: relative;
    max-width: 800px; 
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 94, 0, 0.4);
    border-radius: 20px;
    /* Aseguramos que la imagen tenga fondo por si el matrix se ve a través */
    background-color: var(--bg-color); 
}

.retro-pc-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* --- TARJETAS CONTADOR --- */
.countdown-wrapper { display: flex; gap: 2rem; }

.time-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 150px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Fondo sólido para que no se vea el matrix a través de los números */
    background: var(--card-bg); 
}

.time-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 25px var(--glow-color);
    border-color: var(--neon-orange);
}

@keyframes flash-orange {
    0% { border-color: var(--border-color); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
    10% {
        border-color: #fff;
        background-color: #2a1500;
        box-shadow: 0 0 50px var(--neon-orange), 0 0 20px #fff;
        transform: scale(1.05);
    }
    100% { border-color: var(--border-color); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transform: scale(1); }
}

.flash-effect { animation: flash-orange 0.8s ease-out; }

.time-value {
    font-size: 5rem; 
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--neon-orange);
    text-shadow: 0 0 25px var(--glow-color); 
}

.time-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- COMING SOON --- */
.coming-soon {
    color: var(--neon-orange);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
    text-shadow: 0 0 20px var(--glow-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.swap-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
}

.icon-hidden {
    display: none;
    height: 3rem;
    width: auto;
    filter: drop-shadow(0 0 8px var(--glow-color));
}

.letter { display: inline-block; }

.coming-soon:hover .letter { display: none; }
.coming-soon:hover .icon-hidden {
    display: inline-block;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- LLUVIA DE GALLETAS --- */
#cookie-rain-container {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    overflow: hidden;
}

.falling-cookie {
    position: absolute;
    top: -100px;
    width: 60px; 
    opacity: 1;
    z-index: 101;
}

@keyframes fallDown {
    0% { top: -100px; transform: rotate(0deg); }
    100% { top: 110vh; transform: rotate(360deg); }
}

/* --- MATRIX HACKER MODE (EASTER EGG) --- */
#matrix-canvas {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200; 
    background: black;
}

#hacker-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: 90%; 
    font-family: 'Courier New', Courier, monospace;
    font-size: 5vw; 
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    white-space: pre-wrap; 
    color: #ff5e00;
    text-shadow: 0 0 20px #ff5e00, 0 0 40px rgba(255, 94, 0, 0.5);
    border-right: 0.1em solid #ff5e00;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
    from, to { border-color: transparent }
    50% { border-color: #ff5e00; }
}

.hacker-mode-text {
    color: #ff3300 !important;
    text-shadow: 0 0 20px #ff5e00, 0 0 40px #ff0000 !important;
    font-family: 'Courier New', monospace !important;
}

.hacker-hide {
    opacity: 0 !important;
    transition: opacity 0.1s;
}

/* --- CURSOR PERSONALIZADO --- */
#custom-cursor {
    position: fixed;
    pointer-events: none; 
    z-index: 10000;
    width: 35px; 
    height: auto;
    margin-left: -17.5px; 
    margin-top: -17.5px; 
    filter: drop-shadow(0 0 2px rgba(255, 94, 0, 0.3));
    user-select: none; 
    transition: filter 0.2s ease, transform 0.2s ease;
    will-change: left, top;
}

a:hover ~ #custom-cursor,
button:hover ~ #custom-cursor,
.brand-logo:hover ~ #custom-cursor,
.coming-soon:hover ~ #custom-cursor {
   transform: scale(1.2); 
   filter: drop-shadow(0 0 8px var(--neon-orange));
}

/* --- RESPONSIVE (MÓVILES Y TABLETS) --- */
@media (max-width: 768px) {
    /* 1. Header: Logo a la izquierda y botón a la derecha */
    .site-header { 
        padding: 1rem 1.2rem; 
        justify-content: space-between; /* Separa los elementos a los lados */
    }
    
    .brand-logo { 
        position: static; /* Le quitamos el absolute para que no fuerce el centro */
        transform: none; 
        font-size: 1.2rem; 
    }

    /* 2. Botón de copiar más compacto para que quepa bien */
    .wallet-address {
        font-size: 0.7rem; /* Texto más pequeño */
        padding: 6px 8px;
        gap: 0.3rem; /* Menos espacio entre el icono y el texto */
    }

    .wallet-address svg {
        width: 14px; /* Icono un poco más pequeño */
        height: 14px;
    }

    /* 3. Ajuste del espacio superior para que no se pegue al header nuevo */
    .hero-section {
        padding-top: 5rem;
    }

    /* 4. El resto de ajustes que ya tenías y funcionaban bien */
    .countdown-wrapper { 
        gap: 1rem; 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    
    .time-card { 
        width: 85px; 
        height: 110px; 
        border-radius: 12px; 
    }
    
    .time-value { font-size: 2.8rem; }
    
    .coming-soon { font-size: 1.8rem; gap: 1px; }
    
    .side-matrix {
        width: 35vw; 
        opacity: 0.4; 
    }

    /* 5. Ajuste de la frase final para móvil */
    .global-shift {
        font-size: 1.4rem;
        margin-top: 2rem;
    }
}
/* --- FRASE ÉPICA DEBAJO DE LA IMAGEN --- */
.global-shift {
    color: var(--neon-orange);
    font-size: 2.5rem; /* Tamaño grande pero proporcionado */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    /* Aquí está el efecto neón exacto del título principal */
    text-shadow: 0 0 20px var(--glow-color), 0 0 40px rgba(255, 94, 0, 0.4);
    margin-top: 4rem; /* Esta es la separación con la imagen */
    z-index: 10; /* Para asegurarnos de que el texto brille por encima de la lluvia matrix */
}
