/* =====================================================================
   TRANSPALETAELECTRICA.COM — Custom CSS — Tema Claro
   ===================================================================== */

/* Cards con sombra suave */
.glass-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 25px rgba(245,158,11,0.08), 0 4px 10px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Pulse animation for WhatsApp button */
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}
.animate-pulse-green { animation: pulse-green 2s infinite; }

/* Hero gradient — claro */
.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }

.progress-bar { transition: width 0.5s ease; }

/* Table styles — claro */
.specs-table tr:nth-child(even) { background: #f8fafc; }
.specs-table tr:hover { background: #fef3c7; }

/* Comparison highlight */
.compare-best { background: #fffbeb; border-left: 3px solid #F59E0B; }

/* Range slider custom */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    background: #F59E0B;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(245,158,11,0.3);
}
input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px;
    background: #F59E0B;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Counter animation */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
.count-up { animation: countUp 0.8s ease-out forwards; }

/* Mega menu */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}
.group:hover .mega-menu,
.mega-trigger:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile accordion */
.mobile-sub { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-sub.open { max-height: 1000px; }

/* Responsive */
@media (max-width: 768px) {
    .glass-card { border-radius: 12px; }
}

/* FORZAR HEADER BLANCO SIEMPRE */
#main-header {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Suavizar fotos pixeladas de productos */
.product-img-smooth {
    image-rendering: auto;
    image-rendering: smooth;
    -webkit-filter: contrast(1.02) brightness(1.01);
    filter: contrast(1.02) brightness(1.01);
}
