:root {
    --primary-color: #1810c3;
    --secondary-color: #dc0616;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    padding-top: 80px;
    color: #333;
}
/* Navegación mejorada y responsiva */
.navbar-custom {
    padding: 15px 0;
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-scroll {
    padding: 10px 0;
    background: rgba(24, 16, 195, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 200px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-nav {
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: white !important;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    transform: scale(1.1);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    color: white;
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Estilos para el menú hamburguesa en móviles */
@media (max-width: 991px) {
    .navbar-nav {
        background: var(--primary-color);
        padding: 20px;
        border-radius: 5px;
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }

/* Hamburguesa blanca sin borde */
.navbar-toggler {
    border: none !important;
    border-radius: 0 !important; 
    padding: 6px 8px !important;
    outline: none !important;
}

/* Líneas internas en blanco */
.navbar-toggler-icon {
    filter: invert(1) brightness(200%) !important;
}


}

        .btn-volver-nav {
            display: inline-flex;
            align-items: center;
            padding: 10px 20px;
            background-color:white;
            color: #3498db;
            text-decoration: none;
            border-radius: 30px;
            transition: all 0.3s ease;
            font-weight: 500;
            margin-left: 20px;
            border: 2px solid #3498db;
            box-shadow: #3498db;
            white-space: nowrap;
        }

        .btn-volver-nav:hover {
            background: #3498db;
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }

        @media (max-width: 992px) {
            .btn-volver-nav {
                display: none;
            }
            
            .navbar-custom {
                justify-content: space-between;
            }
            
            .nav-links {
                margin-left: 20px;
                flex-grow: 1;
            }
        }



.contenedor-direccion-mapa {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.seccion-direccion {
    flex: 1;
    min-width: 300px;
}

.mapa {
    flex: 1;
    min-width: 400px;
    height: 400px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.direccion-titulo {
    color: #1810c3;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.direccion-texto {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #444;
}

.puntos-destacados {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.destacado-titulo {
    color: #1810c3;
    font-weight: 500;
    margin-bottom: 10px;
}

.puntos-destacados ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.puntos-destacados li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.puntos-destacados li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .contenedor-direccion-mapa {
        flex-direction: column;
        gap: 25px;
    }
    
    .mapa {
        width: 100%;
        min-width: auto;
        height: 300px;
    }
    
    .seccion-direccion {
        width: 100%;
        text-align: center;
    }
}

/*formulario*/

.formulario-contacto {
            padding: 60px 0;
            background-color: #fff;
        }
        
        .titulo-seccion {
            text-align: center;
            margin-bottom: 40px;
            color: #333;
            font-weight: 700;
            position: relative;
        }
        
        .titulo-seccion::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background-color: #007bff;
            margin: 15px auto;
            border-radius: 2px;
        }
        
        .form-contacto {
            background-color: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-control {
            border: 1px solid #e1e5eb;
            border-radius: 5px;
            padding: 12px 15px;
            transition: all 0.3s;
        }
        
        .form-control:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
        }
        
        label {
            font-weight: 600;
            margin-bottom: 8px;
            color: #495057;
        }
        
        .requerido {
            color: #dc3545;
        }
        
        .btn-enviar {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 5px;
            font-weight: 600;
            transition: all 0.3s;
            font-size: 16px;
        }
        
        .btn-enviar:hover {
            background-color: #1810c3;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .mensaje-exito {
            display: none;
            background-color: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
            padding: 15px;
            border-radius: 5px;
            margin-top: 20px;
            text-align: center;
        }
        
        .mensaje-error {
            display: none;
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
            padding: 15px;
            border-radius: 5px;
            margin-top: 20px;
            text-align: center;
        }

@media (max-width: 768px) {
    .form-contacto {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}


/* Carrusel de marcas */
.marcas-section {
            background-color: #f8f9fa;
            padding: 40px 0;
        }
        
        .titulo-marcas {
            color: #1810c3;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 30px;
            position: relative;
            text-align: center;
        }
        
        .titulo-marcas::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, #1810c3, #0d8af2);
            border-radius: 2px;
        }
        
        .marcas-container {
            position: relative;
            height: 150px;
            overflow: hidden;
            border-radius: 10px;
            background-color: white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            margin-bottom: 20px;
        }
        
        .marcas-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
            opacity: 0;
            transition: opacity 0.8s ease;
        }
        
        .marcas-slide.active {
            opacity: 1;
            z-index: 1;
        }
        
        .marca-img {
            max-height: 80px;
            max-width: 120px;
            object-fit: contain;
            
            
            transition: all 0.3s ease;
        }
        
        .marca-img:hover {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.50);
        }
        
        .puntos-navegacion {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }
        
        .punto {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #ccc;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .punto.active {
            background-color: #1810c3;
            transform: scale(1.2);
        }
        
        .marcas-controls {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }
        
        .marcas-btn {
            background-color: #1810c3;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
        
        .marcas-btn:hover {
            background-color: #0d8af2;
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        }
        
        .marcas-info {
            text-align: center;
            margin-top: 15px;
            color: #666;
            font-size: 14px;
        }
        
        /* Responsividad */
        @media (max-width: 768px) {
            .marcas-slide {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .marca-img {
                max-height: 50px;
                max-width: 80px;
                margin: 5px;
            }
            
            .marcas-container {
                height: 200px;
            }
        }


/* Botón Volver (no fijo, alineado a la izquierda) */
.btn-volver {
            display: inline-block;
            justify-content: flex-start;
            background: rgba(24, 16, 195, 0.98);
            color: white;
            padding: 12px 25px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid #3498db;
            align-self: flex-start;
            margin-bottom: 20px;
}

.btn-volver:hover {
            background: transparent;
            color: #3498db;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Asegurar que no haya flotantes que afecten la posición */
.text-start {
    clear: both;
    text-align: left !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .btn-volver {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .text-start {
        padding-left: 15px; /* Añadir padding en móviles */
    }
}

/* Footer mejorado */
.footer {
    background: linear-gradient(to right, #0c0970, #1810c3);
    color: white;
    padding: 60px 0 0;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: none;
    padding-left: 5px;
}

.footer ul {
    padding-left: 0;
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #0d8af2;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Ajustes responsivos para footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 30px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Utilidades para espaciado responsivo */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

        /* Botón de WhatsApp flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.whatsapp-btn a:hover {
    transform: translateY(-3px);
}

/* Animación de latido */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.6s ease-in-out;
}

/* Estado inicial del botón */
.whatsapp-btn {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}