/* Estilos personalizados para A y J Compresores v4 - CORRECCIÓN DE VIDEO */

/* --- Importar Fuente Moderna --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- Variables de Color y Tipografía --- */
:root {
    --primary-red: #d32f2f;
    --primary-green: #28a745; /* Verde para el CTA de WhatsApp */
    --dark-bg: #121212;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    scroll-behavior: smooth;
    background-color: #fff;
}

/* --- Estilos de Navegación --- */
.navbar-brand img { transition: transform 0.3s ease; }
.navbar-brand:hover img { transform: scale(1.1); }
.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-red) !important;
}

/* =======================================================
// HERO SECTION - CORRECCIÓN DE VIDEO
======================================================== */
.hero-section {
    background-color: var(--dark-bg); /* Fondo de respaldo */
    padding: 6rem 0;
    position: relative; /* Crea el contexto para las capas */
    overflow: hidden;
    color: #fff;
    /* CORRECCIÓN: 'isolation' crea un contexto de apilamiento nuevo y seguro,
       evitando que la capa de fondo se ponga por encima del contenido. */
    isolation: isolate;
}

/* CORRECCIÓN: El pseudo-elemento ahora tiene un z-index de -1,
   lo que lo fuerza a estar DETRÁS de CUALQUIER contenido dentro de .hero-section. */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* ¡ESTA ES LA CORRECCIÓN CLAVE! */
    background: linear-gradient(45deg, #000000, #430c0c, #000000, #1e1e1e);
    background-size: 400% 400%;
    animation: animated-gradient 15s ease infinite;
}

@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* CORRECCIÓN: Ya no se necesita z-index en el contenedor, simplificando el código. */
.hero-section .container {
    position: relative; /* Se mantiene por si se necesita en el futuro */
}

.hero-text h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.video-container {
    max-width: 350px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    background-color: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .hero-section { text-align: center; }
}
/* =======================================================
// FIN DE LA CORRECCIÓN
======================================================== */


/* --- Carrusel de Marcas --- */
.brand-logo {
    max-height: 50px;
    transition: all 0.3s ease;
}
.brand-logo:hover {
    transform: scale(1.1);
}

/* --- Sección Servicios --- */
.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}
.card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:not(.step-card-highlight):hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* --- Sección Procedimiento de Envío --- */
.step-card { position: relative; }
.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background-color: var(--primary-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}
.step-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    transition: color 0.3s ease;
}
.step-card-link {
    text-decoration: none;
    color: inherit;
}
.step-card-link .step-card-highlight:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3) !important;
}
.step-card-highlight .step-number {
    background-color: var(--primary-green);
}
.step-card-highlight .step-icon {
    color: var(--primary-green);
}

/* --- Galería --- */
.gallery-preview-container {
    height: 250px;
    overflow: hidden;
    border-radius: .375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease;
}
.gallery-thumb:hover {
    transform: scale(1.1);
}
.modal-content img {
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

/* --- Footer --- */
.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}
.footer-link:hover {
    color: white;
}
.footer-link i { color: var(--primary-red); }
.footer-credit {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* --- Botones --- */
.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transition: all 0.3s ease;
}
.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}