
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    overflow-x: hidden;
}

/* SECCIÓN DE ENCABEZADO Y NAVEGACIÓN */

.header {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 20px 80px;
    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-principal);
    text-decoration: none;
    letter-spacing: 8px;
}

.nav {
    display: flex;
    gap: 40px;
    margin-left: 40px;
}

.nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-principal);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-principal);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* SECCIÓN HERO Y ELEMENTOS RELACIONADOS */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.hero-container {
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.content-left {
    max-width: 500px;
    z-index: 10;
}

.content-left h1 {
    font-size: 48px;
    font-weight: 300;
    color: #333;
    line-height: 1.2;
    margin-bottom: 30px;
}

.content-left p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.button {
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.content-right {
    position: relative;
    height: 500px;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(29%, -75%);
    width: 900px;
    height: 900px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.15);
    display: flex;
    align-items: center;
    justify-content: end;
    overflow: hidden;
    z-index: 5;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* SECCIÓN DE BOTONES Y NAVEGACIÓN INFERIOR */

.play-button {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-90%) translateX(10%); 
    width: 80px;
    height: 80px;
    background: var(--color-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.play-button:hover::before {
    transform: scale(1);
}

.play-button i {
    color: white;
    font-size: 22px;
    transform: translateX(2px);
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.play-button:hover {
    transform: translateY(-90%) translateX(10%) scale(1.1);
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.4);
}

.play-button:active {
    transform: translateY(-90%) translateX(10%) scale(0.95);
}

.bottom-nav {
    position: absolute;
    bottom: 40px;
    left: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-dots {
    display: flex;
    gap: 8px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-dot.active {
    background: var(--color-principal);
}

.nav-text {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
}

.wave-svg-container {
    position: relative;
    width: 100%;
    margin-top: -70px;
    z-index: 10;
    line-height: 0;
    transform: scaleX(-1);
}

.wave-svg-container svg {
    display: block;
}

/* SECCIÓN MODAL DE VIDEO Y TOAST DE BIENVENIDA */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
    background: radial-gradient(ellipse at center, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(15px);
}

.modal-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); 
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, transparent 40%);
    padding: 40px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: white;
    font-size: 20px;
    z-index: 20;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
    padding: 30px 40px;
    z-index: 15;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.modal-container:hover .video-controls {
    opacity: 1;
    transform: translateY(0);
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 15px;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-principal), var(--color-secundario));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-principal);
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-indicator.show {
    opacity: 1;
}

.modal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, var(--color-principal), var(--color-secundario));
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.welcome-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--overlay-blue), var(--overlay-blue));
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(400px);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.welcome-toast.show {
    transform: translateX(0);
}

.welcome-toast i {
    margin-right: 8px;
}

/* SECCIÓN DE LOGO FIJO */
.fixed-logo-container {
    position: fixed; 
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px;
    border-radius: 50%;
}

.fixed-logo-container img {
    width: 150px;
    height: 150px;
    display: block;
}

.fixed-logo-container:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* SECCIÓN DE ESTILOS RESPONSIVOS (MEDIA QUERIES) */
@media (max-width: 1024px) {
    .header { padding: 20px 40px; }
    .hero-container { padding: 0 40px; gap: 40px; }
    .content-left h1 { font-size: 42px; }
    .hero-image { width: 700px; height: 700px; transform: translate(25%, -70%); }
    .bottom-nav { left: 40px; }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        gap: 20px;
    }

    .nav.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }
            
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 30px;
        gap: 60px;
    }

    .content-left { max-width: 100%; order: 1; }
    .content-left h1 { font-size: 36px; }
    .content-right { order: 2; height: 400px; margin-top: 20px; }

    .hero-image {
        position: static;
        transform: none;
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .play-button {
        top: 20px;
        left: 20px;
        transform: none;
        width: 60px;
        height: 60px;
    }

    .bottom-nav {
        position: static;
        justify-content: center;
        margin-top: 40px;
        padding: 0 30px;
    }

    .welcome-toast {
        bottom: 20px;
        right: 20px;
        font-size: 13px;
        padding: 12px 20px;
    }

    .video-modal.active {
        align-items: flex-start;
        padding-top: 10vh;
    }

    .modal-container {
        width: 95%; 
        max-width: none; 
        height: 70vh; 
        margin: auto; 
        padding: 0;
    }
            
    .modal-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: 0;
        filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); 
    }

    .video-overlay {
        padding: 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-container { padding: 20px 20px; gap: 40px; }
    .content-left h1 { font-size: 28px; margin-bottom: 20px; }
    .content-left p { font-size: 14px; margin-bottom: 30px; }
    .button { padding: 12px 25px; font-size: 14px; }
    .content-right { height: 280px; }
    .hero-image { width: 250px; height: 250px; }
    .play-button { width: 50px; height: 50px; top: 15px; left: 15px; }
    .play-button i { font-size: 14px; }
    .bottom-nav { margin-top: 30px; padding: 0 20px; }
    .nav-text { display: none; }

    .video-modal.active {
        align-items: center;
        padding-top: 0;
    }

    .modal-container {
        width: 100%;
        height: 60vh; 
        margin: 10px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-subtitle {
        font-size: 14px;
    }

    .modal-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: 0;
        filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); 
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}