/* ===== ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== SPLASH CONTAINER - VERSIÓN CON NUBES ===== */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: hidden;
    transition: opacity 0.8s ease;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f7fa 50%, #ffffff 100%);
}

/* Fondo base con gradiente */
.background-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f7fa 50%, #ffffff 100%);
    z-index: 1;
}

/* Contenedor de las nubes */
.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

/* Estilo base para cada nube */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.50);
    border-radius: 1000px;
    filter: blur(25px);
    box-shadow: 0 0 60px rgba(100, 150, 200, 0.5);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 1;
}

/* Nubes que van de izquierda a derecha */
.cloud-1 {
    width: 300px;
    height: 180px;
    top: 10%;
    left: -20%;
    animation-name: floatCloud;
    animation-duration: 35s;
}

.cloud-2 {
    width: 450px;
    height: 250px;
    top: 40%;
    left: -30%;
    animation-name: floatCloud;
    animation-duration: 45s;
}

.cloud-3 {
    width: 200px;
    height: 120px;
    top: 70%;
    left: -15%;
    animation-name: floatCloud;
    animation-duration: 28s;
}

.cloud-4 {
    width: 380px;
    height: 210px;
    top: 85%;
    left: -40%;
    animation-name: floatCloud;
    animation-duration: 50s;
}

.cloud-5 {
    width: 520px;
    height: 280px;
    top: -15%;
    left: -25%;
    animation-name: floatCloud;
    animation-duration: 55s;
}

.cloud-6 {
    width: 280px;
    height: 160px;
    top: 55%;
    left: -50%;
    animation-name: floatCloud;
    animation-duration: 40s;
}

/* Nubes que van de derecha a izquierda */
.cloud-7 {
    width: 350px;
    height: 200px;
    top: 20%;
    right: -30%;
    animation-name: floatCloudReverse;
    animation-duration: 42s;
}

.cloud-8 {
    width: 420px;
    height: 240px;
    top: 65%;
    right: -40%;
    animation-name: floatCloudReverse;
    animation-duration: 48s;
}

.cloud-9 {
    width: 250px;
    height: 140px;
    top: 80%;
    right: -20%;
    animation-name: floatCloudReverse;
    animation-duration: 32s;
}

.cloud-10 {
    width: 480px;
    height: 260px;
    top: 5%;
    right: -35%;
    animation-name: floatCloudReverse;
    animation-duration: 52s;
}

/* Animación para nubes que van de izquierda a derecha */
@keyframes floatCloud {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.9;
    }
    100% {
        transform: translateX(calc(100vw + 50%)) translateY(-30px);
        opacity: 0;
    }
}

/* Animación para nubes que van de derecha a izquierda */
@keyframes floatCloudReverse {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.9;
    }
    100% {
        transform: translateX(calc(-100vw - 50%)) translateY(-30px);
        opacity: 0;
    }
}

/* Glow effect suave */
.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 180, 255, 0.2) 0%, transparent 20%);
    z-index: 15;
    pointer-events: none;
    animation: gentlePulse 8s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Eliminar overlay oscuro */
.overlay {
    display: none;
}

@keyframes zoomBackground {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    position: relative;
    z-index: 1001;
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 100px 20px;
    pointer-events: none;
    min-height: 100vh;
}

/* ===== CONTENEDOR DE BOTONES PRINCIPALES ===== */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    padding: 20px;
    pointer-events: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    flex: 1 0 auto;
}

/* ===== BOTONES PRINCIPALES CON ANIMACIONES ===== */
.nav-button {
    pointer-events: auto;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    width: min(320px, 25vw);
    height: auto;
    aspect-ratio: 1/1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    opacity: 0;
}

.nav-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* ANIMACIONES DE ENTRADA Y FLOTACIÓN COMBINADAS */
#btnBoxtv {
    animation: fadeInUp 0.8s ease-out forwards, floatTv 4s infinite ease-in-out;
    animation-delay: 0.2s, 0.2s;
}

