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

:root {
    --primary-color: #FF6B35;
    --secondary-color: #1E3A8A;
    --accent-color: #F59E0B;
    --dark-bg: #0F172A;
    --light-bg: #F8FAFC;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --warning-color: #FBBF24;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Fondo sutil de herramientas con patrón moderno */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Patrón de herramientas muy sutil */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="20" y="50" font-size="30" opacity="0.03" fill="%23FF6B35">🔧</text></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="20" y="50" font-size="35" opacity="0.03" fill="%231E3A8A">🔨</text></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="20" y="50" font-size="25" opacity="0.02" fill="%23F59E0B">⚙️</text></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="20" y="50" font-size="28" opacity="0.02" fill="%23FF6B35">🛠️</text></svg>');
    background-size: 180px 180px, 220px 220px, 160px 160px, 200px 200px;
    background-position: 0 0, 80px 80px, 140px 40px, 50px 120px;
    pointer-events: none;
    z-index: 0;
    animation: floatPattern 60s linear infinite;
}

@keyframes floatPattern {
    0% { background-position: 0 0, 80px 80px, 140px 40px, 50px 120px; }
    100% { background-position: 200px 200px, 280px 280px, 340px 240px, 250px 320px; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    min-height: 100vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 100px rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #2563EB 100%);
    color: white;
    padding: 20px 25px 15px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid var(--primary-color);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 107, 53, 0.4);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4),
                 0 0 30px rgba(255, 107, 53, 0.5);
    line-height: 1.2;
}

.slogan {
    font-size: 0.85rem;
    color: #FDE68A;
    font-weight: 600;
    margin-top: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.redes-sociales {
    display: flex;
    gap: 12px;
}

.redes-sociales {
    display: flex;
    gap: 10px;
}

.red-social {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.red-social:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #F59E0B 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
    border-color: white;
}

.red-social svg {
    width: 18px;
    height: 18px;
    color: white;
}

.direccion {
    font-size: 0.85rem;
    text-align: center;
    color: #FDE68A;
    font-weight: 500;
    margin-top: 8px;
}

/* ==================== BUSCADOR ==================== */
.search-box {
    padding: 15px 20px;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border-bottom: 3px solid var(--primary-color);
}

.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--primary-color);
}

#buscador {
    width: 100%;
    padding: 15px 20px 15px 55px;
    border: 3px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#buscador:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.15),
                0 8px 25px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

/* ==================== CATEGORÍAS ==================== */
.categorias-nav {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 3px solid var(--primary-color);
    overflow-x: auto;
    white-space: nowrap;
}

.categorias-nav::-webkit-scrollbar {
    height: 8px;
}

.categorias-nav::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.categorias-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

.categoria-btn {
    padding: 12px 24px;
    border: 3px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.categoria-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.categoria-btn.active {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: white;
    border-color: #1E3A8A;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* ==================== PRODUCTOS ==================== */
main {
    padding: 30px;
    min-height: 400px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.producto-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    position: relative;
}

.producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.producto-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.3),
                0 0 40px rgba(30, 58, 138, 0.1);
    border-color: var(--primary-color);
}

