:root {
    --color-principal: #38B6FF;
    --color-secundario: #ffffff;
    --color-menu: #0b0c10;
    --color-gris-fondo: #f5f5f5;
    --color-texto-oscuro: #333333;
}

body {
    background-color: var(--color-gris-fondo);
    color: var(--color-texto-oscuro);
    font-family: Arial, Helvetica, sans-serif;
}

.ribbon-wrapper-cruzado {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    z-index: 10;
    overflow: hidden;
}

.ribbon-cruzado {
    position: absolute;
    top: 18px;
    right: -25px;
    width: 135px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    padding: 4px 0;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-section { 
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
}

.imagen {
    max-width: 100%;
    height: auto;
}

.bg-dark-custom {
    background-color: var(--color-menu) !important;
}

.custom-brand {
    color: var(--color-principal) !important; 
    font-size: 1.75rem; 
    transition: color 0.3s ease;
}

.custom-brand:hover {
    color: #00A8FF !important;
}

.navbar-dark-custom .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: 0.3s;
}

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

.navbar-dark-custom .nav-link.active-custom {
    color: var(--color-secundario) !important; 
    font-weight: bold; 
    border-bottom: 2px solid var(--color-principal);
}

.card-auto {
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card-auto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.badge-precio {
    color: var(--color-principal);
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0;
}

.btn-detalles {
    background-color: var(--color-principal);
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-detalles:hover {
    background-color: #1e9fe6;
    color: #fff;
}

.text-custom-primary {
    color: var(--color-principal) !important;
}

.btn-footer-wpp {
    background-color: #25D366; 
    color: #ffffff; 
    border: 2px solid #25D366;
    transition: all 0.3s ease;
}
.btn-footer-wpp:hover {
    background-color: transparent;
    color: #25D366 !important;
}

.btn-footer-mail {
    background-color: var(--color-principal); 
    color: white; 
    border: 2px solid var(--color-principal); 
    transition: all 0.3s ease;
}
.btn-footer-mail:hover {
    background-color: transparent; 
    color: var(--color-principal) !important;
}

.icon-box-contacto {
    background-color: rgba(56, 182, 255, 0.15);
    color: var(--color-principal);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.imagen-contacto {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.map-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.imagen-nosotros {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-valores {
    border: 1px solid rgba(56, 182, 255, 0.2) !important;
    border-left: 4px solid var(--color-principal) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-valores:hover {
    background-color: rgba(56, 182, 255, 0.05) !important;
    transform: translateY(-3px);
}
        
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--color-principal);
}

#btn_arriba {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    outline: none;
    border-radius: 50%;
    background-color: #38B6FF;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#btn_arriba:hover {
    background-color: #1ea5f5;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.filtro-btn-custom {
    background: white;
    border: 2px solid var(--color-principal) !important;
    color: var(--color-texto-oscuro);
    font-weight: bold;
    transition: 0.3s;
}
.filtro-btn-custom:hover, .filtro-btn-custom:focus {
    background-color: var(--color-principal) !important;
    color: white !important;
}

.card-hover-effect {    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.card-img-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.card-img-cover {
    width: 100%;
    height: 230px;
    object-fit: cover;        
}
 
.text-custom-tipo {
    color: #00A8FF;
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.text-custom-precio {
    color: #00A8FF;
    font-size: 1.4rem;
    font-weight: bold;        
}

.catalogo {
    padding: 60px 50px !important;
    display: block !important;
}

.catalogo .info {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.catalogo .cardos {
    width: 100% !important;
    max-width: 750px !important;
    padding: 20px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    display: block !important;
}

.catalogo .cardos img#imgPrincipal {
    width: 100% !important;
    height: auto !important;
    max-height: 550px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}

.catalogo .mini-galeria-contenedor {
    display: flex !important;
    gap: 10px !important;
    margin-top: 15px !important;
    flex-wrap: wrap !important;
}

.catalogo .mini-galeria-contenedor img {
    width: 150px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: transform 0.3s !important;
}

.catalogo .mini-galeria-contenedor img:hover {
    transform: scale(1.05) !important;
}

.catalogo .grid-caracteristicas-internas {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
}

.catalogo .item-caracteristica-interno {
    background: var(--color-gris-fondo, #f8f9fa) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    text-align: center !important;
    color: var(--color-texto-oscuro, #333) !important;
}

#modalAuto.modal-detalles {
    display: none;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.7) !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
}

#modalAuto .modal-detalles-content {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 700px !important;
    border-radius: 12px !important;
    padding: 30px !important;
    position: relative !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

#modalAuto .cerrar-detalles {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 35px !important;
    cursor: pointer !important;
    color: #777 !important;
    line-height: 1 !important;
}

#modalAuto .specs-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 20px !important;
}

#modalAuto .spec-block {
    background: var(--color-gris-fondo, #f8f9fa) !important;
    padding: 15px !important;
    border-radius: 10px !important;
}

#btn_atras {
    position: absolute !important;
    top: 90px !important; 
    left: 20px !important;
    z-index: 9999 !important;
    width: 45px !important;
    height: 45px !important;
    border: none !important;
    border-radius: 50% !important;
    background-color: var(--color-principal, #007bff) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 400px;
        padding: 40px 20px;
    }

    .hero-overlay {
        padding: 25px;
    }

    .catalogo {
        padding: 40px 20px !important;
    }

    .catalogo .info {
        flex-direction: column !important;
        align-items: center !important;
    }

    .catalogo .cardos {
        max-width: 100% !important;
    }

    .catalogo .mini-galeria-contenedor img {
        width: 120px !important;
        height: 80px !important;
    }

    .stat-number {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
        body {
        font-size: 15px;
    }

    .hero-section {
        min-height: 320px;
        padding: 20px;
        text-align: center;
    }

    .hero-overlay {
        padding: 20px;
    }

    .custom-brand {
        font-size: 1.4rem;
    }

    .catalogo {
        padding: 30px 15px !important;
    }

    .catalogo .grid-caracteristicas-internas {
        grid-template-columns: 1fr !important;
    }

    .catalogo .mini-galeria-contenedor {
        justify-content: center !important;
    }

    .catalogo .mini-galeria-contenedor img {
        width: 100px !important;
        height: 70px !important;
    }

    .card-img-cover {
        height: 200px;
    }

    .imagen-contacto,
    .imagen-nosotros {
        max-height: 250px;
    }

    .map-container {
        height: 250px;
    }

    #modalAuto .modal-detalles-content {
        padding: 20px !important;
    }

    #modalAuto .specs-grid {
        grid-template-columns: 1fr !important;
    }

    #btn_atras {
        top: 75px !important;
        width: 40px !important;
        height: 40px !important;
    }

    #btn_arriba {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        padding: 15px;
    }

    .catalogo .mini-galeria-contenedor img {
        width: 85px !important;
        height: 60px !important;
    }

    .badge-precio,
    .text-custom-precio {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .custom-brand {
        font-size: 1.2rem;
    }

    .btn-detalles {
        width: 100%;
    }
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-dark-custom .nav-link {
    padding: 10px 15px;
    transition: 0.3s;
}

@media (max-width: 991px) {

    .navbar-collapse {
        background-color: var(--color-menu);
        margin-top: 15px;
        padding: 15px;
        border-radius: 10px;
    }

    .navbar-nav {
        gap: 0 !important;
    }

    .navbar-dark-custom .nav-link {
        text-align: center;
        padding: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .navbar-dark-custom .nav-link:last-child {
        border-bottom: none;
    }

    .custom-brand {
        font-size: 1.3rem;
    }
}