/* Estilos personalizados para CITEX */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f8f9fa;
    --text-dark: #212529;
    --text-light: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Hero Section */
.hero-section {
/* Botón Libro de Reclamaciones en menú */
.libro-reclamaciones-btn {
    background: #e63946 !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    outline: none;
}
.libro-reclamaciones-btn:hover, .libro-reclamaciones-btn:focus {
    background: #b71c1c !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    text-decoration: none;
}
.libro-reclamaciones-btn i {
    font-size: 1.2em;
}
@media (max-width: 991.98px) {
    .libro-reclamaciones-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        font-size: 0.98rem;
        padding: 10px 0;
    }
}
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section > div {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

/* Navbar customizations */
.navbar-brand {
    transition: all 0.3s ease;
    cursor: pointer;
}

.navbar-brand:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Product cards */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    height: 250px;
    background: #ffffff; /* Fondo blanco limpio */
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef; /* Borde sutil */
}

.product-image-container img {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image-container img:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantener imagen completa sin cortar */
    object-position: center;
    transition: transform 0.3s ease;
    background: transparent; /* Fondo transparente */
    border-radius: 10px;
    padding: 20px; /* Más padding para que se vea mejor */
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto; /* Mantener proporciones originales */
}

.product-image[src=""], .product-image:not([src]) {
    display: none;
}

.product-image + .product-placeholder {
    display: none;
}

.product-image[style*="display: none"] + .product-placeholder {
    display: flex !important;
}

.product-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.precio-actualizado {
    color: #28a745 !important;
    font-size: 1.2rem !important;
    animation: resaltarPrecio 0.5s ease;
}

@keyframes resaltarPrecio {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.talla-selector {
    margin-bottom: 1rem;
}

.talla-selector label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.talla-selector select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.talla-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sistema de contacto flotante mejorado */
.contact-float-container {
    position: fixed !important;
    bottom: 2px !important; /* Aún más abajo */
    right: 2px !important;
    z-index: 1000;
    display: flex;
    flex-direction: column; /* Normal: botón abajo */
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-float-container.compact {
    bottom: 1px !important;
    right: 1px !important;
}

.contact-float-container.large {
    bottom: 3px !important;
    right: 3px !important;
    gap: 15px;
}

.contact-float-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0.9;
}

.contact-float-container.compact .contact-float-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
    box-shadow: 0 1px 6px rgba(102, 126, 234, 0.2);
    opacity: 0.8;
}

.contact-float-container.large .contact-float-btn {
    width: 60px;
    height: 60px;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
    opacity: 1;
}

.contact-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    opacity: 1;
}

.contact-float-btn.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

/* Controles de tamaño */
.size-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateY(-10px); /* Hacia arriba */
    transition: all 0.3s ease;
    pointer-events: none;
    position: absolute;
    bottom: 70px; /* Aparece arriba del botón */
    left: -40px; /* A la izquierda del botón */
}

.size-controls.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.size-control-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.contact-float-container.compact .size-control-btn {
    width: 25px;
    height: 25px;
    font-size: 10px;
}

.contact-float-container.large .size-control-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

.size-control-btn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.size-control-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(-20px); /* Hacia arriba */
    transition: all 0.3s ease;
    pointer-events: none;
    position: absolute;
    bottom: 70px; /* Aparece arriba del botón */
    right: 0;
    align-items: center;
}

.contact-options.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.contact-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    gap: 6px;
}

.contact-float-container.compact .contact-option {
    width: 140px;
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 15px;
    gap: 5px;
}

.contact-float-container.large .contact-option {
    width: 180px;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 25px;
    gap: 8px;
}

.whatsapp-option {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.whatsapp-option:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    color: white;
}

.telegram-option {
    background: linear-gradient(135deg, #0088cc 0%, #005885 100%);
}

.telegram-option:hover {
    background: linear-gradient(135deg, #005885 0%, #0088cc 100%);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.contact-option i {
    font-size: 14px;
}

.contact-float-container.compact .contact-option i {
    font-size: 12px;
}

.contact-float-container.large .contact-option i {
    font-size: 16px;
}

/* Indicador de posición mínima */
.position-indicator {
    position: fixed;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    z-index: 999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-float-container.compact ~ .position-indicator {
    opacity: 0.5;
}

.contact-float-container.large ~ .position-indicator {
    opacity: 0;
}

/* Modal de chat */
.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.375rem 0.375rem 0 0;
}

.chat-header.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.chat-header.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005885 100%);
}