#btnBoxkios {
    animation: fadeInUp 0.8s ease-out forwards, floatKios 4.2s infinite ease-in-out;
    animation-delay: 0.4s, 0.4s;
}

#btnBoxds {
    animation: fadeInUp 0.8s ease-out forwards, floatDs 3.8s infinite ease-in-out;
    animation-delay: 0.6s, 0.6s;
}

#btnBoxshare {
    animation: fadeInUp 0.8s ease-out forwards, floatShare 4.5s infinite ease-in-out;
    animation-delay: 0.8s, 0.8s;
}

/* KEYFRAMES DE ENTRADA */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* KEYFRAMES DE FLOTACIÓN PERSONALIZADOS */
@keyframes floatTv {
    0% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatKios {
    0% {
        transform: translateY(0px);
    }
    33% {
        transform: translateY(-10px);
    }
    66% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatDs {
    0% {
        transform: translateY(0px);
    }
    20% {
        transform: translateY(-6px);
    }
    40% {
        transform: translateY(2px);
    }
    70% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatShare {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-7px) rotate(1deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* EFECTOS HOVER ESPECÍFICOS */
#btnBoxtv:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(97, 218, 251, 0.7));
}

#btnBoxds:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(76, 175, 80, 0.7));
}

#btnBoxkios:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(255, 193, 7, 0.7));
}

#btnBoxshare:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(156, 39, 176, 0.7));
}

/* PAUSAR ANIMACIÓN EN HOVER */
#btnBoxtv:hover,
#btnBoxkios:hover,
#btnBoxds:hover,
#btnBoxshare:hover {
    animation-play-state: paused;
}

/* EFECTO AL HACER CLIC */
.nav-button:active img {
    transform: scale(0.95) !important;
}

