/* ==========================================================================
   Bajaj Carrera Motos - Estilos inline optimizados
   Estilos extraídos del HTML para mejor organización y performance
   ========================================================================== */

/* Estilos críticos para optimizar LCP del banner con video */
.btn-secondary-responsive {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #fff;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.btn-secondary-responsive:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

.btn-primary-responsive,
.btn-secondary-responsive {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.product-actions-responsive {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-primary-responsive {
    background: linear-gradient(45deg, #e02b20, #c02318);
    color: #fff;
}

.btn-primary-responsive:hover {
    background: linear-gradient(45deg, #c02318, #a01e15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 43, 32, 0.3);
    color: #fff;
    text-decoration: none;
}

.banner-header {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: visible !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    will-change: transform;
    contain: none !important;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-desktop,
.video-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Aspect ratio 16:9 */
    min-height: 100vh;
    min-width: 177.78vh; /* Aspect ratio 16:9 */
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    object-fit: cover;
}

.video-desktop {
    display: block;
}

.video-mobile {
    display: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 32, 74, 0.85) 0%, 
        rgba(0, 32, 74, 0.4) 25%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 32, 74, 0.3) 75%, 
        rgba(0, 0, 0, 0.7) 100%
    );
    backdrop-filter: blur(0.5px);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2;
    contain: layout style paint;
}

/* Estilos específicos para productos */
.product-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-price {
    min-height: 2em;
    font-weight: 600;
    color: var(--clr-primary);
    font-size: clamp(1rem, 3vw, 1.1rem);
    padding: 0.5rem 1rem;
}

.product-logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.product-name {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.product-name h3 {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin: 0;
    line-height: 1.3;
}

.product-action {
    margin-top: auto;
    padding: 1rem;
}

.btn-ver-mas {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--clr-primary);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.btn-ver-mas:hover {
    background: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 43, 32, 0.3);
    text-decoration: none;
    color: white;
}

/* ===== ESTILOS RESPONSIVE PARA PRODUCTS-GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-card {
    min-height: 240px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-card {
        min-height: 220px;
        max-width: 220px;
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .product-card {
        min-height: 200px;
        max-width: 240px;
        margin: 0 auto;
    }
}

/* ===== ESTILOS ADICIONALES PARA ANCHO COMPLETO ===== */
/* Forzar ancho completo en elementos principales */
body,
html {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== OPTIMIZACIONES ANTI-CLS ===== */
/* Prevenir CLS en imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reservar espacio para banners */
.banner-container {
    min-height: 200px;
    contain: layout style paint;
}

/* Estabilizar grids de productos */
.products-grid {
    contain: layout style;
    display: grid !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.product-card {
    contain: layout style paint;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Contenedores de sección estables */
.features-section,
.products-section,
#servicios,
#ubicaciones {
    contain: layout style;
}

/* Contenedores principales */
.section-container,
.container {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding: 0 12px !important;
}

/* Banner de ancho completo */
.banner-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

/* Secciones de ancho completo */
.features-section,
.products-section,
#servicios,
#ubicaciones,
#horarios-pagos,
#preguntas-frecuentes {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* Hero de ancho completo */
.hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 80px 12px 40px 12px !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* Footer de ancho completo */
.custom-footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: linear-gradient(135deg, #00204A 0%, #001a3a 100%) !important;
    color: #ffffff !important;
    padding: 3rem 0 1rem !important;
}

.footer-container {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 12px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    position: relative !important;
    z-index: 2 !important;
}

.footer-col {
    display: flex !important;
    flex-direction: column !important;
}

.footer-logo {
    max-width: 180px !important;
    height: auto !important;
    margin-bottom: 1.5rem !important;
    transition: transform 0.3s ease !important;
}

.footer-logo:hover {
    transform: scale(1.05) !important;
}

.footer-phone {
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    font-size: 1rem !important;
}

.footer-phone a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.footer-phone a:hover {
    color: #e02b20 !important;
}

.footer-socials {
    display: flex !important;
    gap: 1rem !important;
}

.footer-socials a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
}

.footer-socials a:hover {
    background: #e02b20 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(224, 43, 32, 0.4) !important;
}

.footer-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.75rem !important;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    position: relative !important;
    opacity: 0.9 !important;
}

.footer-links a:hover {
    color: #ffffff !important;
    padding-left: 8px !important;
    opacity: 1 !important;
}

.footer-links a::before {
    content: '' !important;
    position: absolute !important;
    left: -8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 2px !important;
    background: #e02b20 !important;
    transition: width 0.3s ease !important;
}

.footer-links a:hover::before {
    width: 4px !important;
}

.custom-footer-bottom {
    background: #1a1a1a !important;
    text-align: center !important;
    padding: 1.5rem 2rem !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    position: relative !important;
}

/* Responsive breakpoints para padding */
@media (min-width:480px) {
    .section-container,
    .container,
    .hero,
    .footer-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (min-width:768px) {
    .section-container,
    .container,
    .footer-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .hero {
        padding: 80px 24px 60px 24px !important;
    }
}

@media (min-width:1024px) {
    .section-container,
    .container,
    .footer-container {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .hero {
        padding: 80px 32px 80px 32px !important;
    }
}

@media (min-width:1200px) {
    .section-container,
    .container,
    .footer-container {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .hero {
        padding: 80px 40px 100px 40px !important;
    }

    /* Estilos específicos para las tarjetas de servicios en pantallas grandes */
    #servicios .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        gap: 3rem !important;
    }

    #servicios .card {
        padding: 2.5rem !important;
        min-height: 300px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #servicios .card-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    #servicios .card-title {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem !important;
    }

    #servicios .card-text {
        font-size: 1.1rem !important;
        line-height: 1.7 !important;
        margin-bottom: 2rem !important;
        flex: 1 !important;
    }

    #servicios .card-btn {
        padding: 1.2rem 2rem !important;
        font-size: 1rem !important;
        margin-top: auto !important;
        align-self: flex-start !important;
    }
}

/* Estilos para pantallas extra grandes */
@media (min-width: 1440px) {
    #servicios .grid {
        max-width: 1600px !important;
        gap: 4rem !important;
    }

    #servicios .card {
        padding: 3rem !important;
        min-height: 350px !important;
    }

    #servicios .card-title {
        font-size: 1.8rem !important;
    }

    #servicios .card-text {
        font-size: 1.15rem !important;
    }

    #servicios .card-btn {
        padding: 1.3rem 2.5rem !important;
        font-size: 1.1rem !important;
    }
}

