/* ESTILOS PARA EL CHECKOUT */

/* Checkout Modal */
.checkout-modal-content {
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.checkout-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #ddd;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.step.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.step-content {
    padding: 15px 0;
}

/* Botones del checkout */
.checkout-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
}

.checkout-back-btn, .checkout-next-btn, .checkout-complete-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-back-btn {
    background: #6c757d;
    color: white;
    flex: 1;
}

.checkout-back-btn:hover {
    background: #5a6268;
}

.checkout-next-btn {
    background: #28a745;
    color: white;
    flex: 2;
}

.checkout-next-btn:hover {
    background: #218838;
}

.checkout-complete-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    flex: 2;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.checkout-complete-btn:hover {
    opacity: 0.9;
}

/* Opciones de envío */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.shipping-option {
    display: block;
}

.shipping-option input[type="radio"] {
    display: none;
}

.shipping-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-option label:hover {
    border-color: #28a745;
    background: #f8f9fa;
}

.shipping-option input[type="radio"]:checked + label {
    border-color: #28a745;
    background: #e8f5e9;
}

.shipping-option label i {
    font-size: 1.5rem;
    color: #28a745;
    width: 40px;
}

.shipping-option label strong {
    display: block;
    margin-bottom: 4px;
}

.shipping-option label small {
    color: #666;
    font-size: 0.85rem;
}

.shipping-option input[type="radio"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.agencia-selection {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Opciones de pago */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.payment-option {
    display: block;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.payment-option label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.payment-option input[type="radio"]:checked + label {
    border-color: #667eea;
    background: #eef2ff;
    box-shadow: 0 0 0 1px #667eea;
}

.payment-option label i {
    font-size: 1.2rem;
    color: #667eea;
}


.payment-badge-secure {
    margin-left: auto;
    font-size: 0.65rem;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.payment-badge-manual {
    margin-left: auto;
    font-size: 0.65rem;
    color: #999;
    white-space: nowrap;
}

.shalom-payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.yape-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #f3f0ff;
    border: 1px solid #d9d0f5;
    border-radius: 12px;
    padding: 14px;
    margin: 10px 0 8px;
}

.yape-qr-img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.yape-qr-info p {
    margin: 0 0 4px;
    font-size: 0.88rem;
    color: #333;
}

.yape-qr-info p i {
    color: #667eea;
    margin-right: 4px;
}

.yape-qr-apps {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.yape-tag {
    background: #742284;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.plin-tag {
    background: #00b140;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.yape-qr-info {
    text-align: center;
}

.transferencia-info-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 14px;
    margin-top: 10px;
}

.transferencia-info-box p {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: #555;
}

.upload-transferencia-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.upload-transferencia-label:hover {
    background: #5a6fd6;
}

.transferencia-preview {
    margin-top: 8px;
}

.transferencia-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Resumen de compra en checkout */
.checkout-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.checkout-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

#checkout-items-summary {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid #ddd;
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
}

/* Botón de comprar por la web en el carrito */
.checkout-web-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 15px;
    width: 100%;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    transition: background 0.2s;
}

.checkout-web-button:hover {
    background: #c82333;
}

.cart-footer-area {
    margin-top: 15px;
}

/* ESTILOS PARA EL BOTÓN DE ELIMINAR PRODUCTO */
.delete-product-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
    opacity: 0;
}

.card:hover .delete-product-btn {
    opacity: 1;
}

.delete-product-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Mostrar siempre el botón de eliminar en modo admin/helper */
body.admin-mode .delete-product-btn,
body.helper-mode .delete-product-btn {
    opacity: 1;
}

/* Ajustar posición de los botones de editar/eliminar */
.edit-product-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.2s;
    opacity: 0;
}

.card:hover .edit-product-btn {
    opacity: 1;
}

.edit-product-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

body.admin-mode .edit-product-btn,
body.helper-mode .edit-product-btn {
    opacity: 1;
}

/* Mostrar botones de admin siempre en pantallas grandes */
@media (min-width: 600px) {
    body.admin-mode .edit-product-btn,
    body.admin-mode .delete-product-btn,
    body.helper-mode .edit-product-btn,
    body.helper-mode .delete-product-btn {
        opacity: 0.8;
    }
    
    body.admin-mode .card:hover .edit-product-btn,
    body.admin-mode .card:hover .delete-product-btn,
    body.helper-mode .card:hover .edit-product-btn,
    body.helper-mode .card:hover .delete-product-btn {
        opacity: 1;
    }
}

/* Badge de preview de imágenes */
.preview-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
}

/* Contador de imágenes */
.image-counter {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}

.file-info-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

/* Contador del carrito en el botón */
#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    opacity: 0;
    transition: 0.3s;
    font-weight: 700;
}

#cart-count.active {
    opacity: 1;
}

/* Resto del CSS anterior se mantiene igual... */

