

/* ==================================================
   UTILITIES
================================================== */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* ==================================================
   SPINNER
================================================== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* ==================================================
   BUTTONS
================================================== */
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 50px;
}

.btn-primary {
    color: var(--bs-white);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: inherit;
}

/* ==================================================
   NAVBAR - NEGRO CARBÓN GLASS
================================================== */
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
    
    /* FONDO NEGRO CARBÓN TRANSLÚCIDO CON GLASS */
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(20, 20, 20, 0.75) 50%,
        rgba(15, 15, 15, 0.65) 100%
    ) !important;
    
    /* EFECTO GLASS */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    
    /* Borde sutil luminoso */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Sombra suave */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Al hacer scroll — más opaco */
.navbar.scrolled,
.navbar.sticky-top,
.navbar.fixed-top {
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.95) 0%,
        rgba(10, 10, 10, 0.9) 100%
    ) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Links */
.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: #ffffff;
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #004AAD;
    text-shadow: 0 0 8px rgba(0, 74, 173, 0.4);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* ==================================================
   NAVBAR RESPONSIVE
================================================== */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* En móvil: más opaco para legibilidad */
    .navbar {
        background: linear-gradient(
            180deg,
            rgba(5, 5, 5, 0.95) 0%,
            rgba(10, 10, 10, 0.9) 100%
        ) !important;
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
        /* DROPDOWN TAMBIÉN GLASS */
        background: linear-gradient(
            180deg,
            rgba(15, 15, 15, 0.9) 0%,
            rgba(25, 25, 25, 0.85) 100%
        ) !important;
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
    }
    
    /* Items del dropdown */
    .navbar .dropdown-menu .dropdown-item {
        color: #ffffff;
        transition: all 0.3s ease;
    }
    
    .navbar .dropdown-menu .dropdown-item:hover,
    .navbar .dropdown-menu .dropdown-item.active {
        background: rgba(0, 74, 173, 0.2) !important;
        color: #ffffff;
        border-radius: 6px;
    }
}

/* ==================================================
   HEADER / CAROUSEL
================================================== */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

/* =====  ===== */
.carousel-caption .title-center h5,
#header-carousel .carousel-caption h5 {
    font-size:18px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-caption .title-center h1,
#header-carousel .carousel-caption h1 {
    font-size: 65px !important;
    font-weight: bold;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .carousel-caption .title-center h5,
    #header-carousel .carousel-caption h5 {
        font-size: 14px !important;
    }
    
    .carousel-caption .title-center h1,
    #header-carousel .carousel-caption h1 {
        font-size: 22px !important;
    }
}

/* ========================================== */

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ==================================================
   CSS
================================================== */

@media (max-width: 768px) {
    /* Quitar padding superior que crea la franja */
    .carousel-caption {
        padding-top: 0 !important;
        justify-content: center !important;
        padding-bottom: 0;
        min-height: 100%;
    }
    
    /* Reducir tamaño de "Automatizaciones" */
    .carousel-caption h1 {
        font-size: 26px !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
    }
    
    /* Reducir subtítulo */
    .carousel-caption h5 {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
    
    /* Reducir márgenes del contenedor */
    .carousel-caption .title {
        margin: 0 5px !important;
        padding: 0 5px !important;
    }
    
    /* Botón más compacto */
    .carousel-caption .btn-read-more {
        font-size: 11px !important;
        padding: 6px 12px !important;
        margin-top: 8px !important;
    }
    
    /* Párrafo segundo slide */
    .carousel-caption p.fs-5 {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .carousel-caption h1 {
        font-size: 22px !important;
    }
    
    .carousel-caption h5 {
        font-size: 11px !important;
    }
}


.page-header {
    padding-top: 200px;
    background: 
        linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)),
        url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-white);
}

/* ==================================================
  
================================================== */
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center { text-align: center; }
.title .title-right { text-align: right; }

.title h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title h1 {
    border-bottom: 1px solid var(--bs-white);
}

/* ==================================================
 
================================================== */
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}

/* ==================================================
 
================================================== */
.team-item {
    position: relative;
}

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    width: 0;
    height: calc(100% - 60px);
    top: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    right: 0;
}

.team-item .team-body .team-before {
    left: 0;
    text-align: right;
}