/* Responsive Footer */
@media (max-width:1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width:768px) {
    .footer-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
    }

    .custom-footer {
        padding: 2rem 0 1rem !important;
    }

    .custom-footer-bottom {
        padding: 1rem !important;
    }

    .footer-socials {
        justify-content: center !important;
    }
}

@media (max-width:480px) {
    .footer-container {
        padding: 0 0.5rem !important;
        gap: 1.5rem !important;
    }

    .footer-logo {
        max-width: 150px !important;
        margin: 0 auto 1rem auto !important;
    }

    .footer-title {
        font-size: 1rem !important;
    }

    .footer-links a {
        font-size: 0.9rem !important;
    }

    .footer-phone {
        font-size: 0.9rem !important;
    }
}

/* ===== ESTILOS PARA CENTRALIZAR LOGOS DEL FOOTER EN RESPONSIVE ===== */

/* Centralizar logos en tablets y móviles */
@media (max-width: 1024px) {
    .footer-col:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-col:first-child a {
        margin: 0 auto 15px auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .footer-col:first-child .footer-phone {
        text-align: center !important;
        margin: 15px 0 !important;
    }

    .footer-col:first-child .footer-socials {
        justify-content: center !important;
        margin-top: 15px !important;
    }
}

/* Ajustes específicos para móviles */
@media (max-width: 768px) {
    .footer-col:first-child a[title*="Logo"] {
        max-width: 160px !important;
        margin: 0 auto 12px auto !important;
    }

    .footer-col:first-child picture,
    .footer-col:first-child img {
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .footer-col:first-child a[title*="Logo"] {
        max-width: 140px !important;
        margin: 0 auto 10px auto !important;
    }

    .footer-col:first-child .footer-phone {
        font-size: 0.9rem !important;
        margin: 12px 0 !important;
    }

    .footer-col:first-child .footer-socials {
        margin-top: 12px !important;
        gap: 12px !important;
    }
}

/* Prevenir scroll horizontal */
* {
    box-sizing: border-box !important;
}

img {
    max-width: 100% !important;
    height: auto !important;
}

/* Grids responsive que usan todo el ancho */
.products-grid,
.features-grid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== CONTENEDORES DE SECCIÓN PARA PRODUCTOS ===== */
.products-section {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
}

.products-section .section-container,
.products-section .container {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 1rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Responsive para contenedores de productos */
@media (max-width:480px) {
    .products-section .section-container,
    .products-section .container {
        padding: 0 0.5rem !important;
    }
}

@media (max-width:360px) {
    .products-section .section-container,
    .products-section .container {
        padding: 0 0.25rem !important;
    }
}
