/* --- Variables Personalizadas --- */
:root {
    --primary-accent: #e60000; /* Rojo vivo y agresivo */
    --primary-accent-hover: #ff3333; /* Rojo más claro al pasar el mouse */
    --bg-main: #121212; /* Negro asfalto */
    --bg-secondary: #1a1a1a; /* Gris carbón oscuro */
    --bg-card: #222222; /* Gris tarjeta */
}

body {
    font-family: 'Roboto', sans-serif;
}

/* Utilidades para combinar con Bootstrap */
.bg-main { 
    background-color: var(--bg-main) !important;
    /* Textura sutil de puntos (tipo industrial) para dar profundidad */
    background-image: radial-gradient(circle, #262626 1px, transparent 1px), radial-gradient(circle, #262626 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    background-position: 0 0, 10px 10px !important;
}
.bg-secondary-custom { 
    background-color: var(--bg-secondary) !important;
    /* Degradado vertical para diferenciar secciones */
    background-image: linear-gradient(to bottom, #222 0%, #111 100%) !important;
}
.text-accent { color: var(--primary-accent) !important; }
.border-accent { border-color: var(--primary-accent) !important; }

/* --- Navbar --- */
.custom-navbar {
    background-color: #0a0a0a;
    border-bottom: 2px solid var(--primary-accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.custom-navbar .nav-link:hover {
    color: var(--primary-accent) !important;
}

.btn-accent {
    background-color: var(--primary-accent);
    border: none;
    transition: background-color 0.3s;
}

.btn-accent:hover {
    background-color: var(--primary-accent-hover);
}

/* --- Títulos de Sección --- */
.custom-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-accent);
    margin: 15px auto 0;
}

/* --- Hero Section --- */
/* --- Hero Section (Preparado para Parallax) --- */
.hero {
    /* Imagen de fondo profesional (Motor/Taller oscuro) con degradado para que se lea el texto */
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* ESTA ES LA LÍNEA QUE HACE QUE SE QUEDE FIJA AL HACER SCROLL */
    background-attachment: fixed; 
    
    height: 70vh;
    border-bottom: 1px solid #333;
    margin-top: 76px; /* Compensa la altura del Navbar fixed */
}

/* --- Cards de Servicios --- */
.custom-card {
    background-color: var(--bg-card);
    border-bottom: 4px solid var(--primary-accent) !important;
    transition: transform 0.3s, border-top-color 0.3s;
    border-top: 1px solid transparent !important;
}

.custom-card:hover {
    transform: translateY(-7px);
    border-top: 1px solid var(--primary-accent) !important;
}

/* --- Lista de Servicios --- */
.service-list {
    list-style: none;
    padding-left: 20px;
}

.service-list li {
    margin-bottom: 10px;
    color: #e0e0e0;
    position: relative;
}

.service-list li::before {
    content: '•';
    color: var(--primary-accent);
    position: absolute;
    left: -15px;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: #FFF;
}

/* --- Tooltip del WhatsApp --- */
.wa-tooltip {
    position: absolute;
    right: 75px; /* Lo empuja a la izquierda del logo verde */
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-card);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--primary-accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    
    /* Configuración de la animación: dura 6 segundos, arranca al segundo 1 */
    opacity: 0;
    visibility: hidden;
    animation: mostrarOcultarTooltip 6s ease-in-out 1s forwards;
}

/* El piquito del globo de diálogo */
.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%);
    border-width: 7px 0 7px 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--primary-accent);
}

/* La magia de la animación (Keyframes) */
@keyframes mostrarOcultarTooltip {
    0% { opacity: 0; visibility: hidden; transform: translate(15px, -50%); }
    15%, 85% { opacity: 1; visibility: visible; transform: translate(0, -50%); }
    100% { opacity: 0; visibility: hidden; transform: translate(15px, -50%); }
}

/* --- Notificación (Puntito Rojo) del WhatsApp --- */
.wa-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ff0000; /* Rojo bien de notificación */
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    
    /* Arranca invisible y chiquito */
    opacity: 0;
    transform: scale(0);
    
    /* La animación dura 0.4s y arranca recién a los 7 segundos */
    animation: popNotificacion 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 7s;
}

@keyframes popNotificacion {
    0% { 
        opacity: 0; 
        transform: scale(0); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* --- Enlace del número de WhatsApp --- */
.link-whatsapp {
    transition: all 0.3s ease;
}

.link-whatsapp:hover {
    color: #25d366 !important; /* Se pone verde WhatsApp brillante */
    text-decoration: none !important; /* Le saca el subrayado al pasar el mouse para dar efecto de botón */
}

/* --- Barra de Scroll Personalizada (Scrollbar) --- */

/* 1. Para Firefox (Usa una regla distinta más simple) */
* {
    scrollbar-width: thin; /* Hace la barra un poco más finita */
    scrollbar-color: var(--primary-accent) var(--bg-main); /* Color del "pulgar" y color del fondo */
}

/* 2. Para Chrome, Edge, Safari y Opera (Webkit) */
::-webkit-scrollbar {
    width: 10px; /* Ancho de la barra vertical */
    background-color: var(--bg-main); /* Mismo color de fondo que la página */
}

::-webkit-scrollbar-track {
    background: var(--bg-main); /* El "caminito" por donde baja la barra */
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-accent); /* La barrita que arrastrás en rojo oscuro */
    border-radius: 10px; /* Le redondeamos las puntas para que quede suave */
    border: 2px solid var(--bg-main); /* Un bordecito oscuro para que no pegue contra el borde de la pantalla */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-accent-hover); /* Se pone rojo vivo cuando le pasás el mouse */
}

/* --- Ticker de Marcas (Slider Infinito con Simple Icons) --- */
.brands-ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Efecto de sombra a los costados para que los íconos se desvanezcan */
.brands-ticker-wrap::before,
.brands-ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}

.brands-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

.brands-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

.brands-ticker {
    display: inline-flex;
}

.brands-slide {
    display: inline-flex;
    align-items: center;
    /* Velocidad del carrusel: 25 segundos */
    animation: slideBrands 25s infinite linear; 
}

/* Se frena al pasar el mouse por arriba */
.brands-ticker-wrap:hover .brands-slide {
    animation-play-state: paused;
}

/* Estilos para los Simple Icons (SVGs) */
.brand-icon {
    height: 45px;
    width: auto;
    margin: 0 50px;
    opacity: 0.5; /* Medio transparentes por defecto */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* La magia cuando le pasás el cursor */
.brand-icon:hover {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0px 0px 8px var(--primary-accent)); /* Resplandor rojo oscuro */
}

/* La animación que mueve todo */
@keyframes slideBrands {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}