/* Video Hero Gonemo - Estilos principales */

.video-hero-gonemo-container {
    position: relative;
    min-height: 100vh;
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden; 
    /* Variables CSS para el degradado personalizable */
    --gradient-color-1: #1e3a8a;
    --gradient-color-2: #1a3856; 
    --gradient-color-3: #1a3856;
    --gradient-opacity: 0.9;
    background: linear-gradient(
        180deg, 
        var(--gradient-color-1) 0%, 
        var(--gradient-color-2) 30%, 
        var(--gradient-color-3) 60%, 
        rgba(0, 0, 0, calc(var(--gradient-opacity) * 0.8)) 90%, 
        rgba(0, 0, 0, 0) 100% 
    );
    color: white; 
    text-align: center;
}

/* Overlay sutil para mejorar el contraste del texto */
.video-hero-gonemo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
}

/* Efectos de fondo */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 60%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(59, 130, 246, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particlesFloat 25s linear infinite;
}

/* Sección del contador */
.countdown-section {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.countdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    animation: pulse 2s infinite; 
}

.countdown-icon svg {
    width: 24px;
    height: 24px;
}

.countdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.countdown-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.time-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberGlow 2s ease-in-out infinite alternate;
}

.time-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.time-separator {
    font-size: 2rem;
    font-weight: 700;
    color: #3B82F6;
    margin: 0 5px;
    animation: blink 1s infinite;
}

/* Contenido principal */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
}
h1.hero-title {
    color: #FFFFFF;
    font-family: Open Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 60px;
    leading-trim: NONE;
    line-height: 72px;
    letter-spacing: -1.8px;
    text-align: center;
    vertical-align: middle;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

p.hero-subtitle {
    font-family: Open Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: #E5E7EB;
}
.hero-title .highlight {
    background:#0173FE;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Contenedor del video */
.video-container {
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.4s both;
}
 
/* Contenedor responsivo para YouTube */
.youtube-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    /* Aspect ratio 16:9 para videos de YouTube */
    aspect-ratio: 16 / 9;
}

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px; /* Slightly smaller to account for border */
}

.video-placeholder {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #06B6D4 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-placeholder:hover .video-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    animation: playButtonPulse 2s infinite;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.video-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Animaciones */
@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(180deg);
    }
}

@keyframes particlesFloat {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-10px) translateX(10px);
    }
    66% {
        transform: translateY(5px) translateX(-5px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes numberGlow {
    0% {
        text-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
    }
    100% {
        text-shadow: 0 2px 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.3);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineGlow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(6, 182, 212, 0.3);
    }
}

@keyframes playButtonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-hero-gonemo-container {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .video-placeholder {
        height: 350px;
    }
    
    .countdown-timer {
        padding: 15px 25px;
        gap: 12px;
    }
    
    .time-value {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .video-hero-gonemo-container {
        padding: 30px 15px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .video-placeholder {
        height: 280px;
    }
    
    .youtube-video-wrapper {
        max-width: 100%;
        margin: 0 20px;
        border-radius: 15px;
    }
     
    .youtube-iframe {
        border-radius: 13px;
    }
    
    .countdown-timer {
        padding: 12px 20px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .time-unit {
        min-width: 50px;
    }
    
    .time-value {
        font-size: 1.8rem;
    }
    
    .time-label {
        font-size: 0.75rem;
    }
    
    .time-separator {
        font-size: 1.5rem;
        margin: 0 2px;
    }
    
    .countdown-text {
        font-size: 1rem;
    }
    
    .video-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .video-placeholder {
        height: 220px;
    }
    
    .youtube-video-wrapper {
        margin: 0 15px;
        border-radius: 12px;
    }
     
    .youtube-iframe {
        border-radius: 10px;
    }
    
    .countdown-timer {
        padding: 10px 15px;
        gap: 6px;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .time-separator {
        font-size: 1.2rem;
    }
    
    .play-button svg {
        width: 50px;
        height: 50px;
    }
}

/* Estados de carga */
.video-hero-gonemo-container.loading {
    opacity: 0.7;
}

.video-hero-gonemo-container.loading * {
    animation-play-state: paused;
}

/* Efectos adicionales para interactividad */
.countdown-timer:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.time-unit:hover .time-value {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo oscuro adicional */
@media (prefers-color-scheme: dark) {
    .video-hero-gonemo-container {

  background: linear-gradient(
    180deg,
    var(--gradient-color-1) 0%,
    var(--gradient-color-2)  30%,
    var(--gradient-color-2) 60%,
    rgba(0, 0, 0, 0.8) 87%,
    rgba(0, 0, 0, 0) 114%

);

}
}