/* --- Estilos para el pie de la tarjeta de oferta --- */
.producto-card-pie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* Espacio entre precios y botón */
}

.precios-container {
    display: flex;
    flex-direction: column; /* Apila los precios si hay oferta */
    align-items: flex-start;
}

.boton-cotizar {
    background-color: var(--color-primario);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap; /* Evita que el texto se parta */
    transition: background-color 0.3s ease;
}

.boton-cotizar:hover {
    background-color: var(--color-primario-hover);
}

/* ======================================================= */
/* ====== CORRECCIÓN DE TAMAÑO PARA HEADER DE INICIO ====== */
/* ======================================================= */

/* Forzamos la altura correcta para la imagen del logo en el header de inicio */
.header-inicio .logo img {
    height: 35px;
}

/* Forzamos el tamaño y color correctos para el texto del logo */
.header-inicio .logo span {
    font-size: 1.5rem;
    color: #fff; /* Aseguramos que sea blanco sobre el carrusel */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Estilo para el texto del logo cuando se hace scroll */
.header-inicio.scrolled .logo span {
    color: var(--color-primario); /* Vuelve al color primario de la marca */
    text-shadow: none;
}

/* Ajuste para que la imagen de novedades sea más alta */
.novedad-card-imagen img {
    width: 100%;
    aspect-ratio: 4 / 3; /* Proporción más alta que 16/9 */
    object-fit: cover;
}


/* ======================================================= */
/* ====== ESTILOS PARA TARJETAS DE NOVEDADES (HOME) ====== */
/* ======================================================= */

.seccion-novedades {
    background-color: var(--color-superficie);
}
body.dark-mode .seccion-novedades {
    background-color: #1a1a1a;
}

.novedad-card {
    background-color: var(--color-fondo);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra-caja);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.novedad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}



.novedad-card-contenido {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.novedad-card-tag {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--color-primario);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 1rem;
}

