* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    overflow: hidden;
    height: 100vh;
    font-family: 'Courier New', monospace;
    cursor: default;
}

/* ========== MATRIX SECTION ========== */
#matrix-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: opacity 1.5s ease-in-out;
}

.matrix-canvas {
    display: block;
}

.matrix-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 2em;
    text-align: center;
    text-shadow: 0 0 10px #ffffff;
    z-index: 11;
    background: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    font-weight: bold;
    transition: opacity 1s ease;
}

/* ========== ELIGE SECTION ========== */
#elige-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease, visibility 0s 2s;
}

.elige-canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.scene-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 150px;
}

.elige-text {
    color: #ffffff;
    font-size: 4em;
    text-align: center;
    text-shadow: 0 0 20px #00f2ff, 0 0 40px #00f2ff;
    margin-bottom: 30px;
    animation: blink 3s infinite, glow 2s infinite alternate;
    letter-spacing: 6px;
    font-weight: bold;
    order: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease 1s, transform 1s ease 1s;
}

.pills-container {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    justify-content: center;
    align-items: center;
    order: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.pill {
    width: 160px;
    height: 80px;
    border-radius: 40px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.pill:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px;
}

.pill-red {
    background: linear-gradient(90deg, #ff0000 0%, #8b0000 100%);
    border: 3px solid #ff4444;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
}

.pill-red:hover {
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.9);
}

.pill-blue {
    background: linear-gradient(90deg, #0066ff 0%, #0033aa 100%);
    border: 3px solid #00aaff;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.7);
}

.pill-blue:hover {
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.9);
}

.pill-text {
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 10px;
    z-index: 2;
    letter-spacing: 1px;
}

.pill::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0.3;
}

.pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 70%, rgba(255,255,255,0.1) 100%);
    border-radius: 40px;
}

.instruction {
    color: rgba(255,255,255,0.5);
    margin-top: 20px;
    font-size: 0.9em;
    text-align: center;
    order: 3;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease 1.5s, transform 1s ease 1.5s;
}

/* ========== TEST SECTION ========== */
#test-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
}

.test-container {
    width: 90%;
    max-width: 800px;
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 50px #0f0;
    position: relative;
    z-index: 21;
}

.test-question {
    margin-bottom: 30px;
    display: none;
}

.test-question.active {
    display: block;
}

.test-question h3 {
    color: #0f0;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
}

.test-option {
    display: block;
    width: 100%;
    background: rgba(0, 30, 0, 0.7);
    color: #0f0;
    border: 1px solid #0f0;
    padding: 15px;
    margin: 10px 0;
    text-align: left;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    transition: all 0.3s;
}

.test-option:hover {
    background: rgba(0, 60, 0, 0.9);
    box-shadow: 0 0 15px #0f0;
    transform: translateX(10px);
}

/* ========== RESULTADOS ========== */
#resultado-container {
    display: none;
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#conciencia-canvas {
    border: 2px solid #0f0;
    margin: 20px auto;
    display: block;
    background: rgba(0, 10, 0, 0.9);
}

.profile-result {
    color: #0f0;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #0f0;
    background: rgba(0, 30, 0, 0.5);
}

/* Test Matrix Canvas */
#test-matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 19;
    pointer-events: none;
    display: none;
}

/* ========== ANIMATIONS ========== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes glow {
    0% { text-shadow: 0 0 15px #00f2ff, 0 0 30px #00f2ff; }
    100% { text-shadow: 0 0 25px #00f2ff, 0 0 50px #00f2ff, 0 0 70px #00f2ff; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== STATES ========== */
body.show-elige #matrix-section {
    opacity: 0;
    pointer-events: none;
}

body.show-elige #elige-section {
    opacity: 1;
    visibility: visible;
    transition: opacity 2s ease, visibility 0s;
}

body.show-elige .elige-text,
body.show-elige .pills-container,
body.show-elige .instruction {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .scene-container {
        padding-bottom: 100px;
    }
    
    .elige-text {
        font-size: 2.5em;
    }
    
    .pills-container {
        gap: 20px;
        flex-direction: column;
    }
    
    .pill {
        width: 120px;
        height: 60px;
        border-radius: 30px;
    }
    
    .pill-text {
        font-size: 0.9em;
        padding: 5px;
    }
    
    .matrix-text {
        font-size: 1.5em;
        padding: 20px;
    }
    
    .test-container {
        width: 95%;
        padding: 15px;
    }
    
    #conciencia-canvas {
        width: 95%;
        height: auto;
    }
}
.cta-button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background: transparent;
    border: 2px solid #0f0;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.cta-button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px #0f0;
}