/* Estilos personalizados para MB INSUMOS */

/* Variables CSS para colores */
:root {
    --primary-color: #E21E2F;
    --secondary-color: #333333;
    --light-color: #F8F8F8;
    --text-color: #555555;
}

/* Fuentes */
body {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Estilos para el menú hamburguesa - Mobile */
.main-nav .nav-list {
    display: none;
}

@media (max-width: 1023px) {
    .main-nav .nav-list {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: #000;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        z-index: 1000;
    }
    
    .main-nav .nav-list.active {
        display: flex;
    }
    
    .main-nav .nav-list li {
        margin: 10px 0;
        text-align: center;
        margin-left: 0;
    }
    
    .main-nav .nav-list li a {
        padding: 10px 20px;
        display: block;
    }
}

/* Animación del botón hamburguesa */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Efectos hover para enlaces de navegación */
.nav-list a {
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Estilos para el portfolio hover */
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-thumbnail {
    transform: scale(1.05);
}

.portfolio-link:hover i {
    transform: translateX(5px);
}

/* Estilos para el lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox.visible {
    display: flex !important;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border: 3px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform: scale(0.7);}
    to {transform: scale(1);}
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Tooltip del WhatsApp */
.whatsapp-float:hover .whatsapp-label {
    visibility: visible;
    opacity: 1;
}

.whatsapp-label::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Filtros del portfolio activos */
.filter-btn.active {
    background-color: #dc2626 !important; /* red-600 */
    color: white !important;
}

/* Background responsive para hero */
@media (max-width: 768px) {
    .hero-section {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/FinalMobil.svg') !important;
        background-attachment: scroll;
        min-height: 70vh;
        padding: 80px 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/FinalMobil.svg') !important;
        min-height: 60vh;
        background-size: cover;
        background-position: center center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section h2 {
        font-size: 1.5rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
}