/* Importar el CSS base */
@import url('style_plano_v3.css');

/* ============================================
   ESTILOS DE FONDO DE SLIDES
   ============================================ */

/* Hero slides backgrounds */
.hero-slide:nth-child(1) {
    background-image: url('../images/bannerweb05.jpeg');
}

.hero-slide:nth-child(2) {
    background-image: url('../images/Bannersweb02.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('../images/Bannersweb03.jpg');
}

.hero-slide:nth-child(4) {
    background-image: url('../images/Bannersweb04.jpg');
}

/* WhatsApp flotante - línea 348 del HTML original */
.whatsapp-float {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* ============================================
   NUEVA SECCIÓN: SEGMENTOS QUE ABARCAMOS
   ============================================ */

.segmentos-section {
    background: white;
    padding: 100px 5%;
}

.segmentos-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.segmentos-content {
    padding-right: 40px;
}

.segmentos-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.segmentos-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
}

.btn-segmentos {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--blue-pow);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 28, 62, 0.2);
    border: none;
    cursor: pointer;
}

.btn-segmentos:hover {
    background: var(--blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 255, 0.3);
}

.btn-segmentos:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 71, 255, 0.2);
}

.btn-segmentos i {
    font-size: 1.1rem;
}

.segmentos-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.segmentos-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.segmentos-image:hover img {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE PARA NUEVA SECCIÓN
   ============================================ */

@media (max-width: 992px) {
    .segmentos-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .segmentos-content {
        padding-right: 0;
        text-align: center;
    }
    
    .segmentos-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .segmentos-title {
        font-size: 1.8rem;
    }
    
    .segmentos-text {
        font-size: 1rem;
    }
    
    .btn-segmentos {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .segmentos-section {
        padding: 60px 5%;
    }

    .btn-segmentos {
        padding: 10px 18px;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* ============================================
   MOBILE MENU - Menú hamburguesa funcional
   (reemplaza nicepage.js que no está presente)
   ============================================ */

@media (max-width: 991px) {
    /* Mostrar botón hamburguesa */
    .u-menu-1 .menu-collapse {
        display: block !important;
    }

    /* Ocultar nav horizontal de escritorio */
    .u-menu-1 .u-nav-container {
        display: none !important;
    }

    /* Panel lateral deslizante */
    .u-menu-1 .u-nav-container-collapse {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transform: translateX(-105%);
        transition: transform 0.35s ease;
        z-index: 10000 !important;
        margin: 0 !important;
    }

    /* Estado abierto del panel */
    .u-menu-1.open .u-nav-container-collapse {
        transform: translateX(0) !important;
    }

    /* Sidenav ocupa todo el panel */
    .u-menu-1 .u-sidenav {
        width: 280px !important;
        min-height: 100vh !important;
        margin-left: 0 !important;
        flex-basis: auto !important;
        transition: none !important;
    }
}

/* Overlay oscuro detrás del menú abierto */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    cursor: pointer;
}

.mobile-menu-overlay.active {
    display: block;
}