.novedad-card-titulo {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

.novedad-card-desc {
    color: var(--color-texto-secundario);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.novedad-card-link {
    color: var(--color-primario);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease;
}
.novedad-card-link:hover {
    transform: translateX(5px);
}
.novedad-card-link i {
    margin-left: 0.5rem;
}


/* ======================================================= */
/* ====== AJUSTES FINALES PARA CARRUSELES DE INICIO ====== */
/* ======================================================= */

/* --- 1. AJUSTE PARA IMAGEN DE NOVEDADES MÁS GRANDE --- */

/* Hacemos el contenedor del slide más alto para dar más espacio a la imagen */
.carrusel-novedades .swiper-slide {
    height: 450px; 
}

/* Cambiamos la proporción de la imagen para que sea cuadrada y ocupe más espacio vertical */
.novedad-card-imagen img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Proporción cuadrada, mucho más grande visualmente */
    object-fit: cover;
}


/* --- 2. AJUSTE PARA TARJETA DE PROMOCIONES MÁS PEQUEÑA --- */

/* Reducimos el ancho del slide para que la tarjeta se vea más compacta */
.carrusel-ofertas .swiper-slide {
    width: 280px; 
}



/* ======================================================= */
/* ====== AJUSTES PARA BOTÓN DE COMPRA EN MÓVILES ====== */
/* ======================================================= */

/* ======================================= */
/* ESTILOS BASE DE LA TARJETA DE PRODUCTO */
/* ======================================= */

.producto-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative; /* Para posicionar el badge */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.producto-card-imagen {
    padding: 15px; /* Espacio alrededor de la imagen */
    background-color: #f7f9fc; /* Fondo claro para destacar el producto */
    min-height: 180px; /* Altura mínima para asegurar espacio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-card-imagen img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.producto-card-contenido {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que el contenido ocupe el espacio restante */
}

.producto-card-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 8px;
    /* Limita el título a dos líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-card-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
    flex-grow: 1; /* Ayuda a empujar el pie de página hacia abajo */
    /* Limita la descripción a una línea */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.producto-card-pie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Se asegura de que esté en la parte inferior */
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

/* Contenedor de Precios */
.precio-final-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.producto-card-precio {
    font-size: 1.4rem;
    font-weight: 800;
    color: #007bff; /* Color principal */
    line-height: 1;
}

.precio-anterior-card {
    font-size: 0.9rem;
    color: #dc3545; /* Rojo para el precio tachado */
    text-decoration: line-through;
    margin-bottom: 2px;
}

/* Badge de OFERTA */
.badge-oferta-card {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc3545; /* Rojo llamativo para ofertas */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

/* Estilo para el botón dentro de la tarjeta */
.producto-card-pie .boton {
    padding: 8px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.producto-card-pie .boton-oferta {
    background-color: #ffc107; /* Amarillo para destacar la oferta */
    color: #333;
    border: 1px solid #ffc107;
}

/* ======================================= */
/* RESPONSIVIDAD (Asegura que el Swiper se ajuste) */
/* ======================================= */

/* Ajuste para móviles pequeños (el Swiper ya maneja la vista, pero si necesitas un ajuste extra) */
@media (max-width: 576px) {
    .producto-card-titulo {
        font-size: 1rem;
    }
    .producto-card-precio {
        font-size: 1.2rem;
    }
}

/* ======================================================= */
/* ====== AJUSTES RESPONSIVOS PARA TARJETAS DE PRODUCTO (CARRUSELES HOME) ====== */
/* ======================================================= */

@media (max-width: 768px) {
    /* 1. Reducimos el ancho del slide en el Carrusel de Ofertas */
    .carrusel-ofertas .swiper-slide {
        width: 250px; /* Hacemos el slide más estrecho que los 280px por defecto */
    }

    /* 2. Hacemos la tarjeta de producto más compacta */
    .producto-card {
        margin-left: 80px;
        max-width: 250px; /* Ancho máximo de la tarjeta */
        border-radius: 8px; /* Bordes un poco menos pronunciados */
    }

    /* 3. Ajustamos la imagen */
    .producto-card-imagen {
        min-height: 150px; /* Reducimos la altura mínima del contenedor de la imagen */
        padding: 10px; /* Menos padding */
    }

    .producto-card-imagen img {
        max-height: 120px; /* Reducimos la altura máxima de la imagen */
    }

    /* 4. Ajustamos el contenido y el texto */
    .producto-card-contenido {
        padding: 10px; /* Reducimos el padding general del contenido */
    }

    .producto-card-titulo {
        font-size: 1rem; /* Título más pequeño */
        margin-bottom: 5px;
    }

    .producto-card-desc {
        font-size: 0.8rem; /* Descripción más pequeña */
        margin-bottom: 10px;
    }

    /* 5. Ajustamos el pie de la tarjeta (precio y botón) */
    .producto-card-pie {
        padding-top: 5px; /* Menos padding superior */
    }

    .producto-card-precio {
        font-size: 1.2rem; /* Precio más pequeño */
    }

    /* 6. Ajustamos el botón "Ver más" */
    .producto-card-pie .boton, 
    .producto-card-pie .boton-cotizar {
        padding: 6px 10px; /* Botón más compacto */
        font-size: 0.8rem;
    }
}


/* ... otros estilos que ya tienes ... */

/* 1. Ocultar los controles de Swiper que solo queremos en modo móvil si estamos en escritorio */





/* ======================================================= */
/* === ESTILOS DE TARJETA PREMIUM (IMPORTADOS PARA INDEX) === */
/* ======================================================= */

/* 1. Contenedor de la Tarjeta */
.dh-promo-card {
    background-color: var(--color-superficie); /* Blanco o Negro según el modo */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 380px;
    width: 100%; /* Ocupa el ancho del slide */
    max-width: 300px; /* Límite para que no se vea gigante */
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.05);
}

.dh-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 2. Contenedor de la Imagen */
.dh-promo-card__imagen-contenedor {
    padding: 1rem;
    background-color: var(--color-fondo);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dh-promo-card__imagen-contenedor img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* La imagen se ve completa sin cortarse */
    max-height: 160px;
    transition: transform 0.3s ease;
}

.dh-promo-card:hover .dh-promo-card__imagen-contenedor img {
    transform: scale(1.05);
}

/* 3. Cuerpo de la Tarjeta */
.dh-promo-card__contenido {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.dh-promo-card__titulo {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: var(--color-texto-principal);
    /* Limitar a 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dh-promo-card__descripcion {
    font-size: 0.85rem;
    color: var(--color-texto-secundario);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4. Precios y SKU */
.dh-promo-card__info-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1rem;
    margin-top: auto; /* Empuja los precios hacia abajo */
}

.dh-promo-card__precio {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primario);
}

.dh-promo-card__precio-anterior {
    font-size: 0.9rem;
    color: #dc3545; /* Rojo */
    text-decoration: line-through;
}

.dh-promo-card__sku {
    font-size: 0.75rem;
    color: #999;
    margin-left: auto;
}

/* 5. Pie y Botón */
.dh-promo-card__pie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-fondo);
}