:root {
    --color-fondo: #F4F4F4;
    --color-header-footer: #ffffff; 
    --color-promo: #28a745;
    --color-mayor: #ff8c00;
    --color-whatsapp: #25D366;
    --color-sombra: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body { 
    font-family: 'Poppins', sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: var(--color-fondo); 
}

/* HEADER */
header { 
    background: var(--color-header-footer); 
    padding: 4px 6px; 
    box-shadow: 0 2px 10px var(--color-sombra); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    position: relative;
}

.menu-toggle-btn {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s;
}

.menu-toggle-btn:hover {
    background: #000;
}

@media (min-width: 600px) {
    .menu-toggle-btn {
        left: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

.header-main-content { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    max-width: 1200px;
    margin: 0 auto;
    height: 50px;
    padding: 0 50px;
}

@media (min-width: 600px) {
    .header-main-content {
        padding: 0 60px;
    }
}

#logo-image { 
    max-height: 46px; 
    border-radius: 8px; 
    height: auto;
}

.header-elephant { 
    height: 46px; 
    border-radius: 5px;
    width: auto;
}

@media (min-width: 600px) {
    header {
        padding: 8px 10px;
    }
    
    .header-main-content {
        height: 55px;
    }
    
    #logo-image { 
        max-height: 50px; 
    }
    
    .header-elephant { 
        height: 50px; 
    }
}

.auth-controls { 
    position: absolute; 
    right: 6px; 
    top: 6px; 
}

@media (min-width: 600px) {
    .auth-controls { 
        right: 10px; 
        top: 10px; 
    }
}

#auth-icon-button, #logout-button { 
    background: none; 
    border: none; 
    font-size: 1.4rem; 
    cursor: pointer; 
    color: #333;
    padding: 4px;
}

@media (min-width: 600px) {
    #auth-icon-button, #logout-button { 
        font-size: 1.5rem; 
    }
}

/* BUSCADOR */
.search-container {
    display: flex;
    gap: 6px;
    padding: 4px 6px;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    header { padding: 3px 6px; }
    .search-container { padding: 3px 6px; }
}

/* MENÚ LATERAL DE CATEGORÍAS */
.categories-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
    z-index: 2500;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.categories-sidebar.open {
    left: 0;
}

@media (min-width: 600px) {
    .categories-sidebar {
        left: -320px;
        width: 320px;
    }
    
    .categories-sidebar.open {
        left: 0;
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #000;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.sidebar-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-content {
    padding: 10px;
}

.ubicaciones-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    font-weight: 700;
    margin-bottom: 10px;
}

.ubicaciones-toggle:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
    transform: translateX(0);
}

.ubicaciones-toggle .chevron-icon {
    transition: transform 0.3s;
}

.ubicaciones-toggle.open .chevron-icon {
    transform: rotate(180deg);
}

.ubicaciones-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-bottom: 10px;
}

.ubicaciones-list.open {
    max-height: 500px;
}

.chevron-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.chevron-icon.rotated {
    transform: rotate(180deg);
}

.ubicacion-item {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ubicacion-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ubicacion-link:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.ubicacion-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 28px;
    transition: background 0.2s;
}

.ubicacion-link:hover .ubicacion-maps-btn {
    background: #5a6fd6;
}

.ubicacion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #333;
}

.ubicacion-header i {
    color: #667eea;
    font-size: 1.1rem;
}

.ubicacion-header strong {
    font-size: 1rem;
    font-weight: 700;
}

.ubicacion-address {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    padding-left: 28px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.category-item:hover {
    background: #f5f5f5;
    border-color: #333;
    transform: translateX(5px);
}

.category-item.active {
    background: #000;
    color: white;
    border-color: #000;
}

.category-item i:first-child {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.category-item span {
    flex: 1;
}

.category-item i:last-child {
    font-size: 0.9rem;
    opacity: 0.5;
}

.category-item.all-categories {
    background: #333;
    color: white;
    border-color: #333;
    font-weight: 600;
}

.category-item.all-categories:hover {
    background: #000;
    border-color: #000;
}

.category-item.all-categories.active {
    background: #000;
    border-color: #000;
}

.categories-divider {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    padding: 15px 10px 8px 10px;
    letter-spacing: 1px;
}

.brands-list {
    display: flex;
    flex-direction: column;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* BOTÓN FLOTANTE VOLVER */
.back-to-all-btn {
    position: fixed;
    left: 15px;
    bottom: 90px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 1500;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.back-to-all-btn:hover {
    transform: scale(1.1);
    background: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
    }
}

@media (min-width: 600px) {
    .back-to-all-btn {
        left: 25px;
        bottom: 100px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (min-width: 600px) {
    .search-container { 
        gap: 8px; 
        padding: 10px; 
    }
}

/* CARRUSEL DE SLIDES */
.slides-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 4px auto;
    padding: 0 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.slides-carousel.hidden {
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

@media (min-width: 600px) {
    .slides-carousel {
        margin: 10px auto;
        padding: 0 10px;
    }

    .slides-carousel.hidden {
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .slides-carousel {
        margin: 4px auto;
        padding: 0 10px;
    }
}

.slides-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

@media (min-width: 600px) {
    .slides-container {
        height: 280px;
        border-radius: 15px;
    }
}

@media (min-width: 1024px) {
    .slides-container {
        height: 400px;
    }
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.slide-item.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-item.no-link {
    cursor: default;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s;
    display: none;
}

.slides-carousel:hover .carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: white;
    width: 12px;
    height: 12px;
}

.search-bar-wrapper { 
    flex: 1; 
    position: relative; 
}

#search-input { 
    width: 100%; 
    padding: 8px 30px 8px 12px; 
    border-radius: 12px; 
    border: 1px solid #ddd; 
    outline: none; 
    box-sizing: border-box;
    font-size: 0.9rem;
}

@media (min-width: 600px) {
    #search-input { 
        padding: 10px 35px 10px 15px; 
        border-radius: 15px; 
        font-size: 1rem;
    }
}

#search-clear-button { 
    position: absolute; 
    right: 8px; 
    top: 8px; 
    border: none; 
    background: none; 
    color: #999; 
    cursor: pointer; 
}

@media (min-width: 600px) {
    #search-clear-button { 
        right: 10px; 
        top: 10px; 
    }
}

.search-toggle-button { 
    background: #333; 
    color: white; 
    border: none; 
    border-radius: 12px; 
    width: 40px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 0.9rem;
}

@media (min-width: 600px) {
    .search-toggle-button { 
        border-radius: 15px; 
        width: 45px; 
        font-size: 1rem;
    }
}

/* MAIN CONTAINER */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2px 0 2px;
}

@media (min-width: 600px) {
    main {
        padding: 0 10px 0 10px;
    }
}

/* GRID PRODUCTOS - RESPONSIVE */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 3px; 
    padding: 3px 2px 80px 2px;
}

/* TABLET: 2 columnas */
@media (min-width: 600px) {
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
        padding: 12px 12px 80px 12px;
    }
}

