/* ================================================= */
/* 1. VARIABLES Y ESTILOS GLOBALES */
/* ================================================= */
:root {
    --bg-dark: #121212;
    --card-dark: #1e1e1e;
    --text-light: #e0e0e0;
    --highlight-color: #FFC107; /* ORO/AMBAR CLARO */
    --highlight-hover: #e0a800; /* ORO/AMBAR OSCURO (hover) */
    --shadow-color: rgba(0, 0, 0, 0.6);
    /* Variables para el degradado del botón de apertura */
    --gradient-start: #FFD700; 
    --gradient-end: #FFC107;   
}

/* --- (Estilos de Botones de Página Principal) --- */

.main-container { text-align: center; }

#btn-ver-video {
    /* BOTÓN MEJORADO CON DEGRADADO DORADO */
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--bg-dark);
    border: none;
    padding: 15px 40px;
    font-size: 1.5em;
    font-weight: 700;
    border-radius: 50px; 
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5); 
}
#btn-ver-video i { margin-right: 10px; }
#btn-ver-video:hover {
    background: linear-gradient(135deg, var(--highlight-hover) 0%, var(--gradient-end) 100%);
    transform: scale(1.05); 
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.7);
}

.social-links-container {
    margin-top: 40px; 
    display: flex;
    justify-content: center;
    gap: 15px; 
}
.social-links-container a {
    color: var(--text-light);
    background-color: var(--card-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--highlight-color); 
}
.social-links-container a:hover {
    background-color: var(--highlight-color); 
    color: var(--bg-dark); 
    transform: translateY(-4px) scale(1.1); 
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5); 
}
.social-links-container a[href*="whatsapp"]:hover {
    background-color: #25d366; 
    border-color: #25d366;
    color: white;
}

/* ================================================= */
/* 2. VENTANA MODAL (POPUP) Y ANIMACIÓN DE ENTRADA GRADUAL */
/* ================================================= */

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95); 
    backdrop-filter: blur(8px);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

#modalContentVideo {
    background-color: var(--card-dark);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-color);
    color: var(--text-light);
    width: 90%; 
    max-width: 900px; 
    margin: 0 auto;
    
    /* EFECTO DE AGRANDADO GRADUAL (Entrada) */
    transform: scale(0.9); 
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Clase que JS añade para activar la animación de entrada */
#modalContentVideo.show {
    transform: scale(1); 
    opacity: 1;
}

/* ================================================= */
/* 3. RESPONSIVIDAD 16:9 Y BOTÓN DE CIERRE MEJORADO */
/* ================================================= */

/* Contenedor 16:9 para el Iframe (Responsive Video) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* BOTÓN DE CIERRE "X" MEJORADO (Dorado Profesional) */
#closeVideoModalBtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    color: var(--highlight-color); 
    transition: color 0.3s, transform 0.3s;
}

#closeVideoModalBtn:hover {
    color: var(--highlight-hover); 
    transform: rotate(90deg) scale(1.1); 
}

/* ================================================= */
/* 4. ANIMACIÓN DE OLA EN EL TÍTULO (WAVY TEXT) */
/* ================================================= */

.wavy-title {
    font-size: 2.5em; 
    font-weight: bold;
    text-align: center;
    margin: 10px 0 20px 0;
    display: flex; 
    justify-content: center;
    align-items: center;
    color: var(--highlight-color); 
    overflow: hidden; 
}

.wavy-title span {
    display: inline-block; 
    animation-name: wave;
    animation-duration: 2s; 
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite; 
}

/* Retrasos para la Ola (17 caracteres) */
.wavy-title span:nth-child(1) { animation-delay: 0.0s; }
.wavy-title span:nth-child(2) { animation-delay: 0.1s; }
.wavy-title span:nth-child(3) { animation-delay: 0.2s; }
.wavy-title span:nth-child(4) { animation-delay: 0.3s; }
.wavy-title span:nth-child(5) { animation-delay: 0.4s; }
.wavy-title span:nth-child(6) { animation-delay: 0.5s; }
.wavy-title span:nth-child(7) { animation-delay: 0.6s; }
.wavy-title span:nth-child(8) { animation-delay: 0.7s; }
.wavy-title span:nth-child(9) { animation-delay: 0.8s; }
.wavy-title span:nth-child(10) { animation-delay: 0.9s; }
.wavy-title span:nth-child(11) { animation-delay: 1.0s; }
.wavy-title span:nth-child(12) { animation-delay: 1.1s; }
.wavy-title span:nth-child(13) { animation-delay: 1.2s; }
.wavy-title span:nth-child(14) { animation-delay: 1.3s; }
.wavy-title span:nth-child(15) { animation-delay: 1.4s; }
.wavy-title span:nth-child(16) { animation-delay: 1.5s; }
.wavy-title span:nth-child(17) { animation-delay: 1.6s; }

/* Definición del Keyframe para la Ola */
@keyframes wave {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); } 
}

/* ================================================= */
/* 5. MEDIA QUERIES (Ajustes para Dispositivos) */
/* ================================================= */

@media (max-width: 768px) {
    #modalContentVideo { padding: 20px 15px; }
    .wavy-title { font-size: 2em; }
    #closeVideoModalBtn { font-size: 30px; right: 15px; }
}