.dh-promo-card__familia {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-texto-secundario);
    text-transform: uppercase;
}

/* EL BOTÓN DE COTIZAR (IMPORTANTE) */
.dh-promo-card__btn-cotizar {
    display: inline-block;
    background-color: var(--color-primario);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dh-promo-card__btn-cotizar:hover {
    background-color: var(--color-primario-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* 6. Etiqueta de Oferta */
.dh-promo-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc3545;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
}

/* 7. Modo Oscuro Específico */
body.dark-mode .dh-promo-card {
    background-color: #2c2c2c;
    border-color: #444;
}
body.dark-mode .dh-promo-card__imagen-contenedor {
    background-color: #1e1e1e;
}


/* ======================================================= */
/* === ESTILOS GALERÍA ELEGANTE (PRESENCIA DE MARCA) === */
/* ======================================================= */

/* Variables locales para esta sección */
.galeria-marcas-container {
    --galeria-card-height-desktop: 450px;
    --galeria-card-height-mobile: 380px;
    --galeria-gap: 20px;
    position: relative;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
    overflow: hidden; /* Evita desbordamiento horizontal */
}

/* Wrapper deslizable (Scroll Snap) */
.galeria-wrapper {
    display: flex;
    gap: var(--galeria-gap);
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.galeria-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Tarjeta Individual */
.galeria-card {
    position: relative;
    flex: 1;
    min-width: 200px; /* Ancho mínimo en escritorio */
    max-width: 400px; /* Limitamos el ancho máximo */
    height: var(--galeria-card-height-desktop);
    border-radius: 16px;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
    scroll-snap-align: center;
    background-color: var(--color-superficie);
}

.galeria-card:hover {
    transform: translateY(-5px);
}

/* Imagen */
.galeria-card img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Llena a la fuerza */
}

/* Ajuste para modo oscuro si las imágenes tienen fondo transparente */
body.dark-mode .galeria-card img {
    background-color: #2c2c2c; /* O el color que prefieras */
}

.galeria-card:hover img {
    transform: scale(1.1);
}

/* Overlay y Texto */
.galeria-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
    /* Gradiente negro para legibilidad */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    color: #ffffff; /* Texto siempre blanco */
    text-align: left;
}

.galeria-card-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.galeria-card-desc {
    margin-top: 8px;
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

/* Botones de Navegación (Flechas) */
.galeria-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--color-texto-principal);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none; /* Oculto en desktop si no es necesario, o flex */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.galeria-nav-btn:hover {
    background-color: var(--color-primario);
    color: #fff;
}

.galeria-prev-btn { left: 10px; }
.galeria-next-btn { right: 10px; }

/* --- RESPONSIVIDAD --- */
@media (max-width: 992px) {
    /* En pantallas medianas y pequeñas mostramos las flechas */
    .galeria-nav-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .galeria-marcas-container {
        padding: 0; /* Aprovechar ancho completo */
    }
    
    .galeria-wrapper {
        padding: 10px 20px; /* Padding lateral para que se vea el inicio/fin */
        gap: 15px;
    }

    .galeria-card {
        min-width: 85%; /* Ocupa casi toda la pantalla en móvil */
        height: var(--galeria-card-height-mobile);
    }
    
    .galeria-card-title {
        font-size: 1.2rem;
    }
}


/* ======================================================= */
/* === NUEVO DISEÑO CLIENTES: TECH FLOTANTE + CARRUSEL === */
/* ======================================================= */

/* Contenedor Principal */
.seccion-socios {
    background-color: var(--color-fondo);
    overflow: hidden; 
    position: relative;
    padding: 4rem 0;
}

/* Wrapper de los iconos */
.clientes-wrapper-animado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Grid en escritorio */
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 1rem;
    box-sizing: border-box;
}