.team-item:hover .team-before,
.team-item:hover .team-after {
    width: 50%;
}

.team-item span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover span {
    opacity: 1;
    transition-delay: .2s;
}

/* ==================================================
   
================================================== */
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dot img {
    opacity: .1;
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active img {
    opacity: 1;
}

/* ==================================================
   LOGO NAVBAR
================================================== */
.logo-navbar {
    height: 80px;              /* tamaño ideal desktop */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Asegura alineación vertical perfecta */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive: tablets */
@media (max-width: 991.98px) {
    .logo-navbar {
        height: 80px;
    }
}

/* Responsive: móviles */
@media (max-width: 575.98px) {
    .logo-navbar {
        height: 80px;
    }
}

/* ==================================================
   NAVBAR BOTONERA 
================================================== */

/* Links del menú */
.navbar .navbar-nav .nav-link {
    color: var(--bs-white);
    transition: color 0.3s ease;
}

/* Hover y activo (antes rosa) */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #004AAD;
}

/* Dropdown items */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    background-color: #004AAD;
    color: #000;
}

/* Línea / borde si existía en rosa */
.navbar .navbar-nav .nav-link::after {
    background-color: #66FF33;
}

/* ==================================================
   BOTONES READ MORE
================================================== */

/* Botón principal */
.read-more,
.btn-read-more,
a.read-more {
    background-color: #004AAD;
    color: #000;
    border: 1px solid #004AAD;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover */
.read-more:hover,
.btn-read-more:hover,
a.read-more:hover {
    background-color: transparent;
    color: #004AAD;
    border-color: #004AAD;
}

/* =========================================
   BOTONES REDES 
========================================= */

.btn.btn-social {
    width: 48px;
    height: 48px;

    border: 2px solid #FCD22A !important;
    border-radius: 50% !important;

    background: transparent !important;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
}

/* ICONO */
.btn.btn-social i {
    color: #FCD22A !important;
    font-size: 20px;
}

/* HOVER */
.btn.btn-social:hover {
    background-color: #004AAD !important;
}

/* ICONO HOVER */
.btn.btn-social:hover i {
    color: #000 !important;
}


/* =========================================
   BOTÓN WHATSAPP
========================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}


/* =========================================
   BACK TO TOP
========================================= */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 100px; /* alineado arriba del botón WhatsApp */
    z-index: 998;
}

.btn-apple {
    color: #004AAD;
    border: 2px solid #004AAD;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-apple i {
    color: #004AAD;
}

/* Hover */
.btn-apple:hover {
    background-color: #004AAD;
}

.btn-apple:hover i {
    color: #CCCCCC;
}


/* =========================================
   AJUSTE MOBILE
========================================= */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 110px; /* un poco más de aire en celulares */
    }
}


/* =========================================
   TEXTO 
========================================= */

.text-apple {
    color: #004AAD !important;
    text-shadow: 0 0 6px rgba(102, 255, 51, 0.6);
}

/* =====================================================
   FOOTER
   ===================================================== */
:root {
    --footer-green: #004AAD; /* iconos de redes */
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #1f1f1f;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    min-width: 260px;
    transition: all 0.3s ease;
}

.contact-box i {
    font-size: 1.8rem;
    color: #FCD22A; /* verde manzana */
}

