/* Definición de colores y variables */
:root {
    /* MODO OSCURO (Por defecto) */
    --bg-color: #030712; 
    --bg-gradient: radial-gradient(circle at center, #0a1931 0%, #030712 100%);
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --neon-color: #00f2fe; 
    --neon-glow: 0 0 10px #00f2fe, 0 0 20px #00f2fe, 0 0 40px #4facfe;
    
    /* Colores del interruptor */
    --switch-bg: #1f2937;
    --switch-handle: #ffffff;
}

[data-theme="light"] {
    /* MODO CLARO */
    --bg-color: #f8fafc;
    --bg-gradient: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --neon-color: #0052d4; 
    --neon-glow: 0 0 5px rgba(0, 82, 212, 0.3); 
    
    --switch-bg: #e2e8f0;
    --switch-handle: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    /* Añadimos padding para que en móviles no toque los bordes */
    padding: 20px; 
}

.container {
    width: 100%;
    max-width: 1200px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-text {
    margin-bottom: 0;
}

.brand {
    /* Tamaño fluido para la marca */
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 1px;
}

.status {
    /* Tamaño fluido para el estado */
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 300;
    color: var(--text-secondary);
    text-transform: lowercase;
}

/* EL TÍTULO GIGANTE: Ahora usa clamp() para ser totalmente fluido */
.main-title {
    font-family: 'Oswald', sans-serif; 
    /* Ajustamos un poco los valores para que la palabra larga quepa mejor */
    font-size: clamp(2.5rem, 9vw, 8rem); 
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 10px 0;
    width: 100%;
    white-space: nowrap; /* <-- Esta es la magia que prohíbe que se parta la palabra */
    
    color: var(--neon-color);
    text-shadow: var(--neon-glow);
    animation: flicker 1.5s infinite alternate;
}
.description {
    /* Tamaño fluido para la descripción */
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 300;
    color: var(--text-primary);
    max-width: 600px;
    margin: 10px auto 0;
    opacity: 0.9;
    padding: 0 15px;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: var(--neon-glow);
    }
    20%, 22%, 24%, 55% {
        text-shadow: none;
        color: var(--text-secondary);
    }
}

/* --- INTERRUPTOR DE TEMA --- */
.theme-switch-wrapper {
    position: absolute;
    /* Adaptación responsiva para la posición del botón */
    top: clamp(15px, 4vw, 30px);
    right: clamp(15px, 4vw, 30px);
    z-index: 10;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input { display:none; }

.slider {
    background-color: var(--switch-bg);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider:before {
    background-color: var(--switch-handle);
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 2;
}

input:checked + .slider { background-color: var(--switch-bg); }
input:checked + .slider:before { transform: translateX(26px); }

.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.icon { font-size: 14px; z-index: 1; }