: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;
            }
        }




:root {
            --card-height: 510px;
            --image-height: 110px;
            --card-padding: 15px;
        }
        

        
        .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;
        }
        
        /* Contenedor principal */
        .marcas-container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* Estilos uniformes para las tarjetas */
        .marca-card {
            height: var(--card-height);
            display: flex;
            flex-direction: column;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            background-color: white;
        }
        
        .marca-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        }
        
        /* Imágenes con tamaño fijo */
        .marca-card img {
            width: 100%;
            height: var(--image-height);
            object-fit: contain;
            padding: 20px;
            background-color: white;
            
        }
        
        /* Contenedor de descripción uniforme */
        .marca-caption {
            padding: var(--card-padding);
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        /* Descripción con altura fija y scroll */
        .marca-caption p {
            flex-grow: 1;
            overflow: hidden;
            margin-bottom: 15px;
            color: #555;
            line-height: 1.6;
            position: relative;
            max-height: 130px;
        }
        
        /* Botones uniformes */
        .marca-caption .btn {
            align-self: flex-start;
            background: linear-gradient(to right, #3498db, #2980b9);
            border: none;
            padding: 8px 18px;
            font-size: 14px;
            border-radius: 30px;
            margin-top: auto;
            transition: all 0.3s ease;
        }
        
        .marca-caption .btn:hover {
            background: linear-gradient(to right, #2980b9, #2573a7);
            transform: scale(1.05);
        }
        
        /* Botones de navegación */
        .nav-buttons {
            margin-top: 30px;
        }
        
        .nav-buttons .btn {
            min-width: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .nav-buttons .btn-outline-primary {
            border-color: #3498db;
            color: #3498db;
        }
        
        .nav-buttons .btn-outline-primary:hover {
            background-color: #3498db;
            color: white;
        }
        

        /* Responsividad */
        @media (max-width: 992px) {
            .col-md-3 {
                flex: 0 0 50%;
                max-width: 50%;
            }
        }
        
        @media (max-width: 576px) {
            .col-md-3 {
                flex: 0 0 100%;
                max-width: 100%;
            }
            
            :root {
                --card-height: auto;
                --image-height: 160px;
            }
            
            .marca-card {
                height: auto;
            }
        }


        /* 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 */
    }
}

        /* 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;
}

/* 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;
    }
}