.contact-box:hover {
    background: #2a2a2a;
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-title {
    font-size: 0.9rem;
    opacity: 0.7;
}

.contact-detail {
    font-size: 1.05rem;
    font-weight: 500;
}

.contact-box.no-link {
    cursor: default;
}
.contact-box:hover,
.contact-box:hover .contact-title,
.contact-box:hover .contact-detail,
.contact-box:hover i {
    color: #004AAD;
}

.contact-box:hover {
    border-color: #004AAD;
}




/* =====================================================
   LOGO FOOTER - CORREGIDO
   ===================================================== */

.footer-logo {
    width: 100%;
    text-align: center;        /* Centrar contenedor */
    padding: 20px 15px;        /* Espacio alrededor */
}

.footer-logo img {
    max-width: 100%;           /* Que no se corte en móviles */
    height: auto;
    display: block;
    margin: 0 auto;            /* Centrar imagen */
}

/* Desktop */
@media (min-width: 577px) {
    .footer-logo img {
        max-width: 650px;      /* Tamaño máximo desktop */
    }
}

/* Móviles */
@media (max-width: 650px) {
    .footer-logo img {
        max-width: 280px;      /* Tamaño móvil - ajusta si quieres */
        width: 100%;
    }
}

* =====================================================
viñetas
   ===================================================== */
.list-group-item .check-verde {
  color: #004AAD;
}

* =====================================================
Footer dire
   ===================================================== */
.footer-address {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.9;
    text-align: center;
}

.footer-address i {
    font-size: 1.5rem;
    color: #7CFC00; /* verde manzana */
}

.footer-address span {
    line-height: 1.4;
}


/* ===============================
   SECCIÓN MOTORES CORREDIZOS
================================ */

#motores-corredizos {
   background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

/* Texto introductorio */
#motores-corredizos p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ===============================
   TARJETAS DE PRODUCTO
================================ */

.product-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 20px 25px;
    text-align: center;
    cursor: pointer;
    height: 100%;
    transition: all 0.35s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.product-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* Imagen producto */
.product-box img {
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* Nombre producto */
.product-box h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}


/* ===============================
   MODAL MOTOR 
================================ */

.motor-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* ACTIVO */
.motor-modal.show {
    opacity: 1;
    visibility: visible;
}

/* CONTENIDO */
.motor-modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    padding: 30px;
    position: relative;

    transform: scale(0.92);
    opacity: 0;
    transition: all 0.35s ease;
}

/* CONTENIDO ACTIVO */
.motor-modal.show .motor-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* GRID DOS COLUMNAS */
.motor-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

/* IZQUIERDA */
.modal-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-motor-img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
}

/* DERECHA */
.modal-right h2 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #111;
}

.modal-right h2 span {
    display: block;
    font-size: 20px;
    font-weight: 600;
    text-transform: none;
    color: #444;
    margin-top: 6px;
}

.modal-right p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* LISTA CARACTERÍSTICAS */
.modal-right ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.modal-right ul li {
    font-size: 14.5px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

/* BOTÓN WHATSAPP */
.modal-right .btn-success {
    font-size: 16px;
    padding: 12px 22px;
}

/* CERRAR */
.motor-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
    transition: transform 0.2s ease;
}

.motor-close:hover {
    transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .motor-modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-motor-img {
        max-height: 260px;
    }

    .modal-right h2 {
        font-size: 22px;
    }
}

/* ===============================
   MODAL MOTORES 
================================ */

.motor-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;
}

/* ACTIVO */
.motor-modal.active {
    display: flex;
}

/* CONTENIDO */
.motor-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    padding: 30px;
    position: relative;

    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

/* ANIMACIÓN AL MOSTRAR */
.motor-modal.active .motor-modal-content {
    opacity: 1;
    transform: scale(1);
}

/* GRID */
.motor-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

/* IMAGEN */
.modal-motor-img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
}

/* TEXTO */
#modalMotorName {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111;
}

#modalMotorDescription {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* BOTÓN WHATSAPP */
.motor-modal .btn-success {
    font-size: 16px;
    padding: 12px 22px;
}

/* CERRAR */
.motor-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
}

.motor-close:hover {
    transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .motor-modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-motor-img {
        max-height: 260px;
    }

    #modalMotorName {
        font-size: 22px;
    }
}

