
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600;800&family=Outfit:wght@300;400;700&display=swap');

:root {
    /* PALETA RAISE MEXICO */
    --azul-raise: #1063A3;
    --verde-raise: #1D804E;
    --fondo-sitio: #faf7ef; 
    --blanco-puro: #ffffff;
    --texto-oscuro: #0f172a;
    --texto-gris: #475569;
    --azul-glow: rgba(16, 99, 163, 0.1);
    --transicion: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--fondo-negro);
    color: var(--texto-claro);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---  HEADER  --- */
header {
    background-image: url("principal.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    
    height: 90vh; 
    min-height: 500px;
    
    position: relative;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    padding: 0 5%; 
    
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    box-shadow: 0 10px 50px rgba(50, 124, 244, 0.2);
    overflow: hidden;
}

header img, 
.logo-header-grande {
    width: 85% !important; 
    max-width: 550px;      
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

header .logo-header-grande:hover {
    transform: scale(1.03);
}

/* --- MENÚ FLOTANTE PREMIUM --- */
.supremo .w3-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 100px !important;
    padding: 8px 15px !important;
    width: fit-content !important;
    margin: -40px auto 60px auto !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 25px;
    z-index: 9999;
}

.supremo .w3-bar-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--texto-oscuro) !important;
    text-transform: uppercase;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    transition: var(--transicion) !important;
}

.w3-bar .w3-blue {
    background: linear-gradient(135deg, var(--azul-raise) 0%, var(--verde-raise) 100%) !important;
    color: white !important;
    box-shadow: 0 8px 20px var(--azul-glow);
}

/* ---  CONTENIDO Y SECCIONES --- */
.supremo {
    padding: 60px 10%;
    background: var(--fondo-sitio);
}

.contenedor {
    margin-bottom: 120px;
    opacity: 0; 
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards;
    width: 100%;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --- ESTILO DE TÍTULOS RAISE MEXICO --- */
.titulo-gigante {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -3px !important;
    line-height: 0.9 !important;
    margin-bottom: 40px !important;
    display: block;
    background: linear-gradient(to right, var(--verde-raise) 0%, var(--azul-raise) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.flex-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.texto-seccion {
    flex: 1.5;
}

.layout-reverse {
    flex-direction: row-reverse;
}

.layout-reverse .texto-seccion {
    text-align: right;
}

.contenedor:has(.layout-reverse) .titulo-gigante {
    text-align: right;
}



/* --- DISEÑO DE SECTORES ESTRATÉGICOS --- */
.sectores {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.sector-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--borde-suave);
    border-left: 5px solid var(--azul-raise); /* Línea de acento inicial */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.sector-icono {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    transition: var(--transicion);
}

.sector-card p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    margin: 0 !important; /* Quita márgenes heredados */
    letter-spacing: 0.5px;
}

/*efecto de mouse*/
.sector-card:hover {
    transform: translateX(8px);
    border-left-color: var(--verde-raise); /* Cambia de azul a verde corporativo */
    background: #ffffff;
    box-shadow: 0 10px 25px var(--azul-glow);
}

.sector-card:hover .sector-icono {
    background: var(--azul-glow);
    transform: scale(1.05);
}


/* ---------------------------------------------------
--- */



/* Ajuste para los párrafos que lo acompañan */
.texto-seccion p {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.2rem !important;
    color: #475569 !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}
p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--texto-gris);
    margin-bottom: 20px;
}

p2 {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: #050608;
    margin-bottom: 20px;
}

/* ---IMÁGENES Y CLIENTES --- */
.imagen-contenedor {
    flex: 1;
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    filter: grayscale(20%) brightness(0.9);
    transition: var(--transicion);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.imagen-contenedor:hover {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.02) rotate(0.5deg);
}

.grid-clientes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 40px;
    background: rgb(255, 255, 255);
    border-radius: 30px;
    align-items: center;
}

.logo-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;  
}

.logo-item img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}


.logo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(50, 124, 244, 0.5);
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.1); /* Zoom sutil interno */
}

/* --- PIE DE PAGINA  --- */
.footer-premium {

    background: #024772
;    
    padding: 80px 10% 40px 10%;
    margin-top: 100px;
    border-top: 1px solid rgba(152, 255, 184, 0.997);
}

.footer-contenido {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #39b500;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 800;
}