.producto-imagen {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-imagen {
    transform: scale(1.08);
}

.producto-info {
    padding: 20px;
}

.producto-codigo {
    font-size: 0.75rem;
    color: white;
    background: linear-gradient(135deg, var(--secondary-color), #3B82F6);
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.producto-nombre {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 45px;
}

.producto-descripcion {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.producto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.producto-precio {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cantidad-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-bg);
    border-radius: 25px;
    padding: 5px;
}

.cantidad-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

.cantidad-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.5);
}

.cantidad-input {
    width: 45px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.btn-agregar {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-agregar:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* ==================== CARRITO RESUMEN ==================== */
.carrito-resumen {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DC 100%);
    padding: 30px;
    margin: 0 30px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.25);
    border: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.carrito-resumen::before {
    content: '🛒';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 150px;
    opacity: 0.08;
    transform: rotate(-15deg);
}

.carrito-titulo {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--secondary-color), #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 900;
}

.carrito-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.carrito-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.carrito-item-info {
    flex: 1;
}

.carrito-item-nombre {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.carrito-item-detalle {
    font-size: 0.85rem;
    color: var(--text-light);
}

.carrito-item-precio {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-left: 15px;
}

.carrito-vacio {
    text-align: center;
    color: var(--text-light);
    padding: 30px;
    font-style: italic;
}

.comentarios-box {
    margin: 20px 0;
}

.comentarios-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.comentarios-box textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    resize: vertical;
    font-size: 0.95rem;
}

.comentarios-box textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.totales {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1.05rem;
}

.total-final {
    border-top: 3px solid var(--primary-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary-color);
}

/* ==================== FORMULARIO ==================== */
.form-pedido {
    background: white;
    padding: 30px;
    margin: 0 30px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-titulo {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 800;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.campo-ayuda {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
    font-style: italic;
}

.seccion-entrega {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.info-box {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
}

.info-box.success {
    border-left-color: var(--success-color);
    background: #e8f8f5;
}

.transferencia-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid var(--border-color);
}

.transferencia-box h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.datos-banco {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.banco-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.banco-item:last-child {
    border-bottom: none;
}

.banco-nombre {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.banco-numero {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.banco-titular {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.banco-titular p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.btn-ubicacion {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-ubicacion:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.ubicacion-capturada {
    background: #e8f8f5;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    color: var(--success-color);
    font-weight: 600;
    border-left: 4px solid var(--success-color);
}

.preview-comprobante {
    background: #e8f8f5;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
}

.preview-comprobante img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.checkbox-campo {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.checkbox-label input {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.factura-box {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.btn-enviar {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

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

.btn-enviar:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enviar:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.btn-icon {
    font-size: 1.3rem;
}

/* ==================== CHATBOT ==================== */
.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    z-index: 999;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.chatbot-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.05rem;
}

.chatbot-header:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.chatbot-toggle {
    transition: transform 0.3s ease;
}

.chatbot-toggle.open {
    transform: rotate(180deg);
}

.chatbot-body {
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 350px;
    background: #f8f9fa;
}

.mensaje-bot {
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--primary-color);
}

.mensaje-usuario {
    background: var(--secondary-color);
    color: white;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    margin-left: 30px;
    text-align: right;
}

.opciones-rapidas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.opciones-rapidas button {
    padding: 8px 12px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.opciones-rapidas button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chatbot-input-container {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 2px solid var(--border-color);
}

.chatbot-input-container input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.chatbot-input-container button {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.chatbot-input-container button:hover {
    background: var(--primary-color);
}

/* ==================== FLOTANTES ==================== */
.whatsapp-flotante,
.carrito-flotante {
    position: fixed;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    animation: floatBubble 3s ease-in-out infinite;
}

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

.whatsapp-flotante {
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-flotante:hover {
    transform: scale(1.15) rotate(5deg) translateY(0);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-flotante svg {
    width: 35px;
    height: 35px;
    color: white;
}

.carrito-flotante {
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    font-size: 1.8rem;
    position: relative;
    animation-delay: 0.5s;
}

.carrito-flotante:hover {
    transform: scale(1.15) rotate(-5deg) translateY(0);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
    animation: none;
}

#carritoContador {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ==================== FOOTER ==================== */
footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    padding: 40px 30px 20px;
    text-align: center;
    position: relative;
    margin-top: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-slogan {
    font-size: 1rem;
    color: #FDE68A;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-direccion,
.footer-telefono {
    font-size: 0.95rem;
    margin: 10px 0;
    color: #E2E8F0;
}

.footer-telefono a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-telefono a:hover {
    color: var(--accent-color);
}

.footer-redes {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-redes a {
    color: #E2E8F0;
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-redes a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.9rem;
    color: #94A3B8;
    margin-top: 20px;
}

.footer-dev {
    font-size: 0.9rem;
    color: #CBD5E1;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    display: inline-block;
}

.footer-dev a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.footer-dev a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* ==================== UTILIDADES ==================== */
.oculto {
    display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .container {
        box-shadow: none;
    }

    header {
        padding: 12px 15px 10px;
    }

    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .logo {
        width: 55px;
        height: 55px;
    }

    .logo-text {
        text-align: left;
    }

    .logo-text h1 {
        font-size: 1.3rem;
        line-height: 1.1;
    }

    .slogan {
        font-size: 0.75rem;
        margin-top: 2px;
    }

    .redes-sociales {
        gap: 8px;
    }

    .red-social {
        width: 35px;
        height: 35px;
    }

    .red-social svg {
        width: 16px;
        height: 16px;
    }

    .direccion {
        font-size: 0.75rem;
        margin-top: 5px;
    }

    .search-box {
        padding: 12px 15px;
    }

    #buscador {
        padding: 12px 15px 12px 45px;
        font-size: 0.9rem;
    }

    .search-icon {
        font-size: 1.1rem;
        left: 15px;
    }

    .categorias-nav {
        padding: 12px 15px;
    }

    .categoria-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .chatbot-container {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 110px;
    }

    .carrito-flotante {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-flotante {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 20px;
    }

    main,
    .carrito-resumen,
    .form-pedido {
        padding: 15px;
        margin: 0 10px 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 12px 8px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .slogan {
        font-size: 0.7rem;
    }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .producto-footer {
        flex-direction: column;
        gap: 10px;
    }

    .btn-agregar {
        width: 100%;
    }

    .carrito-flotante,
    .whatsapp-flotante {
        width: 55px;
        height: 55px;
        bottom: 15px;
    }

    .carrito-flotante {
        right: 15px;
    }

    .whatsapp-flotante {
        left: 15px;
    }
}
