/* --- Variables, Globales, etc. --- */
:root {
    --color-marca-principal: #fcd34d;
    --color-fondo-oscuro: #0b0b0f;
    --color-fondo-claro: #ffffff;
    --color-fondo-gris: #f5f5f5;
    --color-fondo-gris-oscuro: #1a1a1a;
    --color-texto-claro: #ffffff;
    --color-texto-oscuro: #000000;
    --color-texto-secundario: #555;
    --color-texto-apagado: #888;
    --color-alerta: #ff4d4d; /* Usado para errores */
    --color-exito: #4CAF50;
    --color-exito-icono: #4ade80;
    --color-borde-claro: #e0e0e0;
    --color-borde-oscuro: #ddd;

    --fuente-principal: 'Poppins', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fuente-principal); background-color: var(--color-fondo-oscuro); color: var(--color-texto-claro); padding-top: 85px; overflow-x: hidden; }
/* --- Top Banner, Header, Search, Sidebar --- */
.top-banner { background-color: var(--color-marca-principal); color: var(--color-texto-oscuro); padding: 8px 0; font-weight: 500; font-size: 14px; width: 100%; overflow: hidden; position: fixed; top: 0; left: 0; z-index: 1001; white-space: nowrap; }
.top-banner strong { font-weight: 700; }
.top-banner .marquee-content i { font-size: 12px; vertical-align: middle; }
.marquee-content { display: inline-block; animation: marquee-scroll 30s linear infinite; padding-left: 100%; }
.marquee-content span { margin-right: 40px; }
@keyframes marquee-scroll { from { transform: translateX(0%); } to { transform: translateX(-100%); } }
#main-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; width: 100%; position: fixed; left: 0; z-index: 1000; background-color: transparent; color: var(--color-texto-claro); transition: background-color 0.3s ease, color 0.3s ease, top 0.3s ease; }
#main-header .header-left button { background: none; border: none; padding: 0; margin: 0; font-family: inherit; color: inherit; font-size: inherit; cursor: pointer; line-height: 1; }
#main-header.sticky { background-color: var(--color-fondo-claro); color: var(--color-texto-oscuro); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); z-index: 1000; }
#main-header .header-left, #main-header .header-right { display: flex; align-items: center; gap: 20px; font-size: 20px; cursor: pointer; }
#main-header .header-left { flex-basis: 80px; justify-content: flex-start; }
#main-header .header-right { flex-basis: 80px; justify-content: flex-end; position: relative; }
#main-header .header-center { flex-grow: 1; display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; min-width: 0; }
#main-header .brand-logo { font-weight: 700; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
#main-header .header-logo { height: 24px; width: auto; vertical-align: middle; }
#main-header .fa-cart-shopping { font-weight: 900; }
#main-header .cart-count { position: absolute; top: -7px; right: -10px; background-color: var(--color-marca-principal); color: var(--color-texto-oscuro); border-radius: 50%; width: 18px; height: 18px; font-size: 12px; font-weight: 700; display: none; justify-content: center; align-items: center; pointer-events: none; }
#search-input-container { position: fixed; left: 0; width: 100%; background-color: var(--color-fondo-claro); padding: 15px 20px; z-index: 999; display: none; flex-direction: row; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
#search-input-container.visible { display: flex; }
#search-input { width: 80%; max-width: 400px; padding: 10px 15px; border: 1px solid var(--color-borde-oscuro); border-radius: 5px; background-color: var(--color-fondo-gris); color: #333; font-size: 16px; }
#search-input::placeholder { color: var(--color-texto-apagado); }
#search-submit-btn { color: #333; font-size: 20px; margin-left: 15px; cursor: pointer; transition: color 0.3s; }
#search-submit-btn:hover { color: var(--color-marca-principal); }
.sidebar { height: 100%; width: 0; position: fixed; z-index: 1002; top: 0; left: 0; background-color: var(--color-fondo-gris-oscuro); overflow-x: hidden; transition: 0.5s; padding-top: 60px; box-shadow: 2px 0 5px rgba(0,0,0,0.5); }
.sidebar a { padding: 15px 25px 15px 35px; text-decoration: none; font-size: 20px; color: #f1f1f1; display: block; transition: 0.3s; }
.sidebar a:hover { color: var(--color-marca-principal); background-color: #333; }
.sidebar .closebtn { background: none; border: none; padding: 0; margin: 0; font-family: inherit; color: #f1f1f1; cursor: pointer; line-height: 1; position: absolute; top: 0; right: 25px; font-size: 36px; margin-left: 50px; transition: 0.3s; }
.sidebar .closebtn:hover { color: var(--color-marca-principal); }

/* --- Slider --- */
.slider-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background-color: rgba(30, 30, 30, 0.3); color: var(--color-texto-claro); border: none; border-radius: 50%; width: 45px; height: 45px; font-size: 18px; cursor: pointer; transition: background-color 0.3s ease; line-height: 45px; }
.slider-arrow:hover { background-color: rgba(0, 0, 0, 0.5); }
.slider-arrow.left { left: 20px; }
.slider-arrow.right { right: 20px; }
.desktop-nav { display: none; }
.slider-container { position: relative; height: 80vh; width: 100%; overflow: hidden; background-color: var(--color-texto-oscuro); margin-top: 0; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding-top: 10vh; }
.slide.active { opacity: 1; }
.background-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); z-index: 1; }
.projector-image { position: absolute; left: 50%; transform: translateX(-50%); width: 50%; max-width: 250px; height: auto; object-fit: contain; z-index: 2; }
.projector-position-offset-1 { top: 70%; transform: translate(-50%, -50%); } .projector-position-offset-2 { top: 60%; transform: translate(-50%, -50%); } .projector-position-offset-3 { top: 65%; transform: translate(-50%, -50%); } .projector-position-offset-4 { top: 65%; transform: translate(-50%, -50%); } .projector-position-offset-5 { top: 70%; transform: translate(-50%, -50%); }
.slide-content { position: relative; z-index: 3; color: var(--color-texto-claro); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); padding: 0 20px; max-width: 90%; margin-bottom: auto; }
.slide-content p { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.slide-content h2 { font-weight: 900; text-transform: uppercase; margin: 0 0 8px 0; font-size: clamp(1.8rem, 5vw, 2.25rem); }
.btn-main { background-color: var(--color-fondo-claro); color: var(--color-texto-oscuro); border: none; padding: 10px 20px; font-family: var(--fuente-principal); font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 10px; border-radius: 4px; text-transform: uppercase; }
.slider-pagination { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.pagination-line { width: 35px; height: 4px; background-color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: background-color 0.3s ease; }
.pagination-line.active { background-color: var(--color-texto-claro); }

/* --- Features, Flash Sale, Categories, Grid, Card --- */
.features-section { background-color: var(--color-fondo-claro); color: #333; padding: 25px 10px; display: flex; justify-content: space-around; align-items: flex-start; flex-wrap: nowrap; gap: 5px; border-bottom: 1px solid var(--color-borde-claro); margin-bottom: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 0 0 24%; max-width: 24%; box-sizing: border-box; padding: 0 5px; }
.feature-item i { font-size: 20px; color: var(--color-texto-oscuro); margin-bottom: 3px; }
.feature-item p { font-size: 9px; font-weight: 600; line-height: 1.1; text-transform: capitalize; }
.flash-sale-timer-section { background-color: var(--color-fondo-claro); color: var(--color-texto-oscuro); padding: 20px 0; text-align: center; margin-bottom: 0; }
.flash-sale-timer-section h3 { font-size: 16px; font-weight: 500; text-transform: uppercase; margin-bottom: 15px; }
.countdown-timer { display: flex; justify-content: center; gap: 15px; font-weight: 900; margin-bottom: 10px; }
.countdown-item { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.countdown-item span:first-child { font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.25rem); }
.countdown-item span:last-child { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-top: 5px; }
.product-categories { background-color: var(--color-fondo-claro); padding: 15px 20px 0; border-bottom: 1px solid var(--color-borde-claro); margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
.category-list { display: flex; justify-content: flex-start; gap: 25px; list-style: none; padding: 0; margin: 0; }
.category-item { position: relative; padding-bottom: 10px; }
.category-item a { color: #666; text-decoration: none; font-size: 14px; font-weight: 600; text-transform: uppercase; transition: color 0.3s ease; }
.category-item a:hover { color: var(--color-texto-oscuro); }
.category-item.active a { color: var(--color-texto-oscuro); }
.category-item.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--color-marca-principal); }
.product-grid { background-color: var(--color-fondo-claro); padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 80px; color: var(--color-texto-oscuro); }
.product-card { background-color: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px; text-align: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); display: flex; flex-direction: column; justify-content: space-between; }
.product-card .product-img { max-width: 100%; height: 120px; object-fit: contain; margin-bottom: 10px; }
.product-card .product-description { font-size: 11px; color: #777; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.product-card .product-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.product-card .product-img, .product-card .product-description, .product-card .product-name { cursor: pointer; }
.product-card .product-price { margin-bottom: 10px; font-size: 13px; white-space: nowrap; display: flex; justify-content: center; align-items: baseline; }
.product-card .product-price .current-price { font-weight: 700; color: var(--color-alerta); margin-right: 5px; font-size: 14px; }
.product-card .product-price .old-price { text-decoration: line-through; color: #999; font-size: 11px; }
.product-actions { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: auto; }
.product-actions .btn-buy { background-color: var(--color-marca-principal); color: var(--color-texto-oscuro); border: none; padding: 8px 15px; font-family: var(--fuente-principal); font-size: 12px; font-weight: 600; border-radius: 4px; cursor: pointer; text-transform: uppercase; }
.product-actions .btn-cart { background-color: transparent; border: none; color: transparent; -webkit-text-stroke: 1px var(--color-texto-oscuro); text-stroke: 1px var(--color-texto-oscuro); width: 35px; height: 35px; border-radius: 4px; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 18px; }
.product-actions .btn-cart i { color: var(--color-texto-oscuro); }
@supports (-webkit-text-stroke: 1px black) or (text-stroke: 1px black) { .product-actions .btn-cart i { color: transparent; } }

/* --- Modal Carrito --- */
.cart-modal { display: none; position: fixed; z-index: 1003; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.cart-modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border: 1px solid var(--color-texto-apagado); width: 90%; max-width: 500px; border-radius: 8px; color: #333; position: relative; animation-name: animatetop; animation-duration: 0.4s }
@keyframes animatetop { from {top: -300px; opacity: 0} to {top: 10%; opacity: 1} }
.cart-modal-content h3 { text-align: center; margin-bottom: 15px; color: var(--color-texto-oscuro); }
.cart-selection-controls { padding-bottom: 10px; margin-bottom: 15px; border-bottom: 1px solid #eee; font-size: 14px; font-weight: 500; }
.cart-selection-controls label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cart-selection-controls input[type="checkbox"], .cart-item-select input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-marca-principal); cursor: pointer; }

/* --- Ajustes layout item carrito MÓVIL --- */
.cart-item {
    display: flex;
    /* align-items: center; */ /* Cambiado a flex-start para alinear arriba */
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-select {
    flex-shrink: 0;
    margin-right: 10px;
    display: flex;
    align-items: center;
    height: 60px; /* Alinea checkbox con imagen */
}

.cart-item-info {
    display: flex;
    /* align-items: center; */ /* Cambiado a flex-start */
    align-items: flex-start;
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
}
.cart-item-info img { width: 60px; height: 60px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; flex-shrink: 0; }

.cart-item-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
    /* Añadido para que los botones se peguen debajo */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el precio y acciones hacia abajo */
    min-height: 60px; /* Asegura altura mínima igual a la imagen */
}

/*
========================================
--- INICIO DE LA MODIFICACIÓN (CSS) ---
========================================
*/
.cart-item-details h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    
    /* Estas 3 líneas se han modificado para permitir el salto de línea */
    white-space: normal;  /* ANTES: nowrap */
    overflow: visible;    /* ANTES: hidden */
    text-overflow: clip;    /* ANTES: ellipsis */

    display: block;
}
/*
======================================
--- FIN DE LA MODIFICACIÓN (CSS) ---
======================================
*/

.cart-item-details p {
    font-size: 12px;
    color: #777;
    margin: 0;
    display: block;
    margin-bottom: 5px; /* Pequeño espacio sobre los botones */
}

/* ========================================
--- INICIO DE LA MODIFICACIÓN (CSS) ---
(Alineación botones carrito móvil)
========================================
*/
.cart-item-actions {
    display: flex;
    align-items: center; /* Centra verticalmente los botones */
    gap: 8px;
    height: 60px; /* Iguala la altura del contenedor del checkbox */
    justify-content: flex-start;
    margin-left: auto; /* Empuja el bloque de botones a la derecha */
}
/* ======================================
--- FIN DE LA MODIFICACIÓN (CSS) ---
======================================
*/

.cart-item-actions button { background-color: var(--color-marca-principal); border: none; padding: 5px 8px; border-radius: 4px; cursor: pointer; font-weight: 700; font-size: 14px; }
.cart-item-actions span { font-weight: 600; font-size: 14px; min-width: 15px; text-align: center; }
.cart-item-actions .remove-item-btn { background-color: var(--color-alerta); color: var(--color-texto-claro); padding: 5px 10px; font-size: 14px; line-height: 1; }

.cart-total { text-align: right; font-size: 16px; font-weight: 700; margin-top: 20px; padding-top: 15px; border-top: 2px solid var(--color-marca-principal); color: var(--color-texto-oscuro); }
.cart-total span { color: var(--color-alerta); }
.close-modal-btn { color: var(--color-texto-apagado); float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-modal-btn:hover, .close-modal-btn:focus { color: var(--color-texto-oscuro); text-decoration: none; cursor: pointer; }
#checkout-from-cart-btn { display: block; width: 100%; background-color: var(--color-marca-principal); color: var(--color-texto-oscuro); border: none; padding: 12px 20px; font-family: var(--fuente-principal); font-size: 14px; font-weight: 700; border-radius: 4px; cursor: pointer; text-transform: uppercase; margin-top: 15px; text-align: center; }

/* --- Modal Producto --- */
/* (Sin cambios) */
.product-modal { display: none; position: fixed; z-index: 1005; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: rgba(0,0,0,0.7); }
.product-modal-content { position: absolute; bottom: 0; left: 0; width: 100%; max-height: 90vh; background-color: var(--color-fondo-claro); color: #333; border-top-left-radius: 20px; border-top-right-radius: 20px; box-shadow: 0 -5px 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; animation-name: slideUp; animation-duration: 0.4s; overflow-y: auto; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.close-product-modal-btn { color: var(--color-texto-apagado); position: absolute; top: 15px; right: 20px; font-size: 32px; font-weight: bold; cursor: pointer; z-index: 10; }
.close-product-modal-btn:hover { color: var(--color-texto-oscuro); }
.product-modal-thumbnails { display: none; }
.product-modal-main-image { position: relative; width: 100%; background-color: #f9f9f9; overflow: hidden; border-top-left-radius: 20px; border-top-right-radius: 20px; height: 300px; flex-shrink: 0; }
.product-modal-main-image .product-image-wrapper { display: flex; transition: transform 0.3s ease-in-out; height: 100%; }
.product-modal-main-image .product-slider-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.product-modal-main-image .product-slider-dot { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(0, 0, 0, 0.3); cursor: pointer; transition: background-color 0.3s ease; }
.product-modal-main-image .product-slider-dot.active { background-color: var(--color-texto-oscuro); }
.product-modal-image { width: 100%; height: 100%; object-fit: contain; flex-shrink: 0; cursor: zoom-in; }
.product-detail-content { padding: 20px; position: relative; }
#product-modal-name { font-weight: 700; color: var(--color-texto-oscuro); line-height: 1.3; margin-bottom: 10px; font-size: clamp(1.1rem, 4vw, 1.25rem); }
.product-modal-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
#product-modal-current-price { font-weight: 700; color: var(--color-alerta); font-size: clamp(1.25rem, 4vw, 1.5rem); }
#product-modal-old-price { font-size: 16px; font-weight: 500; color: #999; text-decoration: line-through; }
.product-modal-actions { display: flex; gap: 10px; margin-bottom: 20px; }
#product-modal-buy { flex-grow: 1; background-color: var(--color-marca-principal); color: var(--color-texto-oscuro); border: none; padding: 12px 20px; font-family: var(--fuente-principal); font-size: 14px; font-weight: 700; border-radius: 5px; cursor: pointer; text-transform: uppercase; }
#product-modal-cart { flex-shrink: 0; background-color: #f0f0f0; border: none; color: var(--color-texto-oscuro); width: 50px; height: 50px; border-radius: 5px; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 20px; }
.product-modal-description-wrapper { border-top: 1px solid #eee; padding-top: 15px; }
 .product-modal-description-wrapper h4 { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 10px; }
#product-modal-description { font-size: 14px; color: var(--color-texto-secundario); line-height: 1.6; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
#product-modal-description span:nth-child(odd) { font-weight: 700; color: var(--color-texto-oscuro); }
#product-modal-description span:nth-child(even) { /* Hereda el color */ }
#product-modal-description p.desc-bloque-texto { grid-column: 1 / -1; margin: 10px 0; }
#product-modal-description img { max-width: 100% !important; height: auto; display: block; margin: 15px auto !important; border-radius: 8px !important; grid-column: 1 / -1; cursor: zoom-in; }
.modal-scroll-top-btn { display: none; position: fixed; bottom: 20px; right: 20px; background-color: var(--color-marca-principal); color: var(--color-texto-oscuro); border: none; width: 45px; height: 45px; border-radius: 50%; font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.2); z-index: 1006; transition: opacity 0.3s, transform 0.3s; }
.modal-scroll-top-btn:hover { transform: scale(1.1); }

/* --- Secciones Nosotros, Contacto, Acordeón, Bottom Nav, Toast, Checkout, Success, Lightbox --- */
/* (Sin cambios) */
#about-us, #contact-us { display: none; background-color: var(--color-fondo-claro); color: #333; padding: 40px 20px; text-align: center; margin-bottom: 80px; padding-top: 20px; }
#about-us.visible, #contact-us.visible { display: block; }
#about-us h2, #contact-us h2 { font-size: 24px; margin-bottom: 15px; color: var(--color-texto-oscuro); }
#about-us p, #contact-us p { font-size: 15px; line-height: 1.6; max-width: 800px; margin: 0 auto 25px auto; color: var(--color-texto-secundario); }
.contact-icons { display: flex; justify-content: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.contact-icons a { color: #333; font-size: 24px; transition: color 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; }
.contact-icons a:hover { color: var(--color-marca-principal); }
.contact-icons span { font-size: 16px; vertical-align: middle; margin-left: 5px; font-weight: 500; }
.close-section-btn { display: block; margin: 20px auto 0; padding: 8px 15px; background-color: var(--color-marca-principal); color: var(--color-texto-oscuro); border: none; border-radius: 5px; cursor: pointer; font-weight: 600; }
.faq-container { max-width: 800px; margin: 25px auto; text-align: left; }
.collapsible-item { background-color: #f9f9f9; border-radius: 8px; margin-bottom: 10px; border: 1px solid #eee; }
.collapsible-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; cursor: pointer; font-weight: 600; font-size: 16px; color: #333; }
.collapsible-icon { transition: transform 0.3s ease; font-size: 18px; }
.collapsible-header.active .collapsible-icon { transform: rotate(45deg); }
.collapsible-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; padding: 0 20px; background-color: var(--color-fondo-claro); font-size: 15px; color: var(--color-texto-secundario); line-height: 1.6; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.collapsible-content .warranty-content { padding: 15px 0px; }
.collapsible-content p { margin-bottom: 15px; }
.collapsible-content ul { list-style-position: inside; padding-left: 10px; margin-bottom: 15px; }
 .collapsible-content li { margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid #f0f0f0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; cursor: pointer; font-weight: 500; color: #444; font-size: 15px; }
.faq-icon { transition: transform 0.3s ease; font-size: 14px; color: #666; }
.faq-question.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; font-size: 14px; color: #666; line-height: 1.5; }
.faq-answer p { padding-bottom: 15px; }
.bottom-nav { display: flex; justify-content: space-around; align-items: center; position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--color-fondo-claro); color: #333; border-top: 1px solid var(--color-borde-claro); padding: 10px 0; z-index: 1000; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05); }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 500; color: #333; cursor: pointer; }
.bottom-nav-item i { font-size: 20px; margin-bottom: 4px; color: #333; }
#toast-notification { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background-color: rgba(40, 40, 40, 0.95); color: var(--color-texto-claro); padding: 12px 20px; border-radius: 25px; z-index: 2000; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.4s ease, bottom 0.4s ease; pointer-events: none; white-space: nowrap; }
#toast-notification.show { opacity: 1; bottom: 110px; }
#toast-notification i { color: var(--color-exito-icono); font-size: 16px; }
.checkout-modal { display: none; position: fixed; z-index: 1004; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); }
.checkout-modal-content { background-color: var(--color-fondo-claro); color: #333; margin: 5% auto 15% auto; padding: 25px; border: 1px solid var(--color-texto-apagado); width: 95%; max-width: 600px; border-radius: 8px; position: relative; animation-name: animatetop-checkout; animation-duration: 0.4s; }
@keyframes animatetop-checkout { from {top: -300px; opacity: 0} to {top: 5%; opacity: 1} }
.checkout-modal-content h3 { text-align: center; margin-bottom: 25px; color: var(--color-texto-oscuro); font-weight: 700; }
.close-checkout-modal-btn { color: var(--color-texto-apagado); float: right; font-size: 32px; font-weight: bold; cursor: pointer; line-height: 1; }
.close-checkout-modal-btn:hover, .close-checkout-modal-btn:focus { color: var(--color-texto-oscuro); }
#checkout-form { display: flex; flex-direction: column; gap: 15px; }
.checkout-input-group { display: flex; flex-direction: column; width: 100%; }
.checkout-input-group label { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 5px; }
.checkout-input-group input[type="text"], .checkout-input-group input[type="tel"], .checkout-input-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--color-borde-oscuro); border-radius: 5px; background-color: var(--color-fondo-gris); color: #333; font-size: 15px; font-family: var(--fuente-principal); }
.checkout-input-group textarea { min-height: 80px; resize: vertical; } /* Restaurado */
.shipping-options-container { border: 1px solid #eee; border-radius: 5px; padding: 15px; background-color: #fcfcfc; }
.radio-group { display: flex; gap: 20px; margin-bottom: 15px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; cursor: pointer; }
.radio-group input[type="radio"] { accent-color: var(--color-marca-principal); }
.shipping-details { display: none; padding-top: 15px; border-top: 1px dashed var(--color-borde-oscuro); }
.shipping-details h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--color-texto-oscuro); }
.shipping-details .agency-list { display: flex; flex-direction: column; gap: 10px; }
.shipping-details .agency-list label { font-size: 15px; font-weight: 400; display: flex; align-items: center; gap: 8px; }
.shipping-details-title { font-size: 13px; font-weight: 600; color: var(--color-texto-secundario); margin: 10px 0 8px 0; text-transform: uppercase; }
 .shipping-details-title small { font-weight: 500; color: #008a00; }
 .shipping-details-title small.paga-cliente { color: #c40000; }
#agency-other-input { display: none; margin-top: 10px; }
#agency-select-btn, #home-agency-select-btn { width: 100%; background-color: var(--color-fondo-gris); border: 1px solid var(--color-borde-oscuro); border-radius: 5px; padding: 12px 15px; font-family: var(--fuente-principal); font-size: 15px; color: #333; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
#agency-select-btn::after, #home-agency-select-btn::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 14px; }
#agency-dropdown, #home-agency-dropdown { display: none; border: 1px solid var(--color-borde-oscuro); border-radius: 5px; background-color: var(--color-fondo-claro); margin-top: 5px; max-height: 250px; overflow-y: auto; z-index: 1005; position: relative; }
#agency-dropdown .agency-list, #home-agency-dropdown .agency-list { padding: 15px; }
#agency-dropdown .agency-list label, #home-agency-dropdown .agency-list label { padding: 5px 0; }
#checkout-product-list { border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 15px 0; display: flex; flex-direction: column; gap: 10px; max-height: 150px; overflow-y: auto; }
.checkout-product-item { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.checkout-product-item .product-info { display: flex; align-items: center; gap: 10px; }
.checkout-product-item img { width: 45px; height: 45px; object-fit: contain; border-radius: 4px; border: 1px solid #eee; }
.checkout-product-item .product-details { line-height: 1.3; }
 .checkout-product-item .product-details span { font-weight: 600; color: var(--color-texto-oscuro); }
 .checkout-product-item .product-details small { font-size: 12px; color: var(--color-texto-secundario); }
.checkout-product-item .product-price { font-weight: 600; color: #333; white-space: nowrap; margin-left: 10px; }
.payment-instructions { font-size: 13px; color: var(--color-texto-secundario); text-align: center; margin: 5px 0 10px 0; }
.payment-icons { display: flex; justify-content: center; gap: 15px; margin-bottom: 15px; position: relative; }
.payment-icons .payment-icon-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; }
.payment-icons img { height: 40px; width: auto; border-radius: 5px; border: 1px solid var(--color-borde-oscuro); object-fit: contain; padding: 2px; cursor: pointer; transition: box-shadow 0.2s ease; }
.payment-icons img:hover { box-shadow: 0 0 5px rgba(0,0,0,0.2); }

/* =========================================== */
/* === INICIO DE LA CORRECCIÓN DE ESTILOS DE PAGO === */
/* =========================================== */
.payment-details {
    display: none;
    position: absolute; /* Esta línea es crucial para que flote sobre el contenido */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f9f9f9;
    border: 1px solid var(--color-borde-oscuro);
    border-radius: 5px;
    padding: 10px;
    margin-top: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1006;
    width: max-content;
    max-width: 280px;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
}
.payment-details.visible {
    display: block;
}
.payment-details p {
    margin-bottom: 5px;
    display: flex; /* <-- Esto es para alinear el número y el icono de copiar */
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.payment-details p:last-child {
    margin-bottom: 0;
    display: block; /* <-- Se restaura 'display: block' para el nombre */
    text-align: left; /* <-- Se asegura la alineación del nombre */
}
 .payment-details strong {
    color: var(--color-texto-oscuro);
    font-weight: 600;
}
.payment-details span {
    font-weight: 500;
    color: #333;
    /* Se cambia 'break-all' por 'break-word' para evitar cortes feos en los números */
    overflow-wrap: break-word;
    word-break: normal; 
}
.copy-icon {
    cursor: pointer;
    color: var(--color-texto-secundario);
    font-size: 15px;
    margin-left: 5px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}
/* =========================================== */
/* === FIN DE LA CORRECCIÓN DE ESTILOS DE PAGO === */
/* =========================================== */

.copy-icon:hover { color: var(--color-marca-principal); }
.copy-icon.copied { color: var(--color-exito); }
.checkout-total { text-align: right; font-size: 18px; font-weight: 700; margin-top: 10px; padding-top: 15px; border-top: 2px solid var(--color-marca-principal); color: var(--color-texto-oscuro); }
.checkout-total span { color: var(--color-alerta); font-size: 20px; }
.upload-area { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-upload { background-color: #f0f0f0; color: #333; border: 1px dashed #aaa; padding: 10px 20px; font-family: var(--fuente-principal); font-size: 14px; font-weight: 600; border-radius: 4px; cursor: pointer; text-transform: uppercase; }
.btn-upload:hover { background-color: #e9e9e9; }
#checkout-proof-upload { display: none; }
#checkout-proof-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; }
.proof-preview-item { position: relative; }
.proof-preview-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; border: 1px solid #ccc; }
.remove-proof-btn { position: absolute; top: -5px; right: -5px; background-color: var(--color-alerta); color: var(--color-texto-claro); border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 14px; font-weight: 700; line-height: 18px; cursor: pointer; text-align: center; }
#finish-purchase-btn { background-color: var(--color-marca-principal); color: var(--color-texto-oscuro); border: none; padding: 14px 20px; font-family: var(--fuente-principal); font-size: 16px; font-weight: 700; border-radius: 4px; cursor: pointer; text-transform: uppercase; margin-top: 15px; width: 100%; }
#checkout-loader { display: none; text-align: center; margin-top: 15px; font-size: 16px; font-weight: 600; }
#checkout-loader .fa-spinner { margin-right: 8px; color: var(--color-marca-principal); }
#checkout-error-message { display: none; color: #c40000; text-align: center; margin-top: 10px; font-weight: 600; font-size: 14px; }
.success-modal { display: none; position: fixed; z-index: 1005; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); align-items: center; justify-content: center; padding: 20px; }
.success-modal-content { background-color: var(--color-fondo-claro); color: #333; margin: auto; padding: 30px; border: 1px solid var(--color-texto-apagado); width: 90%; max-width: 450px; border-radius: 12px; text-align: center; animation-name: animatetop-success; animation-duration: 0.4s; }
@keyframes animatetop-success { from {transform: translateY(-50px); opacity: 0} to {transform: translateY(0); opacity: 1} }
.success-icon { font-size: 60px; color: var(--color-exito); margin-bottom: 20px; animation: bounceIn 0.6s ease-out; }
@keyframes bounceIn { 0% { transform: scale(0.5); opacity: 0; } 50% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.success-modal-content h3 { font-weight: 700; color: var(--color-texto-oscuro); margin-bottom: 10px; font-size: clamp(1.2rem, 5vw, 1.375rem); }
.success-modal-content .sub-message { font-size: 15px; color: var(--color-texto-secundario); margin-bottom: 25px; line-height: 1.5; }
.success-modal-content .final-message { font-size: 14px; color: #777; margin-bottom: 25px; }
 .success-modal-content .final-message strong { font-weight: 700; color: var(--color-texto-secundario); }
.close-success-modal-btn { background-color: var(--color-marca-principal); color: var(--color-texto-oscuro); border: none; padding: 12px 25px; font-family: var(--fuente-principal); font-size: 16px; font-weight: 700; border-radius: 5px; cursor: pointer; text-transform: uppercase; width: 100%; }
.lightbox { display: none; position: fixed; z-index: 1007; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 90%; object-fit: contain; animation-name: zoom; animation-duration: 0.3s; }
@keyframes zoom { from {transform: scale(0.8)} to {transform: scale(1)} }
.lightbox-close { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.lightbox-close:hover, .lightbox-close:focus { color: #bbb; text-decoration: none; }
.loader-backdrop { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; padding: 40px 0; font-size: 32px; color: var(--color-marca-principal); animation: spin 1.5s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.error-message { grid-column: 1 / -1; text-align: center; color: var(--color-alerta); padding: 20px; font-weight: 600; font-size: 15px; }
.error-message i { margin-right: 8px; font-size: 18px; }
body.modal-open { overflow: hidden; }
.input-error { border: 1px solid var(--color-alerta) !important; box-shadow: 0 0 5px rgba(255, 77, 77, 0.5); }
#agency-select-btn.input-error, #home-agency-select-btn.input-error { border: 1px solid var(--color-alerta) !important; box-shadow: 0 0 5px rgba(255, 77, 77, 0.5); }
.upload-area.input-error .btn-upload { border: 1px dashed var(--color-alerta) !important; box-shadow: 0 0 5px rgba(255, 77, 77, 0.5); color: var(--color-alerta); }

/* --- Estilos para Categoría Ofertas --- */
.category-item.category-ofertas a {
    color: var(--color-alerta);
    font-weight: 700;
}
.category-item.category-ofertas.active a {
    color: var(--color-alerta);
}
.category-item.category-ofertas.active::after {
    background-color: var(--color-alerta);
}

/* --- Estilos para Insignia Por Mayor --- */
.product-card {
    position: relative; /* Necesario para la insignia */
}
.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-alerta);
    color: var(--color-texto-claro);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    z-index: 2;
}

/* --- (Ajuste para que el botón se vea bien con texto largo) --- */
.product-actions .btn-buy {
    padding: 8px 10px; /* Un poco menos de padding horizontal */
    font-size: 11px; /* Fuente un poco más pequeña */
}
.product-actions .btn-cart {
    padding: 8px 10px;
}

/* --- VISTA DE ESCRITORIO --- */
@media screen and (min-width: 960px) { /* Punto de corte ajustado */

    /* Header */
    #main-header { display: flex; align-items: center; padding: 10px 5%; } #open-sidebar { display: none; } .header-center { order: 1; flex-grow: 0; flex-basis: auto; justify-content: flex-start; gap: 8px; } #main-header .brand-logo { font-size: 26px; } #main-header .header-logo { height: 30px; } .desktop-nav { display: flex; order: 2; flex-grow: 1; gap: 30px; margin-left: 40px; } .desktop-nav a { text-decoration: none; color: var(--color-texto-claro); font-size: 15px; font-weight: 600; text-transform: uppercase; padding-bottom: 5px; transition: color 0.3s ease; border-bottom: 2px solid transparent; } .desktop-nav a:hover { color: var(--color-marca-principal); } .desktop-nav a.active { color: var(--color-marca-principal); border-bottom: 2px solid var(--color-marca-principal); } #main-header.sticky .desktop-nav a { color: var(--color-texto-oscuro); } #main-header.sticky .desktop-nav a:hover { color: var(--color-marca-principal); } #main-header.sticky .desktop-nav a.active { color: var(--color-marca-principal); border-bottom: 2px solid var(--color-marca-principal); } .header-left { order: 3; flex-basis: auto; flex-grow: 0; justify-content: flex-end; margin-right: 10px; } .header-right { order: 4; flex-basis: auto; flex-grow: 0; margin-right: 0; } #main-header .header-left, #main-header .header-right { gap: 0; font-size: 22px; }
    /* Slider */
    .slider-arrow { display: block; } .slider-container { height: 85vh; } .slide { flex-direction: row; justify-content: center; align-items: center; padding-top: 0; gap: 5%; padding-left: 5%; padding-right: 5%; } .projector-image { position: relative; left: auto; top: auto; transform: none; width: 40%; max-width: 450px; height: auto; z-index: 2; } .projector-position-offset-1, .projector-position-offset-2, .projector-position-offset-3, .projector-position-offset-4, .projector-position-offset-5 { top: auto; transform: none; } .slide-content { position: relative; z-index: 3; width: 50%; max-width: 500px; padding: 0; margin-bottom: 0; } .slide:nth-child(odd) .slide-content { order: 1; text-align: left; } .slide:nth-child(odd) .projector-image { order: 2; } .slide:nth-child(even) .slide-content { order: 2; text-align: right; } .slide:nth-child(even) .projector-image { order: 1; } .slide-content p { font-size: 16px; } .slide-content h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 15px; } .btn-main { padding: 12px 25px; font-size: 16px; margin-top: 20px; }
    /* Secciones */
    .features-section { padding: 30px 20px; justify-content: center; gap: 40px; overflow-x: hidden; } .feature-item { flex-basis: 120px; max-width: 150px; } .feature-item i { font-size: 28px; margin-bottom: 8px; } .feature-item p { font-size: 14px; line-height: 1.3; } .product-categories { overflow-x: hidden; padding-top: 20px; } .category-list { justify-content: center; gap: 40px; } .category-item a { font-size: 16px; } .product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; padding: 30px; } .product-card { padding: 20px; } .product-card .product-img { height: 160px; margin-bottom: 15px; } .product-card .product-name { font-size: 16px; margin-bottom: 12px; } .product-card .product-description { font-size: 12px; } .product-card .product-price .current-price { font-size: 16px; } .product-card .product-price .old-price { font-size: 13px; } .product-actions .btn-buy { font-size: 14px; padding: 10px 18px; } .product-actions .btn-cart { font-size: 20px; }
    /* Modal Producto Desktop */
    .product-modal { justify-content: center; align-items: center; padding: 40px; } .product-modal-content { position: relative; bottom: auto; left: auto; width: 100%; max-width: 1100px; max-height: 90vh; flex-direction: row; gap: 20px; padding: 25px; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); animation-name: zoom; animation-duration: 0.3s; overflow: hidden; } .product-modal-thumbnails { display: flex; flex-direction: column; flex-basis: 80px; flex-shrink: 0; gap: 10px; overflow-y: auto; height: 100%; max-height: calc(90vh - 50px); padding-right: 10px; } .product-modal-thumbnail-item { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border: 2px solid var(--color-borde-claro); border-radius: 8px; cursor: pointer; transition: border-color 0.3s ease; background-color: #f9f9f9; padding: 2px; } .product-modal-thumbnail-item:hover { border-color: var(--color-borde-oscuro); } .product-modal-thumbnail-item.active { border-color: var(--color-marca-principal); box-shadow: 0 0 5px rgba(252, 211, 77, 0.5); } .product-modal-main-image { flex-basis: 48%; flex-grow: 1; flex-shrink: 1; height: auto; align-self: stretch; border-radius: 10px; } .product-modal-main-image .product-image-wrapper { height: 100%; align-items: center; } .product-modal-main-image .product-modal-image { object-fit: contain; max-height: calc(90vh - 50px); } .product-modal-main-image .product-slider-dots { display: none; } .product-detail-content { flex-basis: 40%; flex-shrink: 0; overflow-y: auto; height: 100%; max-height: calc(90vh - 50px); padding-right: 10px; } .close-product-modal-btn { position: absolute; top: 15px; right: 20px; z-index: 10; background-color: rgba(255, 255, 255, 0.7); border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; line-height: 1; } #modal-scroll-to-top { display: none !important; }

    /* --- Ajustes Carrito Desktop --- */
    .cart-item { flex-wrap: nowrap; align-items: center; padding: 10px 0; }
    .cart-item-select { margin-right: 15px; height: auto; }
    .cart-item-info { gap: 15px; }
    .cart-item-details { justify-content: center; min-height: auto; } /* Centra si el nombre es corto */
    .cart-item-details h4 { font-size: 14px; margin-bottom: 0; white-space: normal; overflow: visible; text-overflow: clip; }
    .cart-item-details p { margin-bottom: 0; /* Quita margen extra */ }
    .cart-item-actions { margin-left: auto; /* Empuja a la derecha */ gap: 10px; margin-top: 0; }

} /* <-- Cierre del @media screen */