:root {
    --primary-color: #a0f42a;
    --primary-dark: #8ad825;
    --secondary-color: #8cf110;
    --accent-color: #ff6b6b;
    --text-color: #ffffff;
    --dark-text: #333333;
    --overlay-color: rgba(0, 0, 0, 0.223);
    --transition-speed: 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background-color: #000000;
    color: var(--text-color);
}

/* Hero section with video background */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    perspective: 1000px;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    will-change: transform;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--overlay-color) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) contrast(1.15) saturate(1.25);
    will-change: transform;
}

.content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 5%;
    z-index: 1;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.3s;
}

.title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.6s;
    font-family: var(--font-secondary);
}

.description {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.9s;
}

.cta-button {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--primary-color);
    color: #000;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6.5px;
    box-shadow: 0 5px 15px rgba(109, 244, 42, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(160, 244, 42, 0.5);
}

.cta-button:hover:before {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-indicator span {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 500;
}

.scroll-indicator .mouse {
    width: clamp(20px, 4vw, 30px);
    height: clamp(35px, 7vw, 50px);
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(4px, 1vw, 6px);
    height: clamp(4px, 1vw, 6px);
    background: white;
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* Sección de contenido mejorada con efectos dinámicos */
.content-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    background: #0c0c0c58;
    backdrop-filter: blur(8.85px);
    color: #fff;
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;  
    width: 100%;
    height: 100%;
    background: url('/Imagen.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.01;
    z-index: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.content-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

/* Contenedor de texto con efecto de revelación */
.text-reveal-container {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(160, 244, 42, 0.1);
    transition: all 0.35s ease-out;
}

.text-reveal-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(128, 198, 6, 0.147);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollDown {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, 10px);
        opacity: 1;
    }
}

/* Media queries para responsividad */
@media screen and (max-width: 768px) {
    .hero-section {
        height: 90vh;
    }

    .content-wrapper {
        padding: 0 3%;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .content-section {
        padding: 4rem 1rem;
    }

    .text-reveal-container {
        min-height: 50vh;
    }
}

@media screen and (max-width: 480px) {
    .hero-section {
        height: 90vh;
    }

    .content-wrapper {
        padding: 0 2%;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .content-section {
        padding: 3rem 0.5rem;
    }

    .text-reveal-container {
        min-height: 40vh;
    }
}

/* Ajustes para pantallas más grandes */
@media screen and (min-width: 1400px) {
    html {
        font-size: 18px;
    }

    .hero-content {
        max-width: 1200px;
    }

    .content-container {
        max-width: 1400px;
    }
}

/* Ajustes para dispositivos de alta densidad de píxeles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .video-container video {
        filter: brightness(0.9) contrast(1.1) saturate(1.2);
            }
        }
        
        /* Ajustes para orientación horizontal en dispositivos móviles */
        @media (max-height: 500px) and (orientation: landscape) {
            .hero-section {
                height: 120vh;
            }
        
            .content-wrapper {
                justify-content: flex-start;
                padding-top: 2rem;
            }
        
            .scroll-indicator {
                display: none;
            }
        }
        
        /* Ajustes para dispositivos con pantalla táctil */
        @media (hover: none) and (pointer: coarse) {
            .cta-button:hover {
                transform: none;
                box-shadow: 0 5px 15px rgba(109, 244, 42, 0.3);
            }
        
            .cta-button:active {
                transform: translateY(-3px);
                box-shadow: 0 8px 20px rgba(160, 244, 42, 0.5);
            }
        
            .text-reveal-container:hover {
                transform: none;
            }
        
            .text-reveal-container:active {
                transform: translateY(-5px);
            }
        }
        
        /* Ajustes para preferencias de movimiento reducido */
        @media (prefers-reduced-motion: reduce) {
            .hero-content,
            .subtitle,
            .title,
            .description,
            .cta-button,
            .scroll-indicator {
                animation: none;
                opacity: 1;
                transform: none;
            }
        
            .scroll-indicator .mouse::before {
                animation: none;
            }
        
            .text-reveal-container,
            .text-reveal-container:hover {
                transition: none;
                transform: none;
            }
        }
        
        /* Ajustes para accesibilidad */
        .cta-button:focus-visible,
        .scroll-indicator:focus-visible {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }
        
        /* Mejoras de rendimiento */
        .video-container video {
            will-change: transform;
        }
        
        .hero-content,
        .subtitle,
        .title,
        .description,
        .cta-button {
            will-change: opacity, transform;
        }
        
        /* Ajustes para impresión */
        @media print {
            .hero-section {
                height: auto;
            }
        
            .video-container,
            .scroll-indicator {
                display: none;
            }
        
            .content-wrapper {
                padding: 2cm;
            }
        
            .hero-content {
                max-width: none;
            }
        
            .cta-button {
                border: 1px solid #000;
                box-shadow: none;
            }
        
            .content-section::before {
                display: none;
            }
        
            .text-reveal-container {
                box-shadow: none;
                border: 1px solid #000;
            }
        }