/* --- TARJETA INDIVIDUAL --- */
.cliente-card-tech {
    background: var(--color-superficie);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1; 
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    
    /* Animación de flotar suave en escritorio */
    animation: floatTech 6s ease-in-out infinite;
}

/* --- CORRECCIÓN DE COLORES Y BRILLO (Punto 3) --- */
.cliente-card-tech img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    
    /* COLOR ORIGINAL (Sin filtro grayscale) */
    filter: brightness(1); 
    opacity: 1;
    
    transition: transform 0.3s ease;
    
    /* Animación de "resplandor" sobre el color original */
    animation: glowEffect 3s infinite alternate;
}

/* Efecto Hover en escritorio */
.cliente-card-tech:hover {
    box-shadow: 0 10px 25px rgba(var(--color-primario-rgb), 0.2);
    border-color: var(--color-primario);
    z-index: 10;
    transform: scale(1.05);
}

/* --- ANIMACIONES --- */
@keyframes floatTech {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glowEffect {
    0% { 
        filter: brightness(1) drop-shadow(0 0 0 transparent); 
    }
    100% { 
        /* Aumenta el brillo y añade una sombra de luz del color primario */
        filter: brightness(1.2) drop-shadow(0 0 8px var(--color-primario)); 
    }
}

/* Retrasos para movimiento orgánico */
.cliente-card-tech:nth-child(odd) { animation-duration: 7s; }
.cliente-card-tech:nth-child(even) { animation-duration: 5s; animation-delay: 1s; }


/* --- SOLUCIÓN AL BUG DE DUPLICACIÓN (Punto 1) --- */
/* En escritorio, ocultamos los elementos que fueron clonados por JS */
.cliente-card-tech.cloned-item {
    display: none;
}


/* ======================================================= */
/* === VISTA MÓVIL: CARRUSEL INFINITO === */
/* ======================================================= */
@media (max-width: 768px) {
    .seccion-socios {
        padding: 2rem 0;
    }

    .clientes-wrapper-animado {
        display: flex; /* Flex para el carrusel */
        grid-template-columns: none;
        gap: 20px;
        padding: 20px 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        
        overflow-x: hidden; /* Ocultamos la barra de scroll fea */
        white-space: nowrap;
    }
    
    .cliente-card-tech {
        min-width: 120px; /* Tamaño fijo en móvil */
        height: 120px;
        flex-shrink: 0; 
        margin-bottom: 0; /* Reset de margenes */
    }

    /* En móvil, mostramos los clonados para que el carrusel sea infinito */
    .cliente-card-tech.cloned-item {
        display: flex; 
    }
}

/* ======================================================= */
/* === MODAL DE VISTA RÁPIDA DE PRODUCTO (CSS NECESARIO) === */
/* ======================================================= */

/* 1. Overlay (Fondo Oscuro) */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Oscuro y opaco */
    z-index: 5000; /* Alto z-index para estar sobre todo */
    display: none; /* Oculto por defecto, JS lo cambia a flex */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.product-modal-overlay.visible {
    opacity: 1;
}

/* 2. Contenido del Modal (La caja principal) */
.product-modal-content {
    background-color: var(--color-superficie);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    width: 95%; 
    max-width: 900px; 
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.product-modal-overlay.visible .product-modal-content {
    transform: scale(1);
}

/* 3. Bloqueo de Scroll del Cuerpo */
body.modal-open {
    overflow: hidden;
}

/* 4. Botón de Cerrar (X) */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--color-texto-principal);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5002;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background-color: var(--color-primario);
    color: #fff;
    transform: rotate(90deg);
}