/* PC: 4 columnas con máximo ancho */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 8px 10px 60px 10px;
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* DRAG & DROP PRODUCTOS */
body.admin-mode .card,
body.helper-mode .card {
    cursor: grab;
}

body.admin-mode .card:active,
body.helper-mode .card:active {
    cursor: grabbing;
}

.card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.card.drag-over {
    outline: 2px dashed #667eea;
    outline-offset: 3px;
}

.touch-drag-clone {
    position: fixed;
    width: 80px;
    height: 80px;
    opacity: 0.7;
    z-index: 9999;
    pointer-events: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* CARDS DE PRODUCTOS */
.card {
    background: white;
    border-radius: 10px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    border: 1px solid #eee; 
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image { 
    width: 100%; 
    height: 95px; 
    object-fit: cover; 
}

/* Imágenes más grandes en pantallas grandes */
@media (min-width: 600px) {
    .product-image { 
        height: 180px; 
    }
}

@media (min-width: 1024px) {
    .product-image { 
        height: 220px; 
    }
}

.product-info { 
    padding: 6px; 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    gap: 2px;
}

@media (min-width: 600px) {
    .product-info { 
        padding: 10px; 
        gap: 5px;
    }
}

.card h3 { 
    font-size: 0.7rem; 
    margin: 0; 
    line-height: 1.1; 
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.card h3 .title-text-wrapper {
    display: inline-block;
}

.card h3.marquee-title .title-text-wrapper {
    animation: marquee-title 8s linear infinite;
}

@keyframes marquee-title { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(var(--marquee-title-dist)); } 
}

@media (min-width: 600px) {
    .card h3 { 
        font-size: 0.9rem; 
        line-height: 1.2;
    }
}

.product-brand { 
    font-size: 0.58rem; 
    color: #777; 
    white-space: nowrap; 
    overflow: hidden; 
    font-weight: 600; 
    margin: 0;
    line-height: 1.2;
}

@media (min-width: 600px) {
    .product-brand { 
        font-size: 0.75rem; 
    }
}

.marquee-brand .brand-text-wrapper { 
    display: inline-block; 
    animation: marquee 6s linear infinite; 
}

@keyframes marquee { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(var(--marquee-dist)); } 
}

/* PRECIOS */
.product-prices {
    margin: 2px 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

@media (min-width: 600px) {
    .product-prices {
        margin: 4px 0;
        gap: 2px;
    }
}

.price-row-live { 
    color: var(--color-mayor); 
    font-weight: 700; 
    font-size: 0.75rem; 
    transition: all 0.3s;
    line-height: 1.2;
}

.price-row-normal { 
    color: var(--color-promo); 
    font-weight: 700; 
    font-size: 0.75rem; 
    transition: all 0.3s;
    line-height: 1.2;
}

@media (min-width: 600px) {
    .price-row-live,
    .price-row-normal { 
        font-size: 0.95rem; 
    }
}

.small-price-label { 
    font-size: 0.45rem; 
    color: #999;
    margin-left: 3px;
}

@media (min-width: 600px) {
    .small-price-label { 
        font-size: 0.58rem; 
    }
}

/* CLASES DE BRILLO */
.shining-promo { 
    text-shadow: 0 0 10px var(--color-promo); 
    transform: scale(1.05); 
    font-weight: 800; 
}

.shining-mayor { 
    text-shadow: 0 0 10px var(--color-mayor); 
    transform: scale(1.05); 
    font-weight: 800; 
}

/* CONTROLES DEL CARRITO */
.cart-controls { 
    display: flex; 
    gap: 3px; 
    margin-top: auto; 
    padding-top: 3px; 
    align-items: center; 
    width: 100%; 
}

@media (min-width: 600px) {
    .cart-controls { 
        gap: 6px;
        padding-top: 6px; 
    }
}

.qty-selector { 
    display: flex; 
    background: #eee; 
    border-radius: 5px; 
    flex: 1.2; 
    height: 24px; 
    align-items: center; 
    overflow: hidden; 
}

@media (min-width: 600px) {
    .qty-selector { 
        height: 32px; 
    }
}

.minus, .plus { 
    border: none; 
    background: none; 
    width: 22px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 0.9rem; 
    flex-shrink: 0;
    transition: background 0.2s;
}

.minus:hover, .plus:hover {
    background: #ddd;
}

@media (min-width: 600px) {
    .minus, .plus { 
        width: 35px; 
        font-size: 1.2rem; 
    }
}

.qty-display { 
    flex: 1; 
    text-align: center; 
    font-size: 0.75rem; 
    font-weight: bold; 
}

@media (min-width: 600px) {
    .qty-display { 
        font-size: 1rem; 
    }
}

.add-to-cart-btn { 
    background: var(--color-whatsapp); 
    color: white; 
    border: none; 
    border-radius: 5px; 
    flex: 0.8; 
    height: 24px; 
    font-size: 0.68rem; 
    cursor: pointer; 
    font-weight: 700;
    white-space: nowrap; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 0 3px; 
    flex-shrink: 0;
    transition: background 0.2s;
}

.add-to-cart-btn:hover {
    background: #1ea952;
}

@media (min-width: 600px) {
    .add-to-cart-btn { 
        height: 32px; 
        font-size: 0.85rem; 
        padding: 0 6px;
    }
}

/* MODALES */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.85); 
    z-index: 2000; 
    overflow-y: auto; 
}

