/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    background: #000;
}

/* Secciones de scroll */
.scroll-section {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
    z-index: 1;
    pointer-events: none;
}

.scroll-section.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 3;
    pointer-events: all;
}

.scroll-section.prev {
    transform: translateY(-100%);
    z-index: 2;
    opacity: 0.5;
}

/* Imágenes de fondo */
.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Contenido de sección */
.section-content {
    position: relative;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 2rem 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease 0.3s;
    max-width: 1200px;
    margin: 0 auto;
}

.scroll-section.active .section-content {
    opacity: 1;
    transform: translateY(0);
}

/* Botones */
.project-button {
    align-self: flex-start;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid white;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.project-button:hover {
    background: white;
    color: black;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Mantenemos este z-index */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

/* Menú hamburguesa */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-right: 1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* CORRECCIÓN CRÍTICA PARA EL OFFCANVAS */
.offcanvas {
    background: rgba(0, 0, 0, 0.95) !important; /* Fondo más opaco */
    backdrop-filter: blur(10px);
    z-index: 1100 !important; /* Mayor que navbar y secciones */
}

.offcanvas-backdrop {
    z-index: 1099 !important; /* Detrás del offcanvas pero sobre todo lo demás */
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.offcanvas-title {
    color: white;
    font-weight: 700;
}

.offcanvas-body {
    padding: 0 !important;
}

/* Enlaces del menú */
.navbar-nav {
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-link {
    color: white !important;
    padding: 1.5rem !important;
    font-size: 0.9rem;
    display: block;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid white;
    padding-left: calc(1.5rem - 4px) !important;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
    margin-right: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-content {
        padding: 80px 1.5rem 1.5rem;
    }

    .project-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar-brand img {
        max-width: 50px;
    }
}



/* Estilos para el ícono de WhatsApp flotante */
        .whatsapp-float {
            position: fixed;
            width: 60px;
            height: 60px;
            bottom: 30px;
            right: 30px;
            background-color: #fa5338;
            color: #FFF !important;
            border-radius: 50%;
            text-align: center;
            font-size: 30px;
            box-shadow: 0 4px 12px rgba(250, 83, 56, 0.5);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }
        
        .whatsapp-float:hover {
            background-color: #e04830;
            transform: scale(1.1) translateY(-5px);
            box-shadow: 0 6px 16px rgba(250, 83, 56, 0.7);
        }
        
        .whatsapp-float i {
            margin-top: 3px;
        }
        
        .whatsapp-tooltip {
            position: absolute;
            background-color: #333;
            color: white;
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 14px;
            right: 70px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        
        .whatsapp-float:hover .whatsapp-tooltip {
            opacity: 1;
            visibility: visible;
            right: 75px;
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(250, 83, 56, 0.7);
            }
            70% {
                box-shadow: 0 0 0 12px rgba(250, 83, 56, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(250, 83, 56, 0);
            }
        }
        
        /* Media Queries para hacerlo responsive */
        @media (max-width: 768px) {
            .whatsapp-float {
                width: 50px;
                height: 50px;
                font-size: 25px;
                bottom: 20px;
                right: 20px;
            }
            
            .whatsapp-tooltip {
                font-size: 12px;
                padding: 6px 10px;
                right: 60px;
            }
            
            .whatsapp-float:hover .whatsapp-tooltip {
                right: 65px;
            }
        }