.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    background: #E5DDD5; /* Color de fondo típico de WhatsApp */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-40z'/%3E%3C/g%3E%3C/svg%3E");
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.message.received .message-content {
    background: #FFFFFF;
    border-bottom-left-radius: 4px;
    border: 1px solid #E5E5EA;
}

.message.sent .message-content {
    background: #DCF8C6;
    color: #333333;
    border-bottom-right-radius: 4px;
    border: 1px solid #25D366;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    text-align: right;
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-input-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input {
    resize: none;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.chat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.chat-actions .btn {
    border-radius: 20px;
    font-size: 12px;
    padding: 6px 12px;
}

.chat-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    padding: 8px 20px;
}

.chat-actions .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
}

/* Estilos específicos para modal de WhatsApp */
.modal.whatsapp-modal .chat-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

.modal.whatsapp-modal .chat-actions .btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    font-weight: 600;
    padding: 8px 20px;
    color: white;
}

.modal.whatsapp-modal .chat-actions .btn-primary:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Mejorar el indicador de escritura para WhatsApp */
.modal.whatsapp-modal .typing-indicator {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    color: #25D366;
}

/* Tiempo de mensajes en WhatsApp */
.modal.whatsapp-modal .message.sent .message-time {
    color: #128C7E;
}

.modal.whatsapp-modal .message.received .message-time {
    color: #667;
}

/* Estilos específicos para modal de Telegram */
.modal.telegram-modal .chat-input:focus {
    border-color: #0088CC;
    box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.25);
}

