/* ==========================
   GLOBAL RESET Y TIPOGRAFÍA
   ========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Cambiamos Segoe UI por Montserrat como fuente predeterminada global */
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    padding-top: 135px;
}
/* ==========================
   ESTILOS GLOBALES
   ========================== */
/* Seguro global para evitar desbordamientos horizontales en toda la web */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ==========================
   NAVBAR
   ========================== */
/* --- Estilos base --- */
.navbar {
    background-color: #eb1c24;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease-out;
}

.navbar.hidden-scroll {
    transform: translateY(-100%) !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Asegura que no se rompa la fila */
    padding: 1.2rem clamp(0.5rem, 3vw, 5rem);
    max-width: 1920px;
    margin: 0 auto;
}

.nav-logo img {
    height: 97px;
    width: auto;
    display: block;
}

.nav-title {
    color: white;
    text-align: left; /* Alinea el texto a la izquierda */
    margin-left: 6rem; /* Separa el título del logo (ajusta este número a tu gusto) */
    margin-right: auto;  /* Empuja las pestañas de navegación hacia la derecha */
    flex: initial;       /* Evita que tome todo el ancho central de manera forzada */
    font-size: clamp(0.5rem, 1vw, 1rem);
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 2.5rem); /* Espaciado dinámico integrado */
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    white-space: nowrap; /* Evita que las palabras se partan */
    position: relative;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-7px);
    text-shadow: 0 0 1px white;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-item:hover::after {
    transform: scaleX(1);
}