/* Animación para abrir el modal */
.modal.fade .modal-dialog {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.modal.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
}
 /* Efecto elegante con línea de color negro y detalles en verde fluo */
    .modal.fade .modal-dialog {
      transform: scale(0.95);
      opacity: 0;
      transition: all 0.3s ease-in-out;
    }

    .modal.show .modal-dialog {
      transform: scale(1);
      opacity: 1;
    }

    /* Personalización del encabezado y borde del modal */
    .modal-content {
      border: 3px solid black; /* línea negra alrededor del modal */
      border-radius: 10px;
      overflow: hidden;
    }

    /* Línea en la parte superior con color verde fluo */
    .modal-header {
      border-bottom: 3px solid #ADADAD; /*gris */
      background-color: #ADADAD; /* fondo negro en header */
    }

    /* Título en color gris */
    .modal-title {
      color: #C8C8C8;
      font-weight: bold;
    }

    /* Botón cerrar  */
    .btn-close {
      filter: drop-shadow(0 0 5px #006AFB);
    }

    /* Contenido del cuerpo con fondo negro y texto en verde */
    .modal-body {
      background: linear-gradient(
        135deg,
        #0d0d0d 0%,
        #1a1a1a 25%,
        #2d2d2d 50%,
        #1a1a1a 75%,
        #0d0d0d 100%
    ) !important;
    border: 3px solid #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
}

   


/* IRAM */

 .iram-logo{
max-height:80px;
width:auto;
transition:0.3s;
}

/* imagen azul oculta */
.iram-azul{
display:none;
}

/* hover cambia imagen */
.btn-iram:hover .iram-verde{
display:none;
}

.btn-iram:hover .iram-azul{
display:block;
}

/* ============================
   MODALES IRAM Y CALIDAD
   (mismo estilo para ambos)
============================ */

.iram-modal{
position: fixed;
inset: 0;
background: rgba(0,0,0,0.85);
display: flex;
align-items: center;
justify-content: center;
z-index: 99999;

opacity: 0;
visibility: hidden;
transition: all 0.35s ease;
}

.iram-modal.active{
opacity: 1;
visibility: visible;
}

.iram-modal img{
max-width: 90%;
max-height: 90vh;
border-radius: 8px;
box-shadow: 0 0 25px rgba(0,0,0,0.7);
transform: scale(0.9);
transition: transform 0.35s ease;
}

.iram-modal.active img{
transform: scale(1);
}

/* Contenedor de texto para Política de Calidad */
.calidad-contenido{
max-width: 800px;
max-height: 85vh;
overflow-y: auto;
background: #fff;
padding: 40px;
border-radius: 8px;
box-shadow: 0 0 25px rgba(0,0,0,0.7);
transform: scale(0.9);
transition: transform 0.35s ease;
color: #333;
font-size: 16px;
line-height: 1.6;
}

.iram-modal.active .calidad-contenido{
transform: scale(1);
}

.calidad-contenido h2{
color: #0064EA;
margin-bottom: 20px;
font-size: 28px;
text-align: center;
}

.calidad-contenido ul{
margin: 20px 0;
padding-left: 20px;
}

.calidad-contenido li{
margin-bottom: 10px;
}

.calidad-contenido .firma{
margin-top: 30px;
text-align: center;
font-weight: bold;
}

/* botón cerrar */
.iram-close{
position:absolute;
top:25px;
right:40px;
font-size:38px;
color:#0064EA;
cursor:pointer;
font-weight:bold;
transition: color 0.3s;
}

.iram-close:hover{
color:#fff;
}

.bg-catalogo {
    background: linear-gradient(
        90deg,
        #050505 0%,
        #0d0d0d 40%,
        #141414 70%,
        #1f1f1f 100%
    ) !important;
}

-------------------------
/* ===============================
   FONDO CATÁLOGO - NEGRO CARBÓN DEGRADÉ
================================ */

#fondo-catalogo {
    position: relative;
    background: transparent !important;
    isolation: isolate; /* Crea nuevo contexto de apilamiento */
}

/*  degradé fondo */
#fondo-catalogo::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: linear-gradient(
        160deg,
        #0a0a0a 0%,
        #151515 25%,
        #1f1f1f 50%,
        #151515 75%,
        #0a0a0a 100%
    );
    z-index: -1;
}

/* container */
#fondo-catalogo .container {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* Texto blanco para contraste */
#fondo-catalogo h1,
#fondo-catalogo h5,
#fondo-catalogo .team-name h5 {
    color: #ffffff !important;
}

/* Líneas decorativas blancas */
#fondo-catalogo .title h1 {
    border-bottom: 1px solid #ffffff;
}

#fondo-catalogo .title .title-center h5::before,
#fondo-catalogo .title .title-center h5::after {
    border-bottom: 1px solid #ffffff;
}
---------------------------------
/* ==================================================
   FONDO GLOBAL - BODY
================================================== */

body {
    /* Fallback de color sólido */
    background-color: #0a0a0a !important;
    
    /* Intentar múltiples rutas posibles */
    background-image: 
        url('img/dofon.jpg'),
        url('./img/dofon.jpg'),
        url('../img/dofon.jpg'),
        url('/img/dofon.jpg');
    
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    /* Forzar que se aplique */
    min-height: 100vh;
    
    color: #e0e0e0;
}