.modal.telegram-modal .chat-actions .btn-primary {
    background: linear-gradient(135deg, #0088CC 0%, #005885 100%);
    border: none;
    font-weight: 600;
    padding: 8px 20px;
    color: white;
}

.modal.telegram-modal .chat-actions .btn-primary:hover {
    background: linear-gradient(135deg, #005885 0%, #0088CC 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.modal.telegram-modal .message.sent .message-content {
    background: #0088CC;
    color: white;
    border: 1px solid #005885;
}

.modal.telegram-modal .typing-indicator {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    color: #0088CC;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Social links */
.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ccc !important;
}

/* Badge customizations */
.badge {
    font-size: 0.75rem;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* FORZAR AUTO-AJUSTE DEL BADGE - OVERRIDE COMPLETO DE BOOTSTRAP */
#cart-count.badge,
.badge#cart-count,
span#cart-count {
    /* Forzar ancho automático */
    width: auto !important;
    min-width: 20px !important;
    max-width: none !important;
    
    /* Layout flexbox para centrado perfecto */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Texto y tipografía */
    white-space: nowrap !important;
    text-overflow: visible !important;
    overflow: visible !important;
    
    /* Espaciado para números múltiples */
    padding: 2px 6px !important;
    
    /* Altura fija pero ancho flexible */
    height: 20px !important;
    line-height: 1 !important;
    
    /* Estética */
    border-radius: 10px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    
    /* Eliminar restricciones de Bootstrap */
    box-sizing: border-box !important;
}

/* CASOS ESPECIALES: Números de 1 dígito circulares */
#cart-count[data-count="0"],
#cart-count[data-count="1"], 
#cart-count[data-count="2"],
#cart-count[data-count="3"],
#cart-count[data-count="4"],
#cart-count[data-count="5"],
#cart-count[data-count="6"],
#cart-count[data-count="7"],
#cart-count[data-count="8"],
#cart-count[data-count="9"] {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

/* DEBUGGING: Resaltar cuando tiene múltiples dígitos */
#cart-count:not([data-count="0"]):not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]):not([data-count="7"]):not([data-count="8"]):not([data-count="9"]) {
    background-color: #28a745 !important; /* Verde para debug */
    min-width: 30px !important;
    padding: 2px 8px !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Cart summary */
.cart-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.cart-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

/* Thumbnails para galería de productos */
.thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    padding: 2px;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
    background: white;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-float-container {
        bottom: 15px;
        right: 15px;
    }
    
    .contact-float-container.compact {
        bottom: 10px;
        right: 10px;
    }
    
    .contact-float-container.large {
        bottom: 20px;
        right: 20px;
    }
    
    .contact-float-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .contact-float-container.compact .contact-float-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .contact-float-container.large .contact-float-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .contact-option {
        width: 140px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .contact-float-container.compact .contact-option {
        width: 120px;
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .contact-float-container.large .contact-option {
        width: 160px;
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .size-control-btn {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
    
    .contact-float-container.compact .size-control-btn {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }
    
    .contact-float-container.large .size-control-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .chat-container {
        height: 400px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .chat-input-container {
        padding: 15px;
    }
    
    .chat-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .chat-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .product-image {
        height: 200px;
        font-size: 3rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success message */
.alert-success {
    border-radius: 15px;
    border: none;
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
}

/* Error message */
.alert-danger {
    border-radius: 15px;
    border: none;
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
}

/* Modal customizations */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Imagen pequeña para carrito - CSS principal */
.product-image-small {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
    overflow: hidden;
    border: 2px solid #e9ecef;
    padding: 5px;
    margin: 0 auto;
}

.product-image-small .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
    background: white;
}

.product-image-small .product-placeholder {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-small .placeholder-icon {
    font-size: 2rem;
}

/* Forzar posición del botón flotante - IMPORTANTE */
#contactContainer,
.contact-float-container {
    position: fixed !important;
    bottom: 2px !important; /* Aún más abajo con despliegue hacia arriba */
    right: 2px !important;
    z-index: 999999 !important;
}

#contactContainer.compact {
    bottom: 1px !important;
    right: 1px !important;
}

#contactContainer.large {
    bottom: 3px !important;
    right: 3px !important;
}

/* Asegurar que nunca interfiera con footer */
@media (max-width: 576px) {
    #contactContainer {
        bottom: 2px !important;
        right: 2px !important;
    }
}

/* Estilos responsive específicos para el botón flotante */
@media (max-width: 768px) {
    /* En móviles, posicionar el botón aún más abajo para evitar interferencias */
    .contact-float-container {
        bottom: 5px;
        right: 5px;
    }
    
    .contact-float-container.compact {
        bottom: 3px;
        right: 3px;
    }
    
    .contact-float-container.large {
        bottom: 8px;
        right: 8px;
    }
    
    /* Asegurar que las opciones de contacto no se salgan de la pantalla */
    .contact-options {
        max-width: calc(100vw - 20px);
    }
    
    .contact-option {
        width: 120px;
        font-size: 10px;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    /* En pantallas muy pequeñas, hacer el botón aún más compacto */
    .contact-float-container {
        bottom: 3px;
        right: 3px;
    }
    
    .contact-float-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .contact-option {
        width: 100px;
        font-size: 9px;
        padding: 6px 8px;
    }
    
    .size-control-btn {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
}

/* Asegurar que el botón nunca cubra enlaces importantes del footer */
@media (max-height: 600px) {
    .contact-float-container {
        bottom: 5px;
        right: 5px;
    }
    
    .contact-float-container.large {
        bottom: 8px;
        right: 8px;
    }
}

/* Prevenir superposición con elementos del footer en pantallas anchas */
@media (min-width: 1200px) {
    .contact-float-container {
        bottom: 15px;
        right: 15px;
    }
    
    .contact-float-container.large {
        bottom: 20px;
        right: 20px;
    }
}

/* ======================================
   SISTEMA DE NOTIFICACIONES PERSONALIZADO
   ====================================== */

/* Contenedor principal de notificaciones */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

/* Notificación base */
.custom-notification {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #007bff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Animación de entrada */
.custom-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Animación de salida */
.custom-notification.hide {
    transform: translateX(100%);
    opacity: 0;
    margin-bottom: -80px;
}

/* Tipos de notificación */
.custom-notification.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.custom-notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #ffeaea 100%);
}

.custom-notification.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffdf5 0%, #fff9e6 100%);
}

.custom-notification.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f8fdff 0%, #e8f7ff 100%);
}

.custom-notification.confirm {
    border-left-color: #6f42c1;
    background: linear-gradient(135deg, #fbf9ff 0%, #f3ebff 100%);
}

/* Icono de la notificación */
.notification-icon {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-icon.success {
    color: #28a745;
}

.notification-icon.error {
    color: #dc3545;
}

.notification-icon.warning {
    color: #ffc107;
}

.notification-icon.info {
    color: #17a2b8;
}

.notification-icon.confirm {
    color: #6f42c1;
}

/* Contenido de la notificación */
.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.notification-message {
    font-size: 13px;
    color: #5a6c7d;
    margin: 0;
    line-height: 1.4;
}

/* Botones de acción */
.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-btn.primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.notification-btn.primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
}

.notification-btn.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.notification-btn.success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-1px);
}

.notification-btn.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.notification-btn.danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
}

.notification-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.notification-btn.secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
}

/* Botón de cerrar */
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #6c757d;
}

/* Barra de progreso */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 0 0 12px 12px;
    animation: notificationProgress 5s linear;
}