/* --- Botón Menú Móvil --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 7px;
}

.mobile-menu-btn .bar {
    width: 37px;
    height: 4px;
    background-color: white;
    transition: all 0.3s ease;
}

/* --- Responsivo --- */
@media (max-width: 1366px) {
    .nav-links {
        gap: 2.25rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 110px;
    }

    .nav-logo img {
        height: 90px;
    }

    .nav-container {
        padding: 1.2rem 1.5rem;
    }

    .nav-title {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn .bar {
        width: 45px; 
        height: 5px; 
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #eb1c24;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        max-height: 350px;
    }

    .nav-item {
        padding: 1.8rem;
        text-align: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item:hover {
        transform: none;
    }
}

/* --- Animaciones --- */
@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
/* ==========================
   HERO CARRUSEL
   ========================== */

/* --- Estilos base --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - 121px);
    min-height: 600px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-circle-bg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    height: 105%;
    width: auto;
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 3rem;
}

.hero-content-left {
    width: 55%;
    padding-right: 3rem;
    margin-left: 6%;
}

.hero-text-group {
    margin-bottom: 2.5rem;
    color: white;
}

.hero-text-group h1 {
    font-size: clamp(2.8rem, 3.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    padding-bottom: 10px;
}

.hero-text-group h1.title-line-2 {
    margin-bottom: 1.2rem;
}

.hero-text-group p {
    font-size: clamp(1.4rem, 1.8vw, 2.2rem);
    line-height: 1.5;
    font-weight: 300;
    width: 100%;
}

.hero-btn-container {
    padding-left: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background-color: #eb1c24;
    color: white;
    text-decoration: none;
    padding: 1.2rem 4rem;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #c9161e;
    transform: scale(1.05);
}

.hero-content-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.hero-sarmex-img {
    max-width: 75%;
    height: auto;
    max-height: 90vh;
    z-index: 4;
    transform: translateX(-10%);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.8rem;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 16px;
    height: 16px;
    background-color: #e8e8e8;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background-color: #eb1c24;
    transform: scale(1.2);
}

/* --- Responsivo --- */
@media (max-width: 1366px) {
    .hero-content-left {
        transform: scale(0.85);
        transform-origin: left center;
        width: 800px;
    }
}


@media (max-width: 768px) {
    /* Hero carrusel ajustes */
    .hero-carousel {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: unset; /* Ajustado a 110px exactos por tu navbar móvil */
    }

    .carousel-inner {
        /* ¡LA MAGIA AQUÍ! flex: 1 obliga a la pista a estirarse y comerse el espacio muerto */
        flex: 1; 
        height: auto;
        align-items: stretch; /* Obliga a la diapositiva a crecer junto con la pista */
    }

    .carousel-slide {
        height: auto;
    }

    .hero-container {
        flex-direction: column;
        justify-content: flex-start;
        padding: 1.5rem 1.5rem 2rem 1.5rem;
        /* ¡LA SOLUCIÓN 2! Regresamos los anchos al 100% para que nada se desborde */
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .hero-content-left {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding-right: 0;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transform: none;
    }

    /* Restauramos el contenedor agrupador que se había borrado */
    .hero-text-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }

    .hero-text-group h1 {
        width: 100%;
        max-width: 100%;
        text-align: center;
        white-space: normal;
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 0.2rem;
    }

    .hero-text-group h1.title-line-2 {
        margin-bottom: 1rem;
    }

    .hero-text-group p {
        width: 100%;
        font-size: clamp(1rem, 3.5vw, 1.3rem);
        font-weight: 400;
        text-align: center;
    }

    .hero-btn-container {
        padding-left: 0;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-btn-container .btn-primary {
        padding: 0.8rem 2.5rem;
        font-size: 1.2rem;
    }

    .hero-circle-bg {
        display: none;
    }

    .hero-content-right {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 3rem;
    }

    .hero-sarmex-img {
        max-height: 35vh; 
        transform: translateX(0);
    }

    .carousel-control {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}



/* --- Animaciones --- */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel-slide.active .char {
    opacity: 1;
    transform: translateY(0);
}

.animate-text {
    opacity: 0;
    transition: opacity 0.8s ease 0.6s;
}

.carousel-slide.active .animate-text {
    opacity: 1;
}

/* ==========================
   FEATURES SECTION
   ========================== */

/* --- Estilos base (PC/Monitor) --- */
.features-section {
    background-color: #ffffff;
    padding: 8rem 0;              /* espacio vertical amplio */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 6rem;                    /* separación entre columnas */
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Iconos --- */
.feature-icon-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
}

.feature-icon {
    width: auto;
    height: 100%;
    max-height: 80px;             /* fuerza tamaño uniforme */
}

/* --- Títulos --- */
.feature-title-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.feature-title {
    color: #eb1c24;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}

.feature-title.hidden-line {
    visibility: hidden;           /* mantiene espacio vertical */
}

/* --- Texto --- */
.feature-text {
    color: #000000;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .features-section {
        padding: 5rem 0;          /* menos espacio en móvil */
    }

    .features-container {
        grid-template-columns: 1fr; 
        gap: 4rem;                /* separación vertical */
        padding: 0 2rem;
    }
}

/* --- Animaciones --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(50px);  /* inicia desplazado hacia abajo */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* retrasos escalonados */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }

/* ==========================================
   SECCIÓN 4: ACREDITACIÓN (Banner de Fondo)
   ========================================== */
.acreditacion-section {
    position: relative;
    width: 100%;
    min-height: 85vh; /* Puedes ajustar qué tan alto quieres el banner */
    background-size: cover; /* Permite que la imagen se recorte a los laterales */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

/* Capa semitransparente oscura para asegurar lectura del texto */
.acreditacion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contenedor que agrupa los textos para darles separación */
.acreditacion-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja un bloque arriba y otro abajo */
    align-items: center;
    gap: 45rem; /* Espacio de seguridad entre el texto de arriba y el de abajo */
}

/* Textos de la parte superior */
.acreditacion-header {
    text-align: center;
    max-width: 2000px;
}

.acreditacion-title {
    color: #000000;
    font-size: clamp(2rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.acreditacion-text {
    color: #000000;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1;
    font-weight: 500;
}

/* Textos de la parte inferior */
.acreditacion-footer {
    text-align: center;
}

.renta-title {
    color: #eb1c24;
    font-size: clamp(1.5rem, 3.5vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
    text-transform: uppercase;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .acreditacion-section {
        min-height: 500px;
        padding: 3rem 1.5rem;
    }

    .acreditacion-text{
        font-size: 1rem;
    }
    
    .acreditacion-content {
        gap: 15rem; /* Reduce el hueco en móviles */
    }
    .renta-title{
        font-size: 1rem;
        padding-top: 9rem;
    }
}

/* ==========================================
   SECCIÓN 4: DESCARGAS EN PDF
   ========================================== */
/* --- Diseño Base --- */
.descargas-section {
    position: relative;
    width: 100%;
    /* Definimos una altura mínima (60vh) para que la imagen de fondo luzca imponente */
    min-height: 60vh; 
    display: flex;
    /* Esto empuja el contenedor de textos hacia abajo (altura de 2/3) */
    align-items: flex-end; 
    justify-content: center;
    /* Propiedades del fondo: recorta los lados sin deformarse en pantallas angostas */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 9rem; /* Margen inferior para que no quede pegado al borde */
}


.descargas-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1760px; /* Alineado con el ancho de las demás secciones */
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8rem; /* Separación vertical entre el título y los dos subtítulos */
}

.descargas-main-title {
    color: #ffffff;
    font-size: 2.6rem;
    font-weight: 700; /* Bold fuerte */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.descargas-grid {
    display: flex;
    /* Distribuye el espacio de manera idéntica entre los lados y el centro */
    justify-content: space-evenly; 
    width: 100%;
    gap: 2rem;
}

.descarga-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 600px; /* Límite para que no se estiren demasiado en pantallas gigantes */
}

.descarga-subtitle {
    color: #ffffff;
    font-size: 1.5rem; /* Ligeramente más chico que el título principal */
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* --- Responsivo --- */
@media (max-width: 1024px) {
    /* En laptops, reducimos textos y la distancia entre ellos y los bordes */
    .descargas-main-title {
        font-size: 2.2rem;
    }
    .descarga-subtitle {
        font-size: 1.3rem;
    }
    .descargas-grid {
        justify-content: space-between; 
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .descargas-section {
        /* Mantenemos una altura considerable en móvil para que recorte la foto a los lados */
        min-height: 600px; 
        align-items: center; /* En móvil lo centramos verticalmente un poco más para equilibrar */
        padding-bottom: 4rem;
    }

    .descargas-container {
        gap: 3rem;
    }

    .descargas-main-title {
        font-size: 1.8rem;
    }

    /* ¡EL CAMBIO MÓVIL! Pasamos de horizontal a vertical */
    .descargas-grid {
        flex-direction: column; 
        align-items: center;
        gap: 4rem; /* Separación entre el botón 1 y el subtítulo 2 */
    }

    .descarga-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        /* Alineación centrada justificada y obligada a doble línea con max-width */
        text-align: center;
        max-width: 320px; 
    }
}

/* --- Animaciones --- */

/* no aplican nuevas animaciones en esta seccion */

/* ==========================================
   SECCIÓN 5: COBERTURA SASMEX
   ========================================== */

/* --- Diseño Base (Escritorio) --- */
.cobertura-section {
    background-color: #ffffff;
    padding: 6rem 0; /* Ligera separación superior e inferior */
    width: 100%;
}

.cobertura-container {
    max-width: 1760px; /* Alineado con el ancho de las demás secciones */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Título Principal de la Sección */
.cobertura-title {
    color: #eb1c24;
    font-size: 2.4rem;
    font-weight: 800; /* Extra bold */
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 4rem; /* Separación con el contenido de abajo */
}

/* Contenedor Grid/Flex para división en dos columnas */
.cobertura-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5rem; /* Separación entre el mapa y los textos */
}

/* Columna Izquierda: Imagen del Mapa */
.cobertura-col-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cobertura-mapa-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
}

/* Columna Derecha: Contenido Informativo */
.cobertura-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alineación izquierda */
    text-align: left;
}

/* Párrafos Informativos */
.cobertura-paragraphs {
    width: 100%;
    margin-bottom: 2.5rem; /* Doble separación con el subtítulo */
}

.cobertura-p {
    color: #000000;
    font-size: 1.6rem;
    line-height: 1.1;
    text-align: justify; /* Alineación justificada */
    margin-bottom: 1.2rem; /* Ligera separación entre párrafos */
    width: 100%; /* Garantiza que ambos párrafos tengan exactamente el mismo ancho */
    font-weight: 500;
}

.cobertura-p:last-child {
    margin-bottom: 0;
}

/* Subtítulo y Enlace */
.cobertura-info-link {
    margin-bottom: 1.8rem; /* Espacio de diferencia antes de la lista */
}

.cobertura-subtitle {
    color: #000000;
    font-size: 1.3rem;
    font-weight: 700; /* Bold */
    margin-bottom: 0.3rem; /* Inmediatamente debajo el enlace */
}

.cobertura-link-text {
    color: #000000;
    font-size: 1.2rem;
    font-weight: 700; /* Mismo tamaño y bold */
}

/* Enlace sin efectos de cambio de color o hover */
.cobertura-link, 
.cobertura-link:visited, 
.cobertura-link:hover, 
.cobertura-link:active {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* Lista con viñetas personalizadas */
.cobertura-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cobertura-item {
    color: #000000;
    font-size: 1.15rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Sangría única uniforme para todos los elementos */
}

/* Elemento 1: Punto negro relleno */
.item-filled::before {
    content: '●';
    color: #000000;
    font-size: 1rem;
}

/* Elemento 2: Círculo hueco (sin rellenar) */
.item-hollow::before {
    content: '○';
    color: #000000;
    font-size: 1rem;
    font-weight: bold;
}

/* Elemento 3: Triángulo amarillo */
.item-triangle::before {
    content: '▲';
    color: #ffd700; /* Amarillo */
    font-size: 0.9rem;
}


/* --- Responsivo (Móvil) --- */
@media (max-width: 768px) {
    .cobertura-section {
        padding: 4rem 0;
    }

    .cobertura-title {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }

    /* Cambio a columna y reordenamiento con display: contents */
    .cobertura-content {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .cobertura-col-right {
        display: contents; /* Desenvuelve sus hijos para ordenarlos con el mapa */
    }

    /* 1. Párrafos centrados con ancho máximo común */
    .cobertura-paragraphs {
        order: 1;
        width: 100%;
        max-width: 600px;
        margin-bottom: 2rem;
    }

    /* 2. Imagen centrada debajo de los párrafos */
    .cobertura-col-left {
        order: 2;
        width: 100%;
        margin-bottom: 2.5rem;
    }

    .cobertura-mapa-img {
        max-width: 100%;
    }

    /* 3. Subtítulo y Enlace debajo del mapa */
    .cobertura-info-link {
        order: 3;
        width: 100%;
        max-width: 600px;
        text-align: left;
    }

    /* 4. Lista debajo de la información */
    .cobertura-list {
        order: 4;
        width: 100%;
        max-width: 600px;
    }
}

/* ==========================================
   SECCIÓN 6: EQUIPOS (CARRUSEL 2 PRODUCTOS)
   ========================================== */

/* --- Diseño Base (Escritorio) --- */
.equipos-section {
    background-color: #e8e8e8;
    padding: 6rem 0;
    width: 100%;
}

.equipos-container {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equipos-title {
    color: #eb1c24;
    font-size: 2.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: -2rem;
    margin-top: -2rem;
    text-align: center;
}

/* Envoltura con espacio lateral exacto para que las flechas no estorben */
.equipos-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1980px; /* Aumentamos el ancho permitido para que las imágenes tengan espacio de sobra */
    padding: 0 70px;   /* Margen lateral para alojar las flechas */
    overflow: hidden;  /* Elimina cualquier borde o asomo del elemento siguiente */
}

/* Pista deslizante */
.equipos-carousel-inner {
    display: flex;
    gap: 4rem; /* Separación horizontal uniforme entre productos */
    transition: transform 0.5s ease-out;
    width: 100%;
}

/* Cada producto (Sin fondo blanco ni bordes de tarjeta) */
.equipo-card {
    /* Exactamente 2 elementos por vista considerando el gap */
    flex: 0 0 calc(50% - 2rem); 
    background: transparent; /* Quitamos el contenedor blanco */
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.equipo-card:hover {
    transform: translateY(-5px);
}

/* Imagen significativamente más grande */
.equipo-img-wrapper {
    height: 700px; /* Aumentamos sustancialmente la altura para hacer lucir el producto */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.equipo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
}

.equipo-card-title {
    margin-top: -7rem;
    color: #000000;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
}

/* Botón estilizado idéntico al resto de la web */
.btn-equipo {
    padding: 1rem 1rem;
    font-size: 1.1rem;
    border-radius: 8px;

}

/* --- FLECHAS RECICLADAS EXACTAS DEL PRIMER CARRUSEL (HERO) --- */
.equipos-carousel-wrapper .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente original */
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.8rem;
    transition: background-color 0.3s ease;
    border-radius: 0; /* Formato estándar rectilíneo del Hero */
}

.equipos-carousel-wrapper .carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.9); /* Oscurece al hover */
}

.equipos-carousel-wrapper .prev {
    left: 0;
}

.equipos-carousel-wrapper .next {
    right: 0;
}

/* --- Responsivo (Móvil) --- */
@media (max-width: 768px) {
    .equipos-section {
        padding: 4rem 0;
    }

    .equipos-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .equipos-carousel-wrapper {
        padding: 0 45px;
    }

    .equipo-card {
        flex: 0 0 100%; /* 1 solo producto por pantalla en móvil */
    }

    .equipo-img-wrapper {
        height: 320px;
    }

    .equipo-card-title {
        font-size: 1.3rem;
    }

    .equipos-carousel-wrapper .carousel-control {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* ==========================================
   SECCIÓN 7: CONTACTO SECO / EMERGENCIAS
   ========================================== */

/* --- Diseño Base (Escritorio) --- */
.contacto-seco-section {
    position: relative;
    width: 100%;
    /* Altura mínima y propiedades del fondo para que se recorte como los demás banners */
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Centra todo verticalmente */
    justify-content: center;
    padding: 6rem 0; /* Ligera separación superior e inferior */
    background-color: #1a1a1a; /* Color de respaldo si la imagen tarda en cargar */
}

.contacto-seco-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Título de la sección */
.contacto-seco-title {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 700; /* Bold */
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 5.5rem;
    line-height: 1.3;
    width: 100%;
}

/* --- LA TABLA / MATRIZ 3x2 --- */
.contacto-seco-grid {
    display: grid;
    /* 3 columnas del mismo tamaño */
    grid-template-columns: repeat(3, 1fr);
    /* Mayor distancia horizontal entre columnas */
    column-gap: 8rem; 
    /* Menor distancia vertical entre las 2 filas, pero lo suficiente para no encimarse */
    row-gap: 4.5rem;    
    width: 100%;
    max-width: 1400px; /* Ancho máximo para que las orillas guarden distancia lateral */
    margin-bottom: 5.5rem;
}

/* Cada uno de los 6 elementos */
.contacto-seco-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contacto-seco-icon-wrapper {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.8rem;
}

/* --- Íconos e Inversión a Blanco --- */
.contacto-seco-icon {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* EFECTO NEGATIVO: Invierte el color negro original del SVG a blanco puro */
    filter: brightness(0) invert(1); 
    transition: transform 0.3s ease;
}

/* Agrandamos un poco más las 4 imágenes especificadas */
.contacto-seco-icon[src*="electro"],
.contacto-seco-icon[src*="chapas"],
.contacto-seco-icon[src*="torniquetes"],
.contacto-seco-icon[src*="tableros"] {
    transform: scale(1.20); /* Incrementa un 18% su tamaño relativo */
}

.contacto-seco-label {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    /* Al tener espacio suficiente en monitor, naturalmente se queda en 1 línea */
}

/* Botón final */
.contacto-seco-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;

}

/* Modificación exclusiva para el botón de esta sección */
.contacto-seco-btn-container .btn-primary {
    /* Cambiamos el peso de la letra solo aquí. 
       500 = medio, 600 = semi-bold (por defecto tenía bold/700) */
    font-weight: 600;
    font-size: 1.4rem; 
}


/* --- Responsivo --- */
@media (max-width: 1200px) {
    /* Laptops: reducimos distancias y permitimos que el texto brinque de línea seguro */
    .contacto-seco-grid {
        column-gap: 3rem; /* Reducción proporcional de distancia horizontal */
        row-gap: 5rem;    /* Aumentamos un pelín la vertical por si los textos se hacen de 3 líneas */
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .contacto-seco-section {
        padding: 5rem 0;
        min-height: auto; /* Dejamos que el contenido decida la altura */
    }

    .contacto-seco-title {
        font-size: 1.6rem;
        margin-bottom: 4rem;
    }

    /* ¡MAGIA MÓVIL! Pasamos la tabla a 2 columnas x 3 filas */
    .contacto-seco-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        row-gap: 4rem;
    }

    .contacto-seco-icon-wrapper {
        height: 65px;
        margin-bottom: 1.2rem;
    }

    .contacto-seco-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Si el celular es SÚPER estrecho, pasamos todo a 1 sola columna vertical (1x6) */
    .contacto-seco-grid {
        grid-template-columns: 1fr;
        row-gap: 3.5rem;
    }
}

/* ==========================================
   SECCIÓN 8: PREGUNTAS FRECUENTES (FAQ)
   ========================================== */

/* --- Diseño Base (Escritorio) --- */
.faq-section {
    background-color: #e8e8e8;
    padding: 6rem 0; /* Separación superior e inferior */
    width: 100%;
    display: flex;
    justify-content: center;
}

.faq-container {
    width: 100%;
    max-width: 1760px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el título y la lista horizontalmente */
}

/* Título de la sección */
.faq-title {
    color: #000000;
    font-size: 2.6rem;
    font-weight: 700; /* Bold fuerte */
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 7rem;
    margin-top: -1rem;
}

/* Contenedor central de la lista */
.faq-list {
    width: 100%;
    /* Permitimos que se estire bastante para que en monitores grandes 
       quede en una sola línea, pero lo limitamos un poco para que sea legible */
    max-width: 1900px; 
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Separación entre cada bloque de pregunta/respuesta */
}

/* Cada bloque individual (Pregunta + Respuesta) */
.faq-item {
    display: flex;
    flex-direction: column;
    /* Alineamos el texto estrictamente a la izquierda dentro de su caja */
    text-align: left; 
}

/* El texto de la pregunta (Bold) */
.faq-question {
    color: #000000;
    font-size: 2rem;
    font-weight: 700; /* Bold */
    margin-bottom: 0.2rem; /* Ligera separación con la respuesta */
    line-height: 1.3;
}

/* El texto de la respuesta (Regular/Sin bold) */
.faq-answer {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 500; /* Peso normal/medio para diferenciarlo */
    line-height: 1.6; /* Mayor interlineado para mejor lectura */
}


/* --- Responsivo (Móvil) --- */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 0;
    }

    .faq-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }

    .faq-list {
        gap: 2rem;
    }

    .faq-question {
        font-size: 1.2rem;
    }

    .faq-answer {
        font-size: 1.1rem;
        /* En móvil, los textos naturalmente brincarán a varias líneas, 
           pero conservarán su alineación a la izquierda gracias al estilo base */
    }
}

/* ==========================================
   SECCIÓN 9: COTIZA AHORA (FORMULARIO)
   ========================================== */

/* --- Diseño Base (Escritorio) --- */
.cotiza-section {
    background-color: #ffffff;
    padding: 6rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cotiza-container {
    width: 100%;
    max-width: 1760px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cotiza-main-title {
    color: #000000;
    font-size: 2.6rem;
    font-weight: 800; /* Bold fuerte */
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 4rem;
}

.cotiza-form {
    width: 100%;
    max-width: 1500px; 
    display: flex;
    flex-direction: column;
}

.cotiza-subtitle-container {
    width: 100%;
    margin-bottom: 2rem;
    text-align: left;
}

.cotiza-subtitle {
    color: #000000;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Grilla del formulario */
.cotiza-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas exactas */
    column-gap: 5rem; /* Separación entre columna izquierda y derecha */
    row-gap: 1.8rem;  /* Separación vertical entre campos */
    width: 100%;
}

.cotiza-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cotiza-label {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    padding-left: 15px; /* Sangría a la izquierda */
    line-height: 1.3;
}

.cotiza-input {
    background-color: #e8e8e8; /* Fondo gris */
    border: 2px solid transparent; 
    /* REDUCIDO: Reducimos el radio de las esquinas a 4px */
    border-radius: 4px; 
    height: 55px; /* Altura uniforme */
    padding: 0 15px;
    font-size: 1.1rem;
    font-family: inherit;
    color: #000000;
    width: 100%;
    transition: border-color 0.3s ease;
    outline: none;
}

.cotiza-input:focus {
    border-color: #eb1c24; /* Resalta en rojo sutil al escribir */
}

/* Alineación del mensaje (abarca 2 filas) */
.group-mensaje {
    grid-row: span 2; 
    height: 100%;
}

.cotiza-textarea {
    height: 100%; 
    min-height: 140px; 
    resize: none; 
    padding-top: 15px; 
}

/* Contenedor del Botón Enviar */
.cotiza-submit-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alineado a la derecha debajo de la columna derecha */
    margin-top: 2.5rem;
    width: 100%;
}

.btn-enviar {
    font-size: 1.25rem !important; 
    padding: 1rem 4rem !important;
    border-radius: 4px !important; /* Radio de esquinas igual que las entradas */
    border: none;
    cursor: pointer;
}

.cotiza-error-msg {
    color: #eb1c24;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1rem;
    display: none; /* Oculto por defecto, JS lo mostrará si falta algún campo */
}

/* ==========================================
   AJUSTE PARA LISTAS DESPLEGABLES (SELECT)
   ========================================== */
select.cotiza-input {
    appearance: auto;
    background-color: #e8e8e8; /* Asegura el fondo blanco */
    color: #333;               /* Color de texto gris oscuro */
    font-family: inherit;      /* Hereda la tipografía Montserrat */
}

/* Para que la primera opción (Selecciona una opción) se vea grisácea como un placeholder */
select.cotiza-input:invalid {
    color: #999;
}

/* --- Responsivo --- */
@media (max-width: 992px) {
    .cotiza-grid {
        column-gap: 3rem;
    }
}

@media (max-width: 768px) {
    .cotiza-section {
        padding: 4rem 0;
    }
    
    .cotiza-main-title {
        font-size: 2rem;
    }

    .cotiza-subtitle {
        font-size: 1.2rem;
    }

    .cotiza-grid {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
    }

    .group-mensaje {
        grid-row: auto; 
    }

    .cotiza-textarea {
        height: 160px; 
    }

    .cotiza-submit-container {
        align-items: center; 
    }
    
    .cotiza-error-msg {
        text-align: center;
    }
}

/* ==========================================
   SECCIÓN 10: CONTACTO Y MAPA
   ========================================== */

/* Contenedor principal 50/50 */
.contacto-final-section {
    display: flex;
    flex-direction: row; /* Lado a lado en PC (Mapa izq, Info der) */
    width: 100%;
    min-height: 680px;
    overflow: hidden; /* Evita desbordamientos horizontales */
}

/* --- Lado Izquierdo (Mapa) --- */
.contacto-mapa {
    width: 50%;
    position: relative;
}

.contacto-mapa iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Lado Derecho (Información) --- */
.contacto-info {
    width: 50%;
    background-color: #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.contacto-info-contenido {
    width: 100%;
    max-width: 500px;
    text-align: left;
}

/* Título principal de contacto */
.contacto-titulo {
    color: #000000;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem); /* Escala suavemente entre móvil y PC */
    font-weight: 800; /* Bold */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Dirección */
.contacto-direccion {
    color: #000000;
    font-size: clamp(0.95rem, 2.2vw, 1.7rem); /* Ajuste elástico de tamaño */
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    max-width: 1000px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Listas con íconos */
.contacto-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contacto-lista li {
    display: flex;
    align-items: center;
    color: #000000;
    font-size: clamp(0.85rem, 2vw, 1.5rem); /* Escala automática sin cortarse */
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contacto-icono {
    width: 28px;
    height: 28px;
    margin-right: 15px;
    object-fit: contain;
    flex-shrink: 0; /* Mantiene la forma redonda del ícono si el texto salta de línea */
}

/* Espaciado extra para separar teléfonos de correos */
.contacto-lista.correos {
    margin-top: 2.5rem;
}

/* Ajustes generales de texto para columnas de datos de contacto */
.contacto-col-der,
.contacto-info-item,
.contacto-info-texto,
.contacto-datos,
.contacto-col p,
.contacto-col li,
.contacto-col a {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    line-height: 1.5;
}

.contacto-col h3,
.contacto-titulo-col {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    margin-bottom: 1rem;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .contacto-final-section {
        min-height: 550px;
    }
    
    .contacto-info-contenido {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    /* En móvil: mapa arriba e información abajo */
    .contacto-final-section {
        flex-direction: column;
    }

    .contacto-mapa {
        width: 100%;
        height: 400px;
    }

    .contacto-info {
        width: 100%;
        padding: 3rem 1.5rem;
    }

    .contacto-container,
    .contacto-wrapper {
        flex-direction: column;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        gap: 2.5rem;
    }

    .contacto-col-izq,
    .contacto-col-der {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contacto-lista-items,
    .contacto-info-lista {
        gap: 1rem;
    }
}
/* ==========================================
   SECCIÓN 11: FOOTER (PIE DE PÁGINA)
   ========================================== */
.footer-section {
    background-color: #eb1c24; /* Rojo oficial */
    color: #ffffff;
    padding: 5rem 0 2rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-container {
    width: 100%;
    max-width: 1920px; /* Aumentado a 1760px para aprovechar monitores amplios */
    padding: 0 4rem; /* Margen lateral más amplio para escritorios grandes */
    display: flex;
    flex-direction: column;
}

/* --- Contenedor Superior (Las 3 partes) --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* El gap aumenta en pantallas amplias y se reduce fluidamente al achicar la ventana */
    gap: clamp(2.5rem, 6vw, 7rem);
    margin-bottom: 4rem;
    width: 100%;
}

.footer-col {
    flex: 1; /* Distribución equitativa en tercios */
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Parte 1: Logo y Título */
.footer-logo {
    width: 160px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-empresa {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Parte 2: Dirección y Contacto */
.footer-direccion {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.footer-contacto-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1.2rem; /* Sangría solicitada */
}

.footer-contacto-lista li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.lista-espacio {
    height: 1.2rem;
}

/* Parte 3: Enlaces */
.footer-col-3 {
    align-items: flex-start;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* --- Parte 4: Línea y Copyright --- */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-line {
    width: 100%; /* Abarca todo el ancho del contenedor */
    border: none;
    border-top: 2px solid #ffffff;
    margin-bottom: 1.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
}

/* --- Responsivo --- */
@media (max-width: 992px) {
    .footer-container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    /* En celulares pasamos a 1 sola columna vertical */
    .footer-top {
        flex-direction: column;
        gap: 3.5rem;
    }
    
    .footer-col {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-col-3 {
        align-items: center;
    }

    .footer-contacto-lista {
        padding-left: 0;
    }
}

/* ==========================================
   SECCIÓN HERO: EQUIPOS (equipos.html)
   ========================================== */
.equipos-hero-section {
    position: relative;
    width: 100%;
    min-height: 75vh; /* 75vh significa "ocupar el 75% del alto de la pantalla del usuario" */
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Capa translúcida para asegurar que el texto blanco resalte */
.equipos-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); 
    z-index: 1;
}

/* Contenedor centralizado */
.equipos-hero-container {
    position: relative;
    z-index: 2; /* Asegura que el texto esté por encima de la capa oscura */
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    text-align: center; /* Centra todo el contenido */
    margin-top: -4rem;
}

/* Título EQUIPOS */
.equipos-hero-title {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 12rem); /* Elástico: grande en PC, reduce en móvil */
    font-weight: 700; /* Bold */
    margin-bottom: 1.2rem;
    letter-spacing: 20px;
}

/* Subtítulo */
.equipos-hero-subtitle {
    color: #ffffff;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    line-height: 1.5;
    /* Un max-width alto permite que ocupe todo el ancho en PC (1 línea) y colapse en móvil */
    max-width: 900px; 
    margin: 0 auto; /* Centra el párrafo en sí mismo */
}

/* --- Responsivo para móvil --- */
@media (max-width: 768px) {
    .equipos-hero-section {
        min-height: 350px; /* Se reduce un poco el alto en celular */
    }
    
    /* El texto del subtítulo bajará automáticamente a 2 o 3 líneas 
       por la falta de espacio físico en la pantalla */
}

/* ==========================================
   SECCIÓN 2: LISTA DE EQUIPOS (equipos.html)
   ========================================== */
.equipos-acreditados-section {
    background-color: #e8e8e8; /* Fondo gris claro */
    padding: 6rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.equipos-acreditados-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Encabezado --- */
.equipos-encabezado {
    text-align: center;
    /* Ajusta este valor para decidir qué tan rápido hace el salto de línea el texto */
    max-width: 1800px; 
    margin-bottom: 5rem;
}

.equipos-titulo-principal {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #000000;
    font-weight: 500;
    margin-bottom: 0rem;
    line-height: 1.4;
}

.equipos-subtitulo-principal {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #000000;
    font-weight: 500;
    line-height: 1.2;
}

/* --- Grid de Tarjetas (2 columnas) --- */
.equipos-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas iguales */
    width: 120%;
    margin-bottom: 0rem;
}

/* --- Estructura interna de la Tarjeta --- */
.equipo-card-horizontal {
    display: flex;
    flex-direction: row; /* Imagen a la izquierda, texto a la derecha */
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.equipo-card-img-wrapper {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: flex-end;
}

.equipo-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Textos de la tarjeta */
.equipo-card-detalles {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alineado a la izquierda */
}

.equipo-tag-rojo {
    color: #eb1c24;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.equipo-modelo-titulo {
    color: #000000;
    font-size: 2rem;
    font-weight: 800; /* Bold */
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    
    /* El ancho máximo que pediste para que haga salto de línea */
    max-width: 200px; 
}

/* Botón adaptado al mismo ancho que el título */
.btn-ficha {
    width: 100%;
    max-width: 150px; /* Exactamente el mismo ancho que el título */
    text-align: center;
    font-weight: 700;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    margin-top: 2rem;
}

/* --- Línea divisoria roja --- */
.equipos-linea-roja {
    width: 100%;
    border: none;
    border-top: 2px solid #eb1c24; /* Color rojo */
    opacity: 1;
}

/* --- Responsivo --- */
@media (max-width: 992px) {
    .equipos-cards-grid {
        gap: 2rem;
    }
    
    .equipo-modelo-titulo {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    /* En celular se pasa a 1 sola columna vertical */
    .equipos-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .equipo-card-horizontal {
        flex-direction: column; /* Apila imagen arriba, texto abajo */
        text-align: center;
    }

    .equipo-card-img-wrapper {
        width: 100%;
        justify-content: center;
        margin-bottom: -10rem;
    }

    .equipo-card-detalles {
        width: 100%;
        align-items: center; /* Centra los textos y el botón en móvil */
    }

    .equipo-modelo-titulo {
        max-width: 100%;
    }

    .equipos-linea-roja {
    width: 100%;
    border: none;
    border-top: 2px solid #eb1c24; /* Color rojo */
    opacity: 1;
    margin-top: 5rem;
    }
}

/* ==========================================
   FICHAS TÉCNICAS: VENTANAS MODALES (POP-UPS)
   ========================================== */

/* Fondo oscuro detrás del modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(4px); /* Efecto desenfoque sutil de fondo */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Por encima del Navbar y todo el contenido */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
}

/* Estado activo cuando el modal está abierto */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor del pop-up en gris #e8e8e8 */
.modal-content {
    background-color: #e8e8e8; /* Fondo gris solicitado */
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem 2.5rem;
    width: 100%;
    max-width: 650px; /* Ancho máximo para fácil lectura */
    max-height: 85vh; /* Evita que sobrepase el alto de la pantalla */
    overflow-y: auto; /* Scroll interno si la ficha es muy larga */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Botón de cierre (X) en la esquina superior */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    color: #eb1c24; /* Cambia a rojo al pasar el mouse */
    transform: scale(1.1);
}

/* Título de la ficha técnica */
.modal-title {
    color: #eb1c24;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    padding-right: 2rem; /* Espacio para que no choque con la X */
    border-bottom: 2px solid #eb1c24;
    padding-bottom: 0.5rem;
}

/* Lista con texto negro bold y puntos rellenos */
.modal-list {
    list-style-type: disc; /* Puntos rellenos */
    padding-left: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-list li {
    color: #000000;
    font-size: 1rem;
    font-weight: 700; /* Texto en negrita */
    line-height: 1.4;
}

/* --- Responsivo para pantallas pequeñas --- */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.2rem 1.5rem 1.8rem;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-list li {
        font-size: 0.9rem;
    }
}