.modal-content { 
    background: white; 
    margin: 20px auto; 
    padding: 20px; 
    border-radius: 15px; 
    width: 92%; 
    max-width: 450px; 
    position: relative; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

@media (min-width: 768px) {
    .modal-content { 
        width: 85%; 
        max-width: 600px; 
        padding: 30px; 
    }
}

.close-button { 
    position: absolute; 
    right: 10px; 
    top: 10px; 
    font-size: 32px; 
    cursor: pointer; 
    z-index: 3000; 
    color: #333; 
    background: rgba(255,255,255,0.9); 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: background 0.2s;
}

.close-button:hover {
    background: rgba(255,255,255,1);
}

/* DETALLES DEL PRODUCTO */
.details-container {
    max-width: 700px;
}

#details-price-normal { 
    color: var(--color-promo); 
    font-weight: 700; 
    font-size: 1.2rem; 
}

#details-price-live { 
    color: var(--color-mayor); 
    font-weight: 700; 
    font-size: 1.2rem; 
}

.details-image-wrapper { 
    position: relative; 
    width: 100%; 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #eee; 
}

#details-image { 
    width: 100%; 
    height: auto; 
    display: block; 
    max-height: 380px; 
    object-fit: contain; 
}

@media (min-width: 768px) {
    #details-image { 
        max-height: 500px; 
    }
}

.nav-button { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.5); 
    color: white; 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 10; 
    font-size: 1rem;
    transition: background 0.2s;
}

.nav-button:hover {
    background: rgba(0,0,0,0.7);
}

.nav-button.prev { 
    left: 10px; 
}

.nav-button.next { 
    right: 10px; 
}

.thumbnail-gallery { 
    display: flex; 
    gap: 8px; 
    margin-top: 10px; 
    overflow-x: auto; 
    padding-bottom: 5px; 
}

.thumbnail-gallery img { 
    width: 55px; 
    height: 55px; 
    object-fit: cover; 
    border-radius: 8px; 
    opacity: 0.5; 
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail-gallery img:hover {
    opacity: 0.8;
}

.thumbnail-gallery img.active { 
    opacity: 1; 
    border-color: var(--color-mayor); 
}

.details-prices-box { 
    background: #f9f9f9; 
    padding: 15px; 
    border-radius: 15px; 
    margin: 15px 0; 
    display: flex; 
    justify-content: space-around; 
    border: 1px solid #eee; 
}

/* CARRITO */
.checkout-button { 
    background-color: var(--color-whatsapp); 
    color: white; 
    border: none; 
    padding: 14px; 
    border-radius: 15px; 
    width: 100%; 
    font-weight: 800; 
    font-size: 1.1rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    margin-top: 10px; 
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: background 0.2s;
}

.checkout-button:hover {
    background-color: #1ea952;
}

/* FOOTER FIJO (WhatsApp y Carrito) */
.fixed-footer { 
    background: white; 
    padding: 8px; 
    position: fixed; 
    bottom: 0; 
    left: 0;
    right: 0;
    box-shadow: 0 -2px 10px var(--color-sombra); 
    z-index: 1000; 
}

@media (min-width: 600px) {
    .fixed-footer { 
        padding: 10px; 
    }
}

.footer-content { 
    display: flex; 
    gap: 6px; 
    max-width: 500px; 
    margin: 0 auto; 
}

@media (min-width: 600px) {
    .footer-content { 
        gap: 8px; 
        max-width: 600px; 
    }
}

#whatsapp-button { 
    background: var(--color-whatsapp); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    flex: 1; 
    font-weight: bold; 
    font-size: 0.85rem; 
    cursor: pointer;
    padding: 10px 8px;
    transition: background 0.2s;
    height: 44px;
}

@media (min-width: 600px) {
    #whatsapp-button { 
        border-radius: 12px; 
        font-size: 0.9rem; 
        padding: 12px; 
        height: 48px;
    }
}

#whatsapp-button:hover {
    background: #1ea952;
}

.cart-toggle-footer { 
    background: #333; 
    color: white; 
    border: none; 
    border-radius: 10px; 
    width: 50px; 
    height: 44px; 
    position: relative; 
    cursor: pointer; 
    font-size: 1.1rem;
    transition: background 0.2s;
}

@media (min-width: 600px) {
    .cart-toggle-footer { 
        border-radius: 12px; 
        width: 55px; 
        height: 48px; 
        font-size: 1.2rem;
    }
}

.cart-toggle-footer:hover {
    background: #000;
}

#open-admin-menu-button { 
    background: #eee; 
    color: #333; 
    border: none; 
    border-radius: 10px; 
    width: 44px; 
    height: 44px; 
    cursor: pointer; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: background 0.2s;
}

@media (min-width: 600px) {
    #open-admin-menu-button { 
        border-radius: 12px; 
        width: 48px; 
        height: 48px; 
        font-size: 1.2rem; 
    }
}

#open-admin-menu-button:hover {
    background: #ddd;
}

@media (min-width: 1024px) {
    .fixed-footer { padding: 5px; }
    .footer-content { gap: 6px; }
    #whatsapp-button { height: 36px; padding: 6px 10px; font-size: 0.85rem; }
    .cart-toggle-footer { height: 36px; width: 48px; font-size: 1rem; }
    #open-admin-menu-button { height: 36px; width: 40px; font-size: 1rem; }
}