/* Si nada funciona, usar color degradé como fallback */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        160deg,
        #0a0a0a 0%,
        #151515 25%,
        #1f1f1f 50%,
        #151515 75%,
        #0a0a0a 100%
    );
    z-index: -2;
}

/* Capa de la imagen */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('...img/dofon.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Ajustá la opacidad */
    z-index: -1;
}

----------------------------------------
.titulo-plateado {
  background: linear-gradient(180deg, #707070 0%, #A0A0A0 50%, #D0D0D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}


 ===============================
   RECUADRO DE TEXTO - CATÁLOGO MOTORES
================================ 

/* Fondo oscuro y bordes redondeados */
.team-name {
    background: #1a1a1a;
    border-radius: 8px;
    
    /* Centrar texto vertical y horizontalmente */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Altura mínima uniforme para todos */
    min-height: 55px;
}

/* Fuente un poco más grande */
.team-name h5,
.team-name h6 {
    color: #ffffff !important;
    font-size: 0.92rem;        /* Antes ~0.82rem, ahora más grande */
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

/* Textos largos (2 líneas) */
.team-name h5.long-text,
.team-name h6.long-text {
    font-size: 0.85rem;
    line-height: 1.2;
}

/* En móviles */
@media (max-width: 768px) {
    .team-name {
        min-height: 50px;
        border-radius: 6px;
    }
    
    .team-name h5,
    .team-name h6 {
        font-size: 0.82rem;    /* Un poco más chico en móvil pero legible */
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .team-name h5,
    .team-name h6 {
        font-size: 0.75rem;
    }
}


/* ===============================
   CATÁLOGO - 1 COLUMNA EN MÓVIL
 
================================ */

@media (max-width: 575px) {
    /* Forzar una columna en móvil */
    #catalogo-motores .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Cada producto ocupa todo el ancho pero con límite */
    #catalogo-motores .row .col {
        width: 100%;
        max-width: 320px;
        margin-bottom: 25px;
    }
    
    /* Imagen más grande al ser una sola columna */
    #catalogo-motores .motor-card .team-body img {
        max-height: 240px;
    }
    
    /* Recuadro de texto más cómodo */
    #catalogo-motores .team-name {
        min-height: 55px;
        padding: 14px 20px !important;
    }
    
    #catalogo-motores .team-name h5,
    #catalogo-motores .team-name h6 {
        font-size: 1.05rem;
    }
}
/* ===============================
   CATÁLOGO - CENTRADO EN MÓVIL
================================ */

@media (max-width: 575px) {
    /* Forzar una columna en móvil */
    #catalogo-motores .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Cada producto centrado */
    #catalogo-motores .row .col {
        width: 100%;
        max-width: 320px;
        margin-bottom: 25px;
        
        /* Centrar el contenido de la columna */
        display: flex;
        justify-content: center;
    }
    
    /* La tarjeta del motor centrada */
    #catalogo-motores .motor-card {
        width: 100%;
        text-align: center;
    }
    
    /* Contenedor de la imagen centrado */
    #catalogo-motores .motor-card .team-body {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Imagen centrada y más grande */
    #catalogo-motores .motor-card .team-body img {
        max-height: 240px;
        margin: 0 auto;
        display: block;
    }
    
    /* Recuadro de texto centrado */
    #catalogo-motores .team-name {
        min-height: 55px;
        padding: 14px 20px !important;
        justify-content: center;
        text-align: center;
        margin: 8px auto 0;
        width: 100%;
    }
    
    /* Texto centrado */
    #catalogo-motores .team-name h5,
    #catalogo-motores .team-name h6 {
        font-size: 1.05rem;
        text-align: center;
        width: 100%;
    }
}

/* Navbar fija en móviles para mejor UX */
@media (max-width: 991.98px) {
    .navbar {
        position: fixed !important;
        top: 0;
        width: 100%;
    }
    
    /* Compensar el espacio que ocupa la navbar fija */
    body {
        padding-top: 80px;
    }
}

----------------
/* Oculta icono default */
.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: #fff;
    display: block;
}

/* Líneas extra */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: #fff;
    left: 0;
    transition: 0.3s;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Estado abierto (cruz) */
.navbar-toggler.active .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler.active .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler.active .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}