/* ===== BARRA DE BÚSQUEDA ===== */
.search-container {
    margin: 20px auto;
    width: 100%;
    max-width: 400px;
    display: none;
    pointer-events: auto;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 1002;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 40px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1rem;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-input:focus {
    outline: none;
    border-color: #61dafb;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(97, 218, 251, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* ===== BOTONES DE CONTROL EN LA PARTE INFERIOR (ESTILO DOCK) ===== */
.fullscreen-control {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 20px;
    pointer-events: auto;
    z-index: 1002;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 25px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: dockAppear 0.5s ease;
}

@keyframes dockAppear {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.fullscreen-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b8e1fc 0%, #d4eaff 50%, #e6f0fa 100%);
    transition: left 0.5s ease;
}

.fullscreen-btn:hover::before {
    left: 100%;
}

.fullscreen-btn:hover {
    background: rgba(97, 218, 251, 0.3);
    border-color: #61dafb;
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 25px rgba(97, 218, 251, 0.4);
}

.fullscreen-btn:active {
    transform: scale(0.95) translateY(0);
}

/* Tooltip para los botones */
.fullscreen-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fullscreen-btn:hover::after {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .fullscreen-control {
        gap: 18px;
        padding: 10px 22px;
        bottom: 70px;
    }

    .fullscreen-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 20px 90px 20px;
        justify-content: center;
    }

    .button-container {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-button {
        width: min(300px, 80%);
    }

    .fullscreen-control {
        bottom: 65px;
        gap: 15px;
        padding: 8px 18px;
    }

    .fullscreen-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .search-container {
        max-width: 90%;
        margin: 15px auto;
    }

    .search-input {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 15px 80px 15px;
    }

    .button-container {
        gap: 1.5rem;
    }

    .nav-button {
        width: min(280px, 90%);
    }

    .fullscreen-control {
        bottom: 60px;
        gap: 12px;
        padding: 6px 15px;
    }

    .fullscreen-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .fullscreen-btn::after {
        font-size: 10px;
        bottom: 60px;
    }
}

@media (max-width: 360px) {
    .fullscreen-control {
        gap: 10px;
        padding: 5px 12px;
        bottom: 55px;
    }

    .fullscreen-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ===== AJUSTES PARA EL SISTEMA DE VENTANAS ===== */
.window-modal {
    z-index: 10000;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(30, 30, 35, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

/* ===== SOPORTE PARA PANTALLAS DE ALTA RESOLUCIÓN ===== */
@media (min-width: 2000px) {
    .fullscreen-btn {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    .fullscreen-control {
        gap: 25px;
        padding: 15px 30px;
        bottom: 90px;
    }
}

/* ===== PREFERENCIAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    .fullscreen-control,
    .fullscreen-btn,
    .fullscreen-btn::before,
    .search-container,
    .nav-button {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== ESTILOS ADICIONALES PARA EL CARRUSEL ===== */
.main-slider-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    pointer-events: auto;
}

/* Ajuste para que el contenedor principal no interfiera */
.main-content {
    pointer-events: auto;
}

/* Estilos del carrusel Swiper */
.vehicles-slider {
    width: 100%;
    padding: 20px 0 50px;
    overflow: hidden;
}

.vehicles-slider .swiper-wrapper {
    align-items: center;
}

/* Slide que contiene el botón */
.vehicles-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Botones dentro del carrusel - Mantienen el estilo original */
.nav-button-carousel {
    pointer-events: auto;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    width: min(320px, 25vw);
    height: auto;
    aspect-ratio: 1/1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Animaciones específicas para cada botón */
.nav-button-carousel[data-btn="boxtv"] {
    animation: fadeInUp 0.8s ease-out forwards, floatTv 4s infinite ease-in-out;
    animation-delay: 0.2s, 0.2s;
}

.nav-button-carousel[data-btn="boxkios"] {
    animation: fadeInUp 0.8s ease-out forwards, floatKios 4.2s infinite ease-in-out;
    animation-delay: 0.4s, 0.4s;
}

.nav-button-carousel[data-btn="boxds"] {
    animation: fadeInUp 0.8s ease-out forwards, floatDs 3.8s infinite ease-in-out;
    animation-delay: 0.6s, 0.6s;
}

.nav-button-carousel[data-btn="boxshare"] {
    animation: fadeInUp 0.8s ease-out forwards, floatShare 4.5s infinite ease-in-out;
    animation-delay: 0.8s, 0.8s;
}

.nav-button-carousel[data-btn="boxmusic"] {
    animation: fadeInUp 0.8s ease-out forwards, floatShare 4.5s infinite ease-in-out;
    animation-delay: 1.0s, 1.0s;
}

.nav-button-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Efectos hover específicos */
.nav-button-carousel[data-btn="boxtv"]:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(97, 218, 251, 0.7));
}

.nav-button-carousel[data-btn="boxds"]:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(76, 175, 80, 0.7));
}

.nav-button-carousel[data-btn="boxkios"]:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(255, 193, 7, 0.7));
}

.nav-button-carousel[data-btn="boxshare"]:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(156, 39, 176, 0.7));
}

.nav-button-carousel[data-btn="boxmusic"]:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(233, 30, 99, 0.7));
}

/* Pausar animación en hover */
.nav-button-carousel:hover {
    animation-play-state: paused;
}

/* Efecto al hacer clic */
.nav-button-carousel:active img {
    transform: scale(0.95) !important;
}

/* Estilos para la paginación (dots) */
.swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 10px;
    pointer-events: auto;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #61dafb;
    opacity: 1;
    transform: scale(1.2);
}

/* Clase auxiliar para ocultar la paginación si se desea */
.hide-pagination .swiper-pagination {
    display: none;
}

/* Flechas de navegación opcionales */
.swiper-button-next,
.swiper-button-prev {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #61dafb;
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* Ocultar flechas en móvil */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    .main-slider-container {
        padding: 20px 15px;
    }
}

/* Ajustes responsivos para botones del carrusel */
@media (max-width: 768px) {
    .nav-button-carousel {
        width: min(280px, 80%);
    }
}

@media (max-width: 480px) {
    .nav-button-carousel {
        width: min(260px, 85%);
    }
}

/* Mantener los estilos del splash y demás intactos */
.main-content {
    position: relative;
    z-index: 1001;
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 100px 20px;
    min-height: 100vh;
}