/* ============================================
   RESET Y ESTILOS GLOBALES
   ============================================ */
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Bloquea el movimiento lateral */
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

/* ============================================
   PRELOADER (Pantalla de carga)
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.contenedor-logo {
    text-align: center;
}



.double-bounce1,
.double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #2c6e9e;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
}

/* Icono central */
.logo-icon {
    margin: 20px auto;
    animation: pulse 1.5s ease-in-out infinite;
}

.logo-icon i {
    font-size: 50px;
    color: #2c6e9e;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Título del preloader */
.preloader-title {
    margin: 10px 0 5px;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

/* Puntos animados de carga */
.loading-dots {
    margin-top: 20px;
    font-size: 24px;
    color: #2c6e9e;
}

.loading-dots span {
    animation: dots 1.4s infinite;
    opacity: 0;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Ocultar preloader */
#preloader.oculto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    position: relative;
    z-index: 1;
}

/* ============================================
   RESPONSIVE PARA MÓVILES
   ============================================ */
@media (max-width: 768px) {
    /* Ajustes del hero section */
    .hero-section,
    .containerr {
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
        padding-top: 40px !important;
    }

    .hero-content {
        margin-top: 0 !important;
        padding-top: 10px;
    }

    .hero-title {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        margin-bottom: 20px;
    }
}