/* FOOTER INFORMATIVO (después de productos) */
.info-footer {
    background: #f8f8f8;
    padding: 40px 20px 80px 20px;
    border-top: 3px solid #000;
    margin: 0;
}

.info-footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #000;
}

.footer-shipping-info {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-shipping-info p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.footer-shipping-info p:first-child {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 12px;
}

.footer-shipping-info strong {
    color: #000;
    font-weight: 700;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
}

.footer-phone:hover {
    background: #000;
    color: white;
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.footer-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #000;
}

.footer-social a:hover {
    background: #000;
    color: white;
    transform: translateY(-5px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

@media (min-width: 600px) {
    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: #000;
    color: white;
}

.footer-payment {
    font-size: 0.9rem;
    color: #555;
    margin: 25px 0 15px 0;
    line-height: 1.6;
}

.footer-payment strong {
    color: #000;
}

.footer-credits {
    font-size: 0.85rem;
    color: #999;
    margin: 15px 0 0 0;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.footer-credits strong {
    color: #000;
    font-weight: 600;
}

/* GESTOR DE CATEGORÍAS */
.categories-manager-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.category-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.category-section:last-child {
    border-bottom: none;
}

.category-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.add-category-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.add-category-btn:hover {
    background: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.category-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.category-tag:hover {
    border-color: #000;
    transform: translateY(-2px);
}

.category-tag span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-category-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.3s;
}

.delete-category-btn:hover {
    background: #c82333;
}

.categories-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* ADMIN UI - GESTIÓN DE ROLES */
.admin-only, .any-admin { 
    display: none !important; 
}

body.admin-mode .admin-only, 
body.admin-mode .any-admin { 
    display: flex !important; 
}

body.helper-mode .any-admin { 
    display: flex !important; 
}

/* SECCIÓN DE VENTAS */
.ventas-modal-content {
    max-width: 600px;
}

.ventas-stats {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.venta-stat-box {
    flex: 1;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.venta-stat-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.venta-stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.ventas-list-container {
    max-height: 450px;
    overflow-y: auto;
}

.venta-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 5px;
    transition: box-shadow 0.2s;
}

.venta-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.venta-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.venta-card-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.venta-card-productos {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venta-card-fecha {
    font-size: 0.75rem;
    color: #999;
}

.venta-card-monto {
    font-size: 1rem;
    color: #222;
    white-space: nowrap;
}

.venta-card-details {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #eee;
}

.venta-detail-row {
    font-size: 0.82rem;
    padding: 1px 0;
    color: #555;
}

.venta-detail-row strong {
    color: #333;
}

.venta-estado {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.venta-estado.pendiente {
    background: #fff3cd;
    color: #856404;
}

.venta-estado.pagado {
    background: #d4edda;
    color: #155724;
}

.venta-productos-list {
    margin-top: 5px;
    padding-left: 10px;
}

.venta-producto-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 3px 0;
    color: #666;
    gap: 8px;
}

.venta-producto-item span {
    color: #999;
}

.venta-ver-mas-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 1px 0 0;
    margin-top: 1px;
    width: 100%;
    text-align: left;
}

.venta-ver-mas-btn:hover {
    text-decoration: underline;
}

.venta-pendiente {
    border-left: 3px solid #ffc107;
    opacity: 0.7;
}

.venta-detail-separator {
    border-top: 1px dashed #e0e0e0;
    margin: 4px 0;
}

.venta-verificar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
}

.venta-verificar-check {
    width: 18px;
    height: 18px;
    accent-color: #28a745;
    cursor: pointer;
}

.venta-verificar-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.venta-desc-pago {
    display: block;
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
    margin-top: 2px;
}

.venta-eliminar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    justify-content: center;
}

.venta-eliminar-btn:hover {
    background: #e74c3c;
    color: white;
}

/* VENTAS SHALOM - TONO ROJO */
.venta-shalom {
    border-left: 4px solid #e74c3c;
    background: #fff5f5;
}

.venta-badge-shalom {
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

.venta-card-cliente {
    font-size: 0.75rem;
    color: #666;
}

.venta-card-cliente i {
    margin-right: 3px;
    color: #999;
}

.venta-card-dni-cel {
    font-size: 0.7rem;
    color: #888;
    margin-top: -1px;
}

.venta-card-right-quick,
.venta-card-right-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.venta-pago-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.venta-pago-thumb:hover {
    transform: scale(1.5);
    z-index: 10;
}

.venta-pago-full {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 5px;
    cursor: pointer;
    border: 1px solid #eee;
}

.venta-check-quick {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.venta-check-quick input {
    display: none;
}

.venta-card-titulo-shalom {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.venta-quick-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.venta-action-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

.venta-action-btn:hover {
    background: #667eea;
    color: white;
}

.venta-shalom .venta-action-btn:hover {
    background: #e74c3c;
}

.venta-check-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.venta-check-inline input { display: none; }

.venta-check-icon {
    font-size: 1.1rem;
    color: #ccc;
}

.venta-check-inline input:checked ~ .venta-check-icon {
    color: #28a745;
}

.venta-check-label {
    font-weight: 600;
    color: #999;
    white-space: nowrap;
}

.venta-check-inline input:checked ~ .venta-check-label {
    color: #28a745;
}

.venta-prods-expandible,
.venta-pago-expandible {
    margin-top: 4px;
    padding: 5px 8px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #eee;
}

.venta-pago-expandible {
    text-align: center;
}

/* LAZY LOADING IMÁGENES */
.lazy-img {
    background: #f0f0f0;
    min-height: 80px;
}

.lazy-slide {
    background: #e8e8e8;
}

/* VENTAS - RESPONSIVE MÓVIL */
@media (max-width: 600px) {
    .ventas-modal-content {
        max-width: 100%;
        margin: 10px;
        padding: 10px;
    }

    .ventas-stats {
        gap: 6px;
        margin: 8px 0;
    }

    .venta-stat-box { padding: 6px; }
    .venta-stat-num { font-size: 1rem; }

    .venta-card { padding: 5px 7px; margin-bottom: 3px; }

    .venta-card-header {
        flex-direction: column;
        gap: 2px;
    }

    .venta-card-info { gap: 0px; }

    .venta-card-right-quick,
    .venta-card-right-compact {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0px;
        margin-top: 1px;
    }

    .venta-quick-actions { gap: 3px; margin-top: 0; }
    .venta-action-btn { width: 26px; height: 26px; font-size: 0.7rem; }
    .venta-check-inline { font-size: 0.6rem; }
    .venta-check-label { font-size: 0.55rem; }
    .venta-check-icon { font-size: 0.85rem; }
    .venta-card-productos { font-size: 0.78rem; }
    .venta-card-cliente { font-size: 0.68rem; }
    .venta-card-dni-cel { font-size: 0.62rem; }
    .venta-card-titulo-shalom { font-size: 0.78rem; flex-wrap: wrap; }
    .venta-card-monto { font-size: 0.88rem; }
    .venta-card-fecha { font-size: 0.62rem; }
    .venta-producto-item { font-size: 0.73rem; }
    .venta-pago-full { max-height: 160px; }
    .venta-detail-row { font-size: 0.75rem; padding: 0; }
    .venta-card-details { margin-top: 2px; padding-top: 2px; }
    .ventas-list-container { max-height: 380px; }
    .venta-prods-expandible, .venta-pago-expandible { padding: 4px; margin-top: 3px; }
    .venta-ver-mas-btn { font-size: 0.72rem; padding: 0; margin-top: 1px; }
    .venta-eliminar-btn { font-size: 0.72rem; padding: 4px 8px; }
}

/* BADGE ESTADO COMPRAS (CLIENTE) */
.compra-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.compra-verificado {
    background: #d4edda;
    color: #155724;
}

.compra-pendiente {
    background: #fff3cd;
    color: #856404;
}

/* BOTÓN SHALOM FLOTANTE */
.shalom-float-btn {
    position: fixed;
    bottom: 70px;
    left: 6px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.shalom-float-btn:hover {
    transform: scale(1.08);
}

.shalom-float-title {
    background: #c0392b;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 8px;
    margin-bottom: 3px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-align: center;
}

.shalom-float-btn img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(231,76,60,0.5);
    border: 3px solid #e74c3c;
    animation: shalomGlow 1.8s ease-in-out infinite;
}

.shalom-float-label {
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 3px;
    white-space: nowrap;
    animation: shalomLabelGlow 2s ease-in-out infinite;
}

@keyframes shalomLabelGlow {
    0%, 100% { background: #e74c3c; box-shadow: none; }
    50% { background: #f1c40f; color: #333; box-shadow: 0 0 10px rgba(241,196,15,0.7); }
}

@keyframes shalomGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(231,76,60,0.4); transform: scale(1); }
    50% { box-shadow: 0 0 22px rgba(231,76,60,1); transform: scale(1.08); }
}

.shalom-pulsing img {
    animation: shalomPulseStrong 0.6s ease-in-out infinite alternate;
}

@keyframes shalomPulseStrong {
    from { box-shadow: 0 0 5px rgba(231,76,60,0.4); transform: scale(1); }
    to { box-shadow: 0 0 25px rgba(231,76,60,1); transform: scale(1.1); }
}

/* CHECKOUT SHALOM MODAL */
.shalom-modal-content {
    max-width: 500px;
}

.shalom-title-icon {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}

.shalom-oficina-dropdown {
    display: none;
    position: absolute;
    z-index: 100;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: calc(100% - 2px);
}

.shalom-oficina-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.shalom-oficina-item:hover {
    background: #f0f4ff;
}

.shalom-oficina-tag {
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
}

.shalom-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 25px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    color: #999;
    transition: border-color 0.2s, background 0.2s;
}

.shalom-upload-area:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

.shalom-upload-area i {
    font-size: 1.5rem;
}

.shalom-pago-preview {
    position: relative;
    display: inline-block;
    margin-top: 8px;
}

.shalom-pago-preview img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.shalom-pago-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shalom-resumen {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.shalom-resumen h4 {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.shalom-finalizar-btn {
    width: 100%;
    margin-top: 12px;
    background: #e74c3c;
    border-color: #e74c3c;
}

.shalom-finalizar-btn:hover {
    background: #c0392b;
}

/* BOTÓN MIS COMPRAS */
#open-mis-compras-button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#open-mis-compras-button:hover {
    background: #5a6fd6;
}

@media (min-width: 1024px) {
    #open-mis-compras-button { height: 36px; width: 40px; font-size: 0.9rem; }
    .shalom-float-btn { bottom: 55px; }
}

/* Posición relativa para dropdown de oficinas */
.shalom-modal-content .form-group {
    position: relative;
}

/* MENÚ ADMIN */
.admin-menu-content {
    max-width: 400px;
}

.admin-menu-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.admin-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.admin-menu-btn:hover {
    background: #e8e8e8;
    border-color: #999;
    transform: translateY(-2px);
}

.admin-menu-btn i {
    font-size: 1.5rem;
    color: #333;
}

/* GESTOR DE USUARIOS */
.users-manager-content {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.users-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

@media (max-width: 600px) {
    .users-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-card i {
    font-size: 2rem;
}

.stat-card strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.stat-card span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

.users-search {
    margin: 15px 0;
}

.users-search input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.users-search input:focus {
    border-color: #667eea;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px solid #eee;
    transition: all 0.3s;
}

.user-item:hover {
    border-color: #667eea;
}

.user-item.banned {
    background: #ffe6e6;
    border-color: #ffcccc;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-item.banned .user-avatar {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-email {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.user-meta {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.user-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-badge.role-admin {
    background: #ffd700;
    color: #333;
}

.user-badge.role-helper {
    background: #ffa500;
    color: white;
}

.user-badge.role-user {
    background: #e0e0e0;
    color: #666;
}

.user-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.user-badge.status-banned {
    background: #f8d7da;
    color: #721c24;
}

.user-date {
    font-size: 0.75rem;
    color: #999;
}

.user-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.user-ban-btn,
.user-unban-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.user-ban-btn {
    background: #dc3545;
    color: white;
}

.user-ban-btn:hover {
    background: #c82333;
}

.user-unban-btn {
    background: #28a745;
    color: white;
}

.user-unban-btn:hover {
    background: #218838;
}

.users-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.users-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* GESTOR DE SLIDES */
.slides-manager-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.add-slide-btn {
    width: 100%;
    padding: 14px;
    background: var(--color-whatsapp);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.add-slide-btn:hover {
    background: #1ea952;
}

.slides-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.slide-item-manager {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px solid #eee;
}

.slide-preview-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.slide-info {
    flex: 1;
    min-width: 0;
}

.slide-info small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slide-order-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slide-order-btn {
    background: #ddd;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slide-order-btn:hover {
    background: #ccc;
}

.slide-order-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-actions {
    display: flex;
    gap: 6px;
}

.slide-edit-btn,
.slide-delete-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slide-edit-btn {
    background: #007bff;
    color: white;
}

.slide-edit-btn:hover {
    background: #0056b3;
}

.slide-delete-btn {
    background: #dc3545;
    color: white;
}

.slide-delete-btn:hover {
    background: #c82333;
}

/* FORMULARIO DE SLIDE */
.slide-form-content {
    max-width: 550px;
}

.slide-dimensions-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.slide-dimensions-info i {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.slide-dimensions-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.slide-dimensions-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.slide-dimensions-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.slide-dimensions-info li {
    margin: 5px 0;
    font-size: 0.9rem;
}

.slide-dimensions-info .warning-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}

.slide-image-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
    cursor: pointer;
}

#slide-image-url:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.slide-preview-container {
    margin-top: 15px;
    display: none;
}

.slide-preview-container.active {
    display: block;
}

.slide-preview-container img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #eee;
}

.form-group small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
}

.card.add-new { 
    height: 120px; 
    background: #f0f0f0; 
    border: 2px dashed #bbb; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    font-size: 2rem; 
    color: #999;
    transition: all 0.2s;
}

.card.add-new:hover {
    background: #e8e8e8;
    border-color: #999;
}

@media (min-width: 600px) {
    .card.add-new { 
        height: 200px; 
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .card.add-new { 
        height: 280px; 
    }
}

/* NOTIFICACIONES */
.toast-notification { 
    position: fixed; 
    bottom: 85px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #28a745; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 25px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    z-index: 3000; 
    font-weight: 600; 
    font-size: 0.85rem; 
}

/* FORMULARIOS */
.form-row { 
    display: flex; 
    gap: 10px; 
}

.form-group { 
    margin-bottom: 12px; 
}

.form-group.flex-1 {
    flex: 1;
}

.form-group label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: #555; 
    margin-bottom: 4px; 
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%; 
    padding: 10px; 
    border-radius: 10px; 
    border: 1px solid #ddd; 
    font-family: 'Poppins', sans-serif; 
    box-sizing: border-box; 
}

.select-wrapper {
    display: flex;
    gap: 5px;
}

.select-wrapper select {
    flex: 1;
}

.save-product-btn { 
    background: #000; 
    color: white; 
    padding: 14px; 
    border: none; 
    border-radius: 12px; 
    width: 100%; 
    cursor: pointer; 
    font-weight: 700; 
    margin-top: 10px;
    transition: background 0.2s;
}

.save-product-btn:hover {
    background: #333;
}

.add-new-option-button { 
    background: #333; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    width: 35px; 
    cursor: pointer;
    transition: background 0.2s;
}

.add-new-option-button:hover {
    background: #000;
}

.file-input-wrapper {
    position: relative;
}

.file-input {
    display: none;
}

.file-custom-btn {
    background: #eee;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: 2px dashed #ccc;
    transition: all 0.2s;
}

.file-custom-btn:hover {
    background: #e0e0e0;
    border-color: #999;
}

.image-preview-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 5px; 
    margin-top: 10px; 
}

.preview-item { 
    position: relative; 
    aspect-ratio: 1/1; 
    border: 1px solid #eee; 
    border-radius: 5px; 
    overflow: hidden; 
}

.preview-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.remove-preview-btn { 
    position: absolute; 
    top: 2px; 
    right: 2px; 
    background: red; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 18px; 
    height: 18px; 
    font-size: 10px; 
    cursor: pointer;
    transition: background 0.2s;
}

.remove-preview-btn:hover {
    background: darkred;
}

/* CARRITO - ESTILOS ADICIONALES */
.cart-items-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price-tag {
    font-size: 0.75rem;
    color: #888;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background: #ddd;
}

.cart-qty-val {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.cart-item-subtotal {
    font-size: 0.95rem;
    color: #222;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #e74c3c;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
}

.cart-empty i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cart-empty p {
    font-size: 1rem;
}

.cart-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.cart-total-box {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    font-size: 1.1rem;
}

/* AUTH MODAL */
.auth-modal-content {
    max-width: 400px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #333;
    border-bottom-color: #667eea;
}

.auth-tab:hover {
    color: #667eea;
}

.auth-error {
    color: red;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Estilo para cuando se arrastra un archivo sobre la zona */
.file-custom-btn.drag-over {
    background: #e0e0e0;
    border: 2px dashed #000;
    transform: scale(1.02);
    color: #000;
}

/* =============================================
   LIBRO DE RECLAMACIONES
   ============================================= */
.lr-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #f5f5f5;
    z-index: 10000;
    overflow-y: auto;
    animation: lrFadeIn 0.3s ease;
}
@keyframes lrFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lr-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    font-family: 'Poppins', sans-serif;
}
.lr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 14px;
    margin-bottom: 28px;
}
.lr-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}
.lr-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.lr-fecha {
    font-size: 0.85rem;
    color: #555;
}
.lr-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #555;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}
.lr-close-btn:hover { color: #c0392b; }

/* Paso 0: Selección de canal */
.lr-step-canal {
    text-align: center;
    padding: 40px 0 20px;
}
.lr-canal-titulo h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}
.lr-canal-titulo p {
    font-size: 0.88rem;
    color: #777;
    margin: 0 0 32px;
}
.lr-canal-opciones {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.lr-canal-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    padding: 28px 22px 22px;
    width: 220px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
.lr-canal-card:hover {
    border-color: #4a6cf7;
    box-shadow: 0 4px 18px rgba(74,108,247,0.13);
    transform: translateY(-3px);
}
.lr-canal-icono {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #eef1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.lr-canal-icono i {
    font-size: 1.4rem;
    color: #4a6cf7;
}
.lr-canal-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}
.lr-canal-card p {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    line-height: 1.3;
}

/* Canal elegido - barra superior */
.lr-canal-elegido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eef1ff;
    border: 1px solid #d0d8f7;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 22px;
    font-size: 0.85rem;
    color: #333;
}
.lr-canal-elegido span { font-weight: 600; }
.lr-canal-cambiar {
    background: none;
    border: none;
    color: #4a6cf7;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.lr-canal-cambiar:hover { color: #2a4cd7; }

/* Bloques */
.lr-bloque {
    background: #fff;
    border-radius: 10px;
    padding: 24px 22px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.lr-bloque-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.lr-subtitulo {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filas y campos */
.lr-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.lr-row-3 { gap: 14px; }
.lr-row-3 .lr-field { flex: 1; min-width: 0; }
.lr-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.lr-field.lr-full { flex: 1 1 100%; }
.lr-field label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Inputs estilo línea inferior */
.lr-field input[type="text"],
.lr-field input[type="email"],
.lr-field input[type="tel"],
.lr-field input[type="number"],
.lr-field select {
    border: none;
    border-bottom: 1.5px solid #ccc;
    background: transparent;
    padding: 8px 2px;
    font-size: 0.88rem;
    color: #333;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    -webkit-appearance: none;
}
.lr-field input:focus,
.lr-field select:focus {
    border-bottom-color: #4a6cf7;
}
.lr-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
}
.lr-field textarea {
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: #333;
    font-family: 'Poppins', sans-serif;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
}
.lr-field textarea:focus { border-color: #4a6cf7; }

/* Radio y checkbox */
.lr-radio-group {
    display: flex;
    gap: 24px;
    padding: 8px 0;
}
.lr-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #444;
    cursor: pointer;
}
.lr-radio input[type="radio"] {
    accent-color: #4a6cf7;
    width: 16px; height: 16px;
    cursor: pointer;
}
.lr-checkbox-field {
    display: flex;
    align-items: flex-end;
    padding-bottom: 8px;
}
.lr-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #444;
    cursor: pointer;
}
.lr-check-label input[type="checkbox"] {
    accent-color: #4a6cf7;
    width: 16px; height: 16px;
    cursor: pointer;
}

/* Captcha placeholder */
.lr-bloque-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.lr-captcha-placeholder {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 18px;
}
.lr-captcha-check span {
    font-size: 0.85rem;
    color: #444;
}
.lr-captcha-icon {
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}
.lr-captcha-icon i { font-size: 1rem; color: #4a90d9; }

/* Botón enviar */
.lr-submit-btn {
    background: #4a6cf7;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.lr-submit-btn:hover:not(:disabled) { background: #3a5ce5; }
.lr-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Sección tutor menor de edad */
.lr-tutor-section {
    margin-top: 10px;
    padding: 18px 18px 8px;
    background: #fafbff;
    border: 1px dashed #b0bec5;
    border-radius: 8px;
    animation: lrFadeIn 0.3s ease;
}

/* Footer link del libro */
#libro-reclamaciones-link {
    color: #ffcdd2;
    font-weight: 500;
}
#libro-reclamaciones-link i { margin-right: 4px; }

/* Responsive */
@media (max-width: 600px) {
    .lr-container { padding: 16px 12px 50px; }
    .lr-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .lr-header h1 { font-size: 1.2rem; }
    .lr-header-right { width: 100%; justify-content: space-between; }
    .lr-row, .lr-row-3 { flex-direction: column; gap: 12px; }
    .lr-bloque { padding: 16px 14px; }
    .lr-bloque-final { flex-direction: column; align-items: stretch; }
    .lr-submit-btn { width: 100%; text-align: center; }
    .lr-canal-opciones { flex-direction: column; align-items: center; }
    .lr-canal-card { width: 100%; max-width: 300px; }
    .lr-canal-titulo h2 { font-size: 1.1rem; }
    .lr-canal-elegido { flex-direction: column; gap: 8px; text-align: center; }
}