/* =========================================== */
/* HOJA DE ESTILOS - DMC INDUSTRIAL            */
/* =========================================== */

/* 1. VARIABLES Y CONFIGURACIÓN GLOBAL */
:root {
    --verde-dmc: #0b6324;
    --verde-brillante: #2ecc71;
    --negro-dmc: #000000;
    --blanco: #ffffff;
    --gris-oscuro: #1a1a1a;
    --gris-suave: #f4f4f4;
    --gris-medio: #dcdcdc;
    --azul-celeste: #5bc0de;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--blanco);
    color: var(--negro-dmc);
    line-height: 1.6;
}

/* 2. CLASES UTILITARIAS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 120px 5%;
    text-align: center;
}

.grey-bg {
    background-color: var(--gris-suave);
}

.text-green {
    color: var(--verde-brillante);
}

.badge {
    background: var(--verde-dmc);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}
/* 3. NAVEGACIÓN */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999; /* Máxima prioridad para que nada lo tape */
    transition: all 0.3s ease;
}

/* Ajuste específico para el contenedor del logo */
.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10000; /* Por encima de la navbar */
}

.logo a {
    display: block !important;
    line-height: 0;
    cursor: pointer !important;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    pointer-events: auto; /* Permite que el clic pase al enlace */
}

/* Barra de búsqueda - Aseguramos que no se encime al logo */
.search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 30px;
    position: relative;
    z-index: 1; 
}

.search-form {
    width: 100%;
    max-width: 500px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #b2f2bb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #7f8c8d;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--verde-brillante);
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.2);
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #7f8c8d;
    font-size: 1rem;
    pointer-events: none;
}

/* Sugerencias Dinámicas */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--blanco);
    border: 1px solid #b2f2bb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #f1fff4;
}

.suggestion-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 15px;
    background: #fff;
    border-radius: 4px;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.suggestion-code {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--verde-dmc);
}

.suggestion-name {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enlaces de navegación */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 10000;
}

.nav-link {
    text-decoration: none;
    color: var(--negro-dmc);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 5px 0;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active:not(.btn-contacto) {
    color: var(--verde-dmc);
    border-bottom: 3px solid var(--verde-dmc);
}

.btn-contacto {
    border: 2px solid var(--verde-dmc);
    padding: 8px 18px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-contacto:hover,
.btn-contacto.active {
    background: var(--verde-dmc);
    color: var(--blanco) !important;
}
/* 4. SECCIÓN HERO */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--blanco);
    text-align: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    z-index: 1;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons a {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--verde-dmc);
    color: var(--blanco);
}

.btn-primary:hover {
    background: #084d1c;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 2px solid var(--blanco);
    color: var(--blanco);
}

.btn-secondary:hover {
    background: var(--blanco);
    color: var(--negro-dmc);
    transform: translateY(-3px);
}
/* 5. SECCIÓN MARCAS */
.marcas-section {
    padding: 60px 5%;
    background: var(--blanco);
}

.marcas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

/* ... (tus estilos de h2 y btn-ver-marcas están perfectos) ... */

.marcas-container {
    overflow: hidden;
    padding: 20px 0;
    /* Añadimos una máscara para que los logos se desvanezcan a los lados (opcional pero se ve pro) */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marcas-track {
    display: flex;
    /* Ajuste: 250px por los 12 items (6 originales + 6 duplicados) */
    width: calc(250px * 12); 
    animation: scrollMarcas 25s linear infinite;
}

.marca-item {
    width: 250px; /* Mantener ancho fijo es clave */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Evita que los logos se encojan */
}

.marca-item img {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marca-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1); /* Un pequeño zoom al pasar el mouse */
}

@keyframes scrollMarcas {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Ajuste: Se mueve la mitad exacta del ancho total (250px * 6 logos) */
        transform: translateX(calc(-250px * 6));
    }
}