/* 5. Estilos de Contenido (GRID Responsivo) */
.modal-product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* 2 columnas: Imagen y Detalles */
    gap: 2rem;
    padding: 3rem;
    padding-top: 1.5rem;
}

/* 6. Contenedor de Imagen */
.modal-image-container {
    padding: 1rem;
    background-color: var(--color-fondo);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* 7. Contenedor de Info y Tipografía */
.modal-info-container { padding-top: 1rem; }
.modal-titulo {
    font-size: 2rem; font-weight: 800; color: var(--color-texto-principal);
    margin-top: 0; margin-bottom: 0.5rem;
}
.modal-descripcion {
    color: var(--color-texto-secundario); line-height: 1.6;
    margin-bottom: 1.5rem;
}
.modal-price-sku {
    border-top: 1px solid var(--color-fondo); padding-top: 1rem;
    margin-bottom: 1.5rem; display: flex; flex-direction: column;
}
.modal-precio {
    font-size: 2.5rem; font-weight: 900; color: var(--color-primario);
    margin-bottom: 0.25rem;
}
.modal-sku { font-size: 0.9rem; color: #888; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.modal-tags span {
    background-color: var(--color-fondo); color: var(--color-texto-secundario);
    padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.85rem; font-weight: 600;
}
.modal-cotizar-info {
    margin-top: 1rem; font-size: 0.8rem; color: var(--color-texto-secundario);
}
.modal-cotizar-info a {
    color: var(--color-primario); text-decoration: underline;
}

/* 8. Estilo del BOTÓN SOLICITAR COTIZACIÓN (Ya modificado) */
.modal-boton-cotizar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 90%; background-color: #25D366; color: white !important;
    border: 2px solid #25D366; border-radius: 10px; padding: 15px 20px;
    font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
    text-decoration: none; letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.modal-boton-cotizar:hover {
    background-color: #128C7E; border-color: #128C7E; transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}
.modal-boton-cotizar:has(.fa-file-lines) {
    background-color: var(--color-primario); border-color: var(--color-primario);
    color: white !important; box-shadow: 0 4px 15px rgba(var(--color-primario-rgb), 0.4);
}
.modal-boton-cotizar:has(.fa-file-lines):hover {
    background-color: var(--color-superficie); color: var(--color-primario) !important;
    border-color: var(--color-primario);
}

/* 9. Responsividad del Modal (Móvil) */
@media (max-width: 768px) {
    .modal-product-detail-grid {
        grid-template-columns: 1fr; padding: 2rem 1.5rem; padding-top: 1.5rem; gap: 1rem;
    }
    .modal-titulo { font-size: 1.5rem; }
    .modal-precio { font-size: 2rem; }
    .modal-boton-cotizar { font-size: 1rem; padding: 0.8rem; gap: 0.5rem; width: 100%; }
    .modal-image-container { height: 250px; }
    .product-modal-content { max-height: 90vh; overflow-y: auto; }
}

/* --- ESTILOS PARA MODO OSCURO (Aseguramos el contraste) --- */
body.dark-mode .product-modal-content {
    background-color: #1e1e1e;
}
body.dark-mode .modal-close-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-texto-principal);
}
body.dark-mode .modal-tags span {
    background-color: #2c2c2c;
    color: #ccc;
}
body.dark-mode .modal-image-container {
    background-color: #2c2c2c;
}