:root {
    --bg-color: #000000;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --transition-speed: 2s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-serif);
    height: 100vh;
    height: 100dvh; /* Mobile viewport fix */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* --- Fondos Ambientales --- */
.ambient-background {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, #111111 0%, #000000 60%);
    animation: pulseBackground 15s infinite alternate ease-in-out;
    z-index: -2;
}

.breathing-circle {
    position: absolute;
    width: 60vh;
    height: 60vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 8s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

/* Efecto de grano para textura */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* --- Pantallas --- */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 3s ease; /* Más lento para suavidad */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Intro --- */
.intro-content {
    text-align: center;
    z-index: 10;
}

.intro-content h1 {
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.9;
}

.intro-content p {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    text-transform: uppercase;
}

#start-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 1.2rem 2.5rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.8s ease;
    border-radius: 50px;
}

#start-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.25em;
}

#start-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- Citas --- */
.quote-container {
    max-width: 600px; /* Más estrecho para lectura móvil */
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

.lines-wrapper {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem; /* Más espacio entre líneas */
}

.line {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.4;
    opacity: 0;
    filter: blur(10px); /* Efecto de desenfoque al entrar */
    transform: scale(0.95);
    transition: opacity 2.5s ease, filter 2.5s ease, transform 2.5s ease-out;
    color: var(--text-primary);
}

.line.visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.line.exit {
    opacity: 0;
    filter: blur(15px);
    transform: scale(1.05);
    transition: opacity 2s ease, filter 2s ease, transform 2s ease-in;
}

/* --- Barra de Progreso Zen --- */
.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: transparent;
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    width: 0%;
    transition: width 0.1s linear;
}

/* --- Animaciones Keyframes --- */
@keyframes pulseBackground {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; }
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* Medias Queries */
@media (max-width: 600px) {
    .intro-content h1 {
        font-size: 2rem;
    }
    
    .line {
        font-size: 1.6rem;
    }
    
    .screen {
        padding: 1rem;
    }
}