/* VARIABLES DE MARCA PROMINSAC */
:root {
    --pms-orange: #f3761d;
    --pms-dark: #2c2f33;
    --pms-white: #ffffff;
    --pms-gray-light: #f8f9fa;
    --pms-transition: all 0.4s ease-in-out;
}

/* GENERAL */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* HEADER DINÁMICO */
.navbar-transparent {
    background-color: transparent !important;
    transition: var(--pms-transition);
}
.navbar-transparent .nav-link { color: var(--pms-white) !important; }

.navbar-scrolled {
    background-color: var(--pms-white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-scrolled .nav-link { color: var(--pms-dark) !important; }

.btn-naranja {
    background-color: var(--pms-orange) !important;
    color: var(--pms-white) !important;
    border: none;
    transition: var(--pms-transition);
}
.btn-naranja:hover { background-color: #d66110 !important; transform: scale(1.05); }

/* SECCIÓN SERVICIOS (HOVER EFECTO OPACIDAD) */
.service-card-modern {
    height: 350px;
    background-color: #000;
}
.service-card-modern img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: var(--pms-transition);
    opacity: 0.7; /* Opacidad base */
}
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    transition: var(--pms-transition);
}
.card-full-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--pms-transition);
    color: var(--pms-white);
}

.service-card-modern:hover img {
    filter: blur(2px);
    opacity: 0.5;
}
.service-card-modern:hover .card-overlay {
    background: rgba(243, 118, 29, 0.85); /* Vira al naranja corporativo */
}
.service-card-modern:hover .card-full-text {
    opacity: 1;
}

/* SECCIÓN PROYECTOS (SLIDER) */
.project-card {
    transition: var(--pms-transition);
    border: 1px solid #eee;
}
.project-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* FOOTER DINÁMICO */
.footer-text p { margin-bottom: 0.7rem; line-height: 1.5; }
.footer-text i { color: var(--pms-orange); margin-right: 10px; }
.hover-orange:hover { color: var(--pms-orange) !important; }

/* Forzar que el efecto sea un desvanecimiento suave */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Animación de los textos dentro del slider */
.carousel-item.active h1 {
    animation: fadeInDown 1s both;
}

.carousel-item.active p {
    animation: fadeInUp 1.2s both;
}

.carousel-item.active .btn {
    animation: zoomIn 1.5s both;
}

/*MENU STYLOS*/
@media (max-width: 991.98px) {
    /* 1. Reset del contenedor para que logo y botón estén en una línea */
    #mainNavbar .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* 2. Transformación del menú en panel lateral */
    #mainNavbar .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        /* Forzamos el blanco puro y anulamos cualquier transparencia */
        background: #ffffff !important; 
        background-color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
        
        display: block !important;
        transition: right 0.4s cubic-bezier(0, 0, 0.2, 1) !important;
        z-index: 999999 !important; /* Prioridad máxima */
        padding: 80px 25px !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.3) !important;
    }

    /* 3. Cuando se abre el menú */
    #mainNavbar .navbar-collapse.show {
        right: 0 !important;
    }

    /* 4. Letras negras sobre fondo blanco */
    #mainNavbar .navbar-nav .nav-link {
        color: #212529 !important; /* Negro Bootstrap */
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        border-bottom: 1px solid #f2f2f2 !important;
        padding: 15px 0 !important;
        text-align: left !important;
    }

    /* 5. Asegurar que las 3 rayas sean blancas sobre el Nav transparente */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
    }
}

/* --- BARRA SOCIAL FLOTANTE (Sticky Bar) --- */
.social-sticky-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff; /* Fondo blanco */
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Sombra suave */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efectos Hover: Cambio de color y desplazamiento a la izquierda */
.social-link:hover {
    color: #ffffff !important;
    transform: scale(1.1) translateX(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.social-link.facebook:hover { background-color: #1877f2; }
.social-link.instagram:hover { background-color: #e1306c; }
.social-link.linkedin:hover { background-color: #0077b5; }
.social-link.whatsapp:hover { background-color: #25d366; }
.social-link.youtube:hover { background-color: #ff0000; }

/* Efecto de pulso para el icono de WhatsApp */
.social-link.whatsapp {
    position: relative;
    background-color: #25d366; /* Color oficial de WhatsApp */
    color: white !important;
}

.social-link.whatsapp::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

.social-link.whatsapp:hover { 
    background-color: #25d366 !important; 
    color: white !important; 
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Ajustes para móviles */
@media (max-width: 991.98px) {
    .social-sticky-bar {
        right: 15px;
    }
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

/* --- MODERN PROJECT CARD --- */
.modern-project-card {
    height: 380px;
    cursor: pointer;
}

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 118, 29, 0.92); /* Naranja corporativo */
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: 2;
    transform: translateY(10px);
}

.modern-project-card:hover .card-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-title-fixed {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.modern-project-card:hover .card-title-fixed {
    opacity: 0; /* Se oculta para que se vea el overlay */
}

.text-orange { color: #f3761d !important; }

/* Estilos para el pie del menú lateral */
.side-menu {
    display: flex;
    flex-direction: column;
}

.side-menu-nav {
    flex-grow: 1; /* Esto empuja el footer hacia abajo */
}

.side-menu-footer {
    padding-top: 30px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s ease;
}

.social-icon:hover {
    background-color: #f3761d; /* Naranja Prominsac */
    color: white;
    transform: translateY(-3px);
}

.text-orange {
    color: #f3761d !important;
}



/* Unificamos el estilo de todos los banners superiores */
.contact-hero, 
.services-hero, 
.projects-hero,
.page-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Espacio para el menú transparente */
    
    /* Opción A: Negro Sólido Institucional */
    background: #1a1a1a !important; 
    
    /* Opción B: Degradado Negro (si quieres mantener la imagen de fondo muy sutil) */
    /* background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url('path/to/image.jpg') center/cover no-repeat !important; */
    
    color: #ffffff;
}

/* Ajuste para que el texto resalte */
.contact-hero h1, .page-hero h1 {
    text-transform: uppercase;
    letter-spacing: 2px;
}