/* Pausar al pasar el mouse para que el cliente pueda ver bien una marca */
.marcas-container:hover .marcas-track {
    animation-play-state: paused;
}
/* 6. CARRUSEL NOSOTROS */
.about-carousel {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.slide.active {
    opacity: 1;
    z-index: 3;
}

.slide-content {
    position: relative;
    z-index: 4;
    color: var(--blanco);
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin: 15px 0;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 5;
}

.carousel-controls button {
    background: var(--negro-dmc);
    color: var(--blanco);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.carousel-controls button:hover {
    background: var(--verde-dmc);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. SECCIÓN PRODUCTOS */
.subtitulo-categoria {
    font-size: 1.8rem;
    color: #333;
    border-left: 5px solid var(--verde-dmc);
    padding-left: 15px;
    margin-bottom: 20px;
    font-weight: bold;
}

.categoria-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.categoria-header .badge {
    background: #f0f0f0;
    color: #666;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 12px;
}

/* --- CARRUSEL DE PRODUCTOS (Para PLC, Pantallas, Sensores y Fuentes) --- */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 40px;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .producto-card {
    min-width: 260px;
    max-width: 290px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* --- GRID PARA RELES (Aparición uno al lado del otro sin carrusel) --- */
.productos-grid-simple {
    display: grid;
    /* Crea columnas automáticas y las centra */
    grid-template-columns: repeat(auto-fit, 290px); 
    gap: 25px;
    padding: 20px 0;
    justify-content: center; /* Centra los dos productos en la pantalla */
    margin-bottom: 40px;
}

.btn-carousel {
    background: var(--verde-dmc);
    color: var(--blanco);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.btn-carousel:hover {
    background: var(--verde-brillante);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- TARJETAS DE PRODUCTO --- */
.producto-card {
    background: var(--blanco);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    width: 100%; /* El grid controla el ancho */
    max-width: 290px;
    height: 420px;
    position: relative;
}

.producto-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Sombra más fuerte al pasar el mouse */
    border-color: #0056b3; /* Color azul ALMPLUS al hover */
    transform: translateY(-8px);
}

.producto-card .img-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.producto-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.producto-card:hover img {
    transform: scale(1.1);
}

.producto-card .marca-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.producto-card .codigo-label {
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.producto-card h3 {
    font-size: 0.9rem;
    color: var(--negro-dmc);
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1;
    min-height: 3.8em;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-cotizar {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--verde-dmc);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    min-height: 40px;
}

.btn-cotizar:hover {
    background: #25d366; /* Color WhatsApp al hover */
    color: var(--blanco);
    border-color: #25d366;
    transform: translateY(-2px);
}

/* Mensajes de estado */
.cargando-productos,
.no-results,
.error-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    width: 100%;
    grid-column: 1 / -1;
}

.error-message {
    color: #e74c3c;
    background: #ffeaea;
    border-radius: 5px;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.cargando-productos p {
    animation: pulse 1.5s infinite;
}

/* 8. FORMULARIO DE CONTACTO */
.form-wrapper {
    max-width: 700px;
    margin: 40px auto;
    background: var(--gris-medio);
    padding: 40px;
    position: relative;
    border-radius: 4px;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid var(--gris-medio);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #444;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.phone-input-container {
    display: flex;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: var(--blanco);
    overflow: hidden;
}

.country-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    padding: 0 15px;
    border-right: 1px solid #ccc;
    font-weight: bold;
    color: #555;
}

.phone-input-container input {
    border: none;
    flex: 1;
    padding: 12px;
}

.form-checkbox {
    margin: 20px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-enviar-custom {
    background: var(--azul-celeste);
    color: var(--blanco);
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-enviar-custom:hover {
    background: #46b8da;
    letter-spacing: 2px;
}

.form-disclaimer {
    margin-top: 20px;
    font-size: 0.7rem;
    color: #777;
    line-height: 1.4;
}

/* 9. FOOTER */
.main-footer {
    background-color: var(--gris-oscuro);
    color: var(--blanco);
    padding: 60px 5% 20px;
    border-top: 4px solid var(--verde-dmc);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info p {
    font-size: 0.9rem;
    color: #bbb;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--verde-brillante);
}

.footer-location {
    margin-top: 20px;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.location-btn i {
    color: var(--verde-brillante);
    font-size: 1.2rem;
}

.location-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--verde-dmc);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #333;
    color: var(--blanco);
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons .icon-facebook:hover {
    background: #3b5998;
    transform: translateY(-5px);
}

.social-icons .icon-whatsapp:hover {
    background: #25d366;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #777;
}

/* 10. RESPONSIVIDAD */
@media (max-width: 1024px) {
    .search-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 5%;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .carousel-wrapper {
        gap: 10px;
    }
    
    .btn-carousel {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-track .producto-card {
        min-width: 250px;
    }

    .producto-card {
        min-width: 240px;
        max-width: 270px;
        height: 400px;
        padding: 18px;
    }
    
    .producto-card .img-container {
        height: 160px;
    }
    
    .producto-card h3 {
        min-height: 3.6em;
    }
    
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .about-carousel {
        height: 70vh;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-info p {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        gap: 5px;
    }
    
    .btn-carousel {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-track .producto-card {
        min-width: 220px;
    }

    .producto-card {
        min-width: 220px;
        max-width: 250px;
        height: 380px;
        padding: 15px;
    }
    
    .producto-card .img-container {
        height: 140px;
    }
    
    .producto-card h3 {
        font-size: 0.85rem;
        min-height: 3.4em;
    }
    
    .btn-cotizar {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-height: 36px;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-carousel {
        height: 60vh;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 250px;
    }
}
/* ============================================
   RESPONSIVE - MENÚ MÓVIL
   ============================================ */

/* 1. Estilos base del botón (oculto por defecto en PC) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* 2. Media Query para Celulares (Pantallas menores a 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Aparece en móviles */
        z-index: 1001;
    }

    /* Escondemos el menú normal y lo preparamos para el despliegue */
    .nav-links {
        position: fixed;
        right: -100%; /* Empieza fuera de la pantalla */
        top: 0;
        height: 100vh;
        width: 70%; /* Ocupa el 70% del ancho */
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* Cuando el menú tenga la clase .active (vía JS), se desliza hacia adentro */
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    /* Ocultar el buscador en móvil si el header se ve muy apretado */
    .search-container {
        display: none; 
    }
}
/* Estilos del Modal */
.modal-dmc {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: #1a1a1a;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #2ecc71;
}

.modal-body { padding: 20px; max-height: 400px; overflow-y: auto; }

/* Items del carrito */
.item-carrito {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.item-info { flex-grow: 1; }
.item-info h4 { font-size: 0.9rem; margin-bottom: 5px; }

.controles-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f1f1;
    border-radius: 5px;
    padding: 5px;
}

.btn-qty {
    background: white;
    border: 1px solid #ddd;
    width: 25px; height: 25px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
}

.btn-del { color: #e74c3c; cursor: pointer; margin-left: 10px; }

.modal-footer { padding: 20px; background: #f9f9f9; border-top: 1px solid #eee; }

.total-container {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.btn-confirmar {
    width: 100%;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}
/* Altura limitada para scroll si hay más de 3 productos */
.modal-body { 
    max-height: 380px; /* Ajustado para que quepan ~3 productos cómodamente */
    overflow-y: auto; 
    padding: 10px 20px;
}

/* Estilo del Switch de Factura */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-round { background-color: var(--dmc-green); }
input:checked + .slider-round:before { transform: translateX(24px); }

.label-factura {
    font-weight: bold;
    font-size: 0.9rem;
    color: #444;
}