/* ===== VARIABLES Y RESET ===== */
:root {
    --navidad-rojo: #C41E3A;
    --navidad-verde: #1E7B4D;
    --navidad-oro: #D4AF37;
    --navidad-naranja: #FF6B35;
    --navidad-gris: #1a1a1a;
    --texto-claro: #ffffff;
    --texto-oscuro: #333333;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.15);
    --sombra-fuerte: 0 15px 40px rgba(0, 0, 0, 0.25);
    --gradiente-rojo: linear-gradient(135deg, #C41E3A, #FF2E4D);
    --gradiente-verde: linear-gradient(135deg, #1E7B4D, #2E8B57);
    --gradiente-oro: linear-gradient(135deg, #D4AF37, #FFD700);
    --gradiente-naranja: linear-gradient(135deg, #FF6B35, #FF8C42);
    --gradiente-navidad: linear-gradient(135deg, #C41E3A 0%, #1E7B4D 50%, #D4AF37 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0A2E0A 0%, #1B5E1B 50%, #0A2E0A 100%);
    color: var(--texto-claro);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== FONDO ANIMADO ===== */
.fondo-animado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.luz-navidad {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    animation: parpadeo 1.5s infinite alternate;
}

@keyframes parpadeo {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ===== HEADER CLIENTE ===== */
.header-cliente {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    width: 100%;
}

.logo-container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.logo-img {
    width: 560px;
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.header-contenido {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
}

.header-texto {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.header-texto h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: white;
}

.header-texto p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 0;
}

.header-redes {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
}

/* ===== BOTONES REDES HEADER ===== */
.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--sombra);
    width: 250px;
    justify-content: center;
}

.btn-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-red:hover::before {
    left: 100%;
}

.btn-red:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--sombra-fuerte);
}

.btn-instagram {
    background: linear-gradient(45deg, #E1306C, #833AB4, #5851DB);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-red i {
    font-size: 22px;
}

/* ===== HEADER ADMIN ===== */
.header-admin {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--sombra);
    display: none;
}

.admin-mode .header-admin {
    display: block;
}

.admin-mode .header-cliente {
    display: none;
}

.stats-admin {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-card {
    background: var(--gradiente-navidad);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--sombra);
    border: 2px solid var(--navidad-oro);
}

.stat-valor {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

/* ===== BOTÓN LOGIN ADMIN ===== */
.btn-admin-login {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.btn-login {
    background: var(--gradiente-navidad);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-login:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* ===== MODAL LOGIN ===== */
.modal-login {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 4px solid var(--navidad-oro);
    animation: aparecer 0.4s ease;
}

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

/* ===== NAVEGACIÓN ADMIN EN FILA HORIZONTAL ===== */
.nav-admin {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: var(--sombra);
    border: 2px solid var(--navidad-oro);
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.admin-mode .nav-admin {
    display: flex;
}

.nav-tab {
    padding: 18px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--texto-oscuro);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    text-align: center;
    flex: 1;
}

.nav-tab.active {
    background: var(--gradiente-navidad);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.4);
}

.nav-tab i {
    font-size: 22px;
}

/* ===== CONTENIDO PESTAÑAS ===== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: deslizar 0.5s ease;
}

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

/* ===== TARJETAS PRINCIPALES ===== */
.tarjeta-principal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: var(--sombra-fuerte);
    overflow: hidden;
    margin-bottom: 40px;
    border: 2px solid var(--navidad-oro);
}

.tarjeta-header {
    padding: 25px 30px;
    background: var(--gradiente-navidad);
    color: white;
}

.tarjeta-header h2 {
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tarjeta-contenido {
    padding: 30px;
}

/* ===== FORMULARIOS ===== */
.form-grupo {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--texto-oscuro);
    font-size: 16px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--navidad-rojo);
    outline: none;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.15);
}

.form-fila {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ===== BOTONES GENERALES ===== */
.btn {
    padding: 18px 32px;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255,255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primario {
    background: var(--gradiente-rojo);
    color: white;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.btn-primario:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(196, 30, 58, 0.6);
}

.btn-exito {
    background: var(--gradiente-verde);
    color: white;
    box-shadow: 0 8px 25px rgba(30, 123, 77, 0.4);
}

.btn-exito:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(30, 123, 77, 0.6);
}

.btn-oro {
    background: var(--gradiente-oro);
    color: var(--navidad-gris);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-oro:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
}

.btn-pequeno {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 10px;
}

/* Botón Vender específico */
.btn-vender {
    background: linear-gradient(135deg, #1E7B4D, #2E8B57);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-vender:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 123, 77, 0.4);
}

/* Ajustes para botones en fila en producto-card */
.producto-card .btn-vender {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.producto-card .btn-eliminar {
    margin: 0;
}

/* ===== CATEGORÍAS ===== */
.categorias-nav {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    scrollbar-width: thin;
}

.categoria-btn {
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--texto-oscuro);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.categoria-btn.active {
    background: var(--gradiente-navidad);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
    border-color: var(--navidad-oro);
}

/* ===== GRILLA PRODUCTOS ===== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.producto-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--sombra);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradiente-navidad);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.producto-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--sombra-fuerte);
}

.producto-card:hover::before {
    transform: scaleX(1);
}

.producto-card.seleccionado {
    border-color: var(--navidad-oro);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.producto-card.seleccionado::before {
    transform: scaleX(1);
}

.producto-nombre {
    font-size: 20px;
    font-weight: 700;
    color: var(--texto-oscuro);
    margin-bottom: 12px;
}

.producto-precios {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.precio-real {
    color: var(--navidad-rojo);
    font-weight: 700;
    font-size: 14px;
    background: #FFE5E5;
    padding: 8px 15px;
    border-radius: 10px;
}

.precio-liquidado {
    color: var(--navidad-verde);
    font-weight: 700;
    font-size: 14px;
    background: #E5F4E5;
    padding: 8px 15px;
    border-radius: 10px;
}

.indicador-seleccionado {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradiente-navidad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.producto-card.seleccionado .indicador-seleccionado {
    transform: scale(1);
}

/* ===== RESUMEN ÁNCHELA ===== */
.resumen-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--sombra);
    margin-top: 40px;
    border: 2px solid var(--navidad-oro);
}

.lista-productos {
    max-height: 250px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 15px;
    border: 2px solid #eee;
}

.item-producto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--gradiente-navidad);
    border-radius: 10px;
    margin-bottom: 10px;
    color: white;
    animation: aparecer 0.3s ease;
}

.resumen-total {
    font-size: 24px;
    font-weight: 800;
    text-align: right;
    color: var(--navidad-rojo);
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

/* ===== MARCOS LEGALES MODIFICADO ===== */
.seccion-legal {
    background: var(--navidad-gris);
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    width: 100%;
}

.contenido-legal {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.texto-legal {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.texto-legal h3 {
    color: var(--navidad-oro);
    margin-bottom: 20px;
    font-size: 24px;
    text-align: left;
}

.texto-legal p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #ddd;
    font-size: 16px;
    text-align: left;
}

.redes-legal {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 200px;
    align-items: flex-end;
}

.enlace-red-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    width: 120px;
}

.enlace-red-legal:hover {
    transform: translateY(-5px);
}

.icono-red-legal {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.icono-instagram {
    background: linear-gradient(45deg, #E1306C, #833AB4);
    color: white;
}

.icono-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
}

/* ===== BOTONES FLOTANTES ===== */
.btn-flotante-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    z-index: 1000;
    animation: latido 2s infinite;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.client-mode .btn-flotante-whatsapp {
    display: flex;
}

.admin-mode .btn-flotante-whatsapp {
    display: none;
}

@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-flotante-agregar {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradiente-oro);
    color: var(--navidad-gris);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    animation: flotar 3s infinite ease-in-out;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    display: none;
}

.admin-mode .btn-flotante-agregar {
    display: flex;
}

@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== NOTIFICACIONES ===== */
.notificacion {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 20px 25px;
    border-radius: 15px;
    z-index: 3000;
    animation: deslizarNotif 0.5s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    box-shadow: var(--sombra-fuerte);
}

@keyframes deslizarNotif {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notificacion-exito {
    background: linear-gradient(135deg, #1E7B4D, #2E8B57);
    color: white;
    border-left: 5px solid var(--navidad-oro);
}

.notificacion-error {
    background: linear-gradient(135deg, #C41E3A, #FF2E4D);
    color: white;
    border-left: 5px solid var(--navidad-oro);
}

/* ===== BOTÓN ELIMINAR ===== */
.btn-eliminar {
    background: linear-gradient(135deg, #FF3B30, #C41E3A);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-eliminar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.4);
}

/* ===== FACTURAS ORGANIZADAS ===== */
.facturas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.factura-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    position: relative;
}

.factura-card.eve {
    border-left: 5px solid #C41E3A;
}

.factura-card.mateo {
    border-left: 5px solid #1E7B4D;
}

.factura-card.reinversion {
    border-left: 5px solid #FF6B35;
}

.factura-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.factura-titular {
    font-weight: 700;
    color: var(--texto-oscuro);
    font-size: 18px;
}

.factura-precio {
    font-size: 24px;
    font-weight: 800;
    color: var(--navidad-verde);
    margin: 10px 0;
}

.factura-descripcion {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.factura-fecha {
    color: #888;
    font-size: 12px;
    text-align: right;
}

/* ===== AGREGAR PRODUCTO FORM ===== */
.agregar-producto-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--sombra);
    margin-top: 30px;
    border: 2px solid var(--navidad-oro);
}

/* ===== NUEVOS ESTILOS PARA IMÁGENES Y CONTROLES ===== */
.producto-imagen-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    padding: 5px;
}

.producto-card:hover .producto-imagen-container img {
    transform: scale(1.05);
}

.producto-sin-imagen {
    background: var(--gradiente-navidad);
    color: white;
    font-size: 40px;
}

.controles-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.control-cantidad-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradiente-navidad);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.control-cantidad-btn:hover {
    transform: scale(1.1);
}

.cantidad-valor {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--texto-oscuro);
}

.btn-guardar-cambios {
    background: linear-gradient(135deg, #1E7B4D, #2E8B57);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.btn-guardar-cambios:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 123, 77, 0.4);
}

.btn-actualizar {
    position: fixed;
    top: 30px;
    left: 180px;
    z-index: 1000;
    background: linear-gradient(135deg, #1E7B4D, #2E8B57);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: none;
}

.btn-actualizar:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* ===== BOTÓN CERRAR SESIÓN ===== */
.btn-cerrar-sesion {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #FF3B30, #C41E3A);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: none;
}

.btn-cerrar-sesion:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .stats-admin {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-contenido {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .header-texto {
        text-align: center;
        max-width: 100%;
    }
    
    .header-redes {
        align-items: center;
        width: 100%;
    }
    
    .btn-red {
        width: 280px;
    }
    
    .contenido-legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .texto-legal {
        text-align: center;
    }
    
    .texto-legal h3 {
        text-align: center;
    }
    
    .redes-legal {
        align-items: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contenedor {
        padding: 15px;
    }
    
    .header-texto h1 {
        font-size: 32px;
    }
    
    .header-texto p {
        font-size: 16px;
    }
    
    .logo-img {
        width: 400px;
        max-width: 95%;
    }
    
    .stats-admin {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-admin {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .nav-tab {
        min-width: 140px;
        flex-shrink: 0;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .redes-legal {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
    
    .enlace-red-legal {
        width: 100px;
    }
    
    .btn-flotante-whatsapp,
    .btn-flotante-agregar {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .btn-flotante-agregar {
        bottom: 90px;
    }
    
    .facturas-container {
        grid-template-columns: 1fr;
    }
    
    .btn-login, .btn-cerrar-sesion, .btn-actualizar {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tarjeta-contenido {
        padding: 20px;
    }
    
    .form-fila {
        grid-template-columns: 1fr;
    }
    
    .categoria-btn {
        min-width: 120px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .header-texto h1 {
        font-size: 28px;
    }
    
    .logo-img {
        width: 300px;
    }
    
    .redes-legal {
        flex-direction: column;
        gap: 20px;
    }
    
    .enlace-red-legal {
        width: 120px;
    }
}
/* ===== SECCIÓN PRODUCTOS CON CARRUSEL ===== */
.seccion-productos {
    margin-bottom: 50px;
}

.producto-carrusel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--sombra-fuerte);
    border: 2px solid var(--navidad-oro);
}

.titulo-carrusel {
    color: var(--navidad-rojo);
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contenedor-carrusel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.foto-carrusel {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 20px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carrusel-interno {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px;
}

.slide.activo {
    opacity: 1;
}

.foto-producto {
    width: 400px;
    height: 300px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: white;
    padding: 10px;
}

.texto-carrusel {
    flex: 1;
    padding: 20px;
}

.texto-carrusel h3 {
    color: var(--navidad-rojo);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.texto-carrusel p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
}

.precio-carrusel {
    color: var(--navidad-verde);
    font-size: 20px;
    font-weight: 700;
    background: #E5F4E5;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 10px;
}

/* Estilos invertidos para alternar foto/texto */
.contenedor-carrusel.invertido .slide {
    flex-direction: row-reverse;
}

/* Botones flecha */
.btn-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradiente-navidad);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-flecha:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--navidad-rojo);
}

.flecha-izquierda {
    left: 15px;
}

.flecha-derecha {
    right: 15px;
}

/* Botón WhatsApp */
.btn-whatsapp-carrusel {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    width: fit-content;
    margin: 0 auto;
}

.btn-whatsapp-carrusel:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Indicadores del carrusel */
.indicadores-carrusel {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicador.activo {
    background: var(--navidad-rojo);
    transform: scale(1.3);
}

/* ===== RESPONSIVE PARA CARRUSEL ===== */
@media (max-width: 992px) {
    .slide {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .contenedor-carrusel.invertido .slide {
        flex-direction: column;
    }
    
    .foto-producto {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }
    
    .texto-carrusel {
        padding: 15px;
    }
    
    .texto-carrusel h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .producto-carrusel {
        padding: 20px;
    }
    
    .titulo-carrusel {
        font-size: 24px;
    }
    
    .foto-carrusel {
        min-height: 300px;
        padding: 15px;
    }
    
    .foto-producto {
        height: 200px;
    }
    
    .btn-flecha {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .btn-whatsapp-carrusel {
        padding: 15px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .producto-carrusel {
        padding: 15px;
    }
    
    .titulo-carrusel {
        font-size: 20px;
    }
    
    .foto-producto {
        height: 180px;
    }
    
    .texto-carrusel h3 {
        font-size: 20px;
    }
    
    .texto-carrusel p {
        font-size: 14px;
    }
    
    .precio-carrusel {
        font-size: 18px;
        padding: 8px 16px;
    }
    
    .btn-whatsapp-carrusel {
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* ===== MEJORAS PARA CARRUSEL ===== */

/* Contenedor de imagen sin marco */
.contenedor-imagen-carrusel {
    width: 450px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.imagen-carrusel {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background: transparent;
}

.slide:hover .imagen-carrusel {
    transform: scale(1.05);
}

/* Estilo profesional para texto */
.descripcion-carrusel {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.lista-productos-carrusel {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.lista-productos-carrusel li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

.lista-productos-carrusel li:before {
    content: "•";
    color: var(--navidad-rojo);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 3px;
}

.precio-carrusel {
    color: var(--navidad-verde);
    font-size: 22px;
    font-weight: 700;
    background: #E5F4E5;
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 15px;
    border: 2px solid #1E7B4D;
}

/* Ajustes para layout del slide */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.texto-carrusel {
    flex: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.texto-carrusel h3 {
    color: var(--navidad-rojo);
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 800;
    border-bottom: 3px solid var(--navidad-oro);
    padding-bottom: 10px;
}

/* Responsive para carrusel */
@media (max-width: 992px) {
    .slide {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 15px;
    }
    
    .contenedor-imagen-carrusel {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }
    
    .texto-carrusel {
        width: 100%;
        padding: 20px;
    }
    
    .texto-carrusel h3 {
        font-size: 22px;
    }
    
    .lista-productos-carrusel li {
        text-align: left;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .contenedor-imagen-carrusel {
        height: 220px;
    }
    
    .texto-carrusel {
        padding: 15px;
    }
    
    .precio-carrusel {
        font-size: 20px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .contenedor-imagen-carrusel {
        height: 200px;
    }
    
    .texto-carrusel h3 {
        font-size: 20px;
    }
    
    .descripcion-carrusel {
        font-size: 14px;
    }
    
    .lista-productos-carrusel li {
        font-size: 13px;
        padding-left: 20px;
    }
    
    .precio-carrusel {
        font-size: 18px;
        padding: 8px 16px;
    }
}

/* Eliminar fondo del carrusel para que la imagen quede limpia */
.foto-carrusel {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 15px;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}