.footer-col p {
    font-size: 0.95rem;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.footer-inferior {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}







.titulo-gigante::after {
    content: "";
    display: block;
    width: 1200px; /* Largo de la línea */
    height: 6px;  /* Grosor de la línea */
    background: linear-gradient(to right, var(--verde-raise), var(--azul-raise));
    margin-top: 15px;
    border-radius: 10px;
}

/* Alineación de la línea cuando el título está a la derecha */
.contenedor:has(.layout-reverse) .titulo-gigante::after {
    margin-left: auto; /* Empuja la línea a la derecha */
}

/* Espaciado extra para que no pegue con el texto de abajo */
.titulo-gigante {
    margin-bottom: 50px !important;
}





/* --- LOADER DE MARCA PREMIUM (OLIMPO) --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 4s;
}

.loader-content {
    text-align: center;
}

/* Imagen del logo de la constructora */
.loader-img-logo {
    max-width: 320px; 
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    

  
    
    animation: pulseLogo 2s infinite ease-in-out;
}

/* Barra de carga estilo "escaneo" */
.loader-line-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.loader-line {
    width: 100px;
    height: 100%;
    background: #327cf4;
    position: absolute;
    left: -100px;
    animation: scanLine 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px #327cf4;
}

.loader-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: #4a5568;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 4px; /* Un poco más de espacio para elegancia */
}

/* Animaciones Maestras */
@keyframes scanLine {
    0% { left: -100px; }
    100% { left: 200px; }
}

@keyframes pulseLogo {
    0%, 100% { 
        opacity: 0.7; /* Subimos la opacidad mínima */
        transform: scale(0.98); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Clase de salida */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* skroll */


::-webkit-scrollbar {
    width: 10px;               /* Ancho para scroll vertical */
    height: 10px;              /* Alto para scroll horizontal */
    background-color: #050608; /* Fondo del carril */
}


::-webkit-scrollbar-track {
    background: #0a0c10;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}


::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1a56b8, var(--azul-olimpo));
    border-radius: 10px;
    border: 2px solid #0a0c10; /* Crea un efecto de separación elegante */
}


::-webkit-scrollbar-thumb:hover {
    background: #327cf4;
    box-shadow: 0 0 10px var(--azul-glow);
}


html {
    scroll-behavior: smooth;
}


/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .flex-layout, 
    .contenedor:nth-child(even) .flex-layout {
        flex-direction: column !important; /* Apila imagen y texto */
        text-align: center;
        gap: 30px;
    }

    .imagen-contenedor {
        max-width: 100% !important;
        margin: 0 auto;
    }

    .texto-seccion { 
        padding: 0 !important; 
    }

    h2 { 
        font-size: 2.2rem !important; 
    }

    .supremo { 
        padding: 40px 5% !important; 
    }
}


@media (max-width: 768px) {
   
    header {
        height: 65vh !important; 
        min-height: 400px !important;
        background-attachment: scroll !important;
        clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%) !important;
        padding: 0 10% !important;
    }

    header img, 
    .logo-header-grande {
        width: 90% !important; /* Logo escala con la pantalla */
        max-width: 320px !important; /* Límite para que no se vea gigante */
        height: auto !important;
    }

    /* --- MENÚ FLOTANTE (Forzado a una sola línea) --- */
    .supremo .w3-bar {
        width: 95% !important;
        margin: -30px auto 40px auto !important; /* Sube para quedar sobre el header */
        display: flex !important;
        flex-direction: row !important; /* FUERZA horizontalidad */
        justify-content: space-around !important;
        padding: 5px !important;
        gap: 2px !important;
        border-radius: 50px !important;
    }

    .supremo .w3-bar-item {
        padding: 10px 8px !important; /* Botones más compactos */
        font-size: 0.65rem !important; /* Letra pequeña pero legible */
        letter-spacing: 0.5px !important;
        flex: 1;
        text-align: center;
    }

    /* --- CUADRICULA DE CLIENTES --- */
    .grid-clientes {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        padding: 20px !important;
        gap: 15px !important;
    }

    .logo-item {
        height: 70px !important; 
    }

    /* --- SECCIONES DE CONTENIDO --- */
    .contenido {
        padding: 30px 20px !important;
        border-radius: 20px !important;
    }

    p {
        font-size: 1rem !important; 
        text-align: left;
    }

    h1 {
        font-size: 1.8rem !important;
        margin: 40px 0 20px 0 !important;
        padding: 0 20px;
    }


    c.contenedor-clientes-carrusel {
        overflow: hidden; /* Oculta lo que sale de la pantalla */
        width: 100%;
        position: relative;
        /* Difuminado suave en los bordes */
        mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    }

    .grid-clientes {
        display: flex !important; /* Cambia a fila para el carrusel */
        grid-template-columns: none !important;
        width: max-content !important; /* Permite que la fila sea muy larga */
        background: transparent !important;
        gap: 20px !important;
        padding: 20px 0 !important;
        
        /* Ejecuta la animación */
        animation: scrollCarrusel 35s linear infinite;
    }

    .logo-item {
        flex: 0 0 140px !important; /* Ancho fijo para cada logo en la fila */
        height: 70px !important;
        margin-right: 5px;
    }

    @keyframes scrollCarrusel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Se mueve exactamente la mitad */
    }

}