.notification-progress.success {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

.notification-progress.error {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.notification-progress.warning {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.notification-progress.info {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.notification-progress.confirm {
    background: linear-gradient(90deg, #6f42c1, #5a2a8a);
}

@keyframes notificationProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .custom-notification {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    .notification-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Efectos especiales */
.custom-notification:hover {
    transform: translateX(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.custom-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
    border-radius: 12px;
}

/* Animación de entrada alternativa para confirmaciones */
.custom-notification.confirm {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: translateX(100%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: translateX(5px) scale(0.98);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Overlay para notificaciones modales */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.notification-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.notification-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    margin: 20px;
    text-align: center;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.notification-overlay.show .notification-modal {
    transform: scale(1);
}

.notification-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.notification-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.notification-modal-message {
    font-size: 14px;
    color: #5a6c7d;
    margin-bottom: 24px;
    line-height: 1.5;
}

.notification-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.notification-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.notification-modal-btn.primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.notification-modal-btn.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.notification-modal-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.notification-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* MEJORAS ADICIONALES DE RESPONSIVIDAD PARA CITEX */

/* Responsividad mejorada para tarjetas de productos */
@media (max-width: 576px) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .product-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .product-price {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .talla-selector select {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Mejoras para alertas en móviles */
@media (max-width: 576px) {
    .alert {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .alert.small {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .alert-link {
        font-weight: 600;
    }
}

/* Mejoras para el hero section en dispositivos muy pequeños */
@media (max-width: 480px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Mejoras para la navegación en móviles */
@media (max-width: 767px) {
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .navbar-nav .badge {
        font-size: 0.8rem;
    }
}

/* Mejoras para el grid de productos */
@media (max-width: 767px) {
    #product-grid .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    #product-grid .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Mejoras para el footer en móviles */
@media (max-width: 767px) {
    footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer p, footer li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .social-links a {
        display: inline-block;
        margin: 0.25rem;
        font-size: 0.9rem;
    }
}

/* Asegurar que las imágenes de productos sean responsivas */
/* Los estilos principales están definidos en .product-image-container */

@media (max-width: 576px) {
    .product-image-container {
        height: 220px;
    }
}

/* Mejoras para botones en móviles */
@media (max-width: 576px) {
    .d-grid .btn {
        padding: 0.75rem;
        font-weight: 500;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.5rem;
    }
}

/* Asegurar que los modales sean responsivos */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .chat-input {
        font-size: 0.9rem;
    }
    
    .chat-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        margin: 0.25rem;
    }
}

/* Mejoras adicionales para el botón flotante en móviles */
@media (max-width: 480px) {
    .contact-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-options {
        right: 0;
        bottom: 60px;
    }
    
    .contact-option {
        padding: 0.75rem;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .size-controls {
        right: 0;
        bottom: 60px;
    }
    
    .size-control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Optimización para tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .product-card {
        margin-bottom: 2rem;
    }
}

/* Asegurar overflow en dispositivos pequeños */
@media (max-width: 575px) {
    body {
        overflow-x: hidden;
    }
    
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Mejoras específicas para la visualización de imágenes de productos */
.product-image-container img {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image-container img:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Asegurar que las imágenes siempre mantengan su aspecto */
.product-image {
    aspect-ratio: auto; /* Mantener proporciones originales */
}

/* Fallback mejorado para imágenes que no cargan */
.product-image[src=""], .product-image:not([src]) {
    display: none;
}

.product-image + .product-placeholder {
    display: none;
}

.product-image[style*="display: none"] + .product-placeholder {
    display: flex !important;
}

/* Responsive para el contenedor de imagen */
@media (max-width: 576px) {
    .product-image-container {
        height: 220px;
    }
}
