html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

.hero-bg {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 30%, #e0f7ff 60%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.1);
}
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15), 0 10px 40px rgba(0, 123, 255, 0.1);
    transform: translateY(-8px);
}

.text-glow-cyan { text-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.2); }
.text-glow-blue { text-shadow: 0 0 20px rgba(0, 123, 255, 0.5), 0 0 40px rgba(0, 123, 255, 0.2); }

.btn-glow { position: relative; overflow: hidden; }
.btn-glow::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: left 0.5s;
}
.btn-glow:hover::before { left: 100%; }

.grid-lines {
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.3);
    pointer-events: none;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
}
.whatsapp-pulse { animation: whatsapp-pulse 2s infinite; }

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #00e5ff, #007bff);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.icon-box {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 123, 255, 0.1));
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), rgba(0, 123, 255, 0.3), transparent);
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-menu.open { transform: translateX(0); }

/* ===== PRODUCTOS ===== */
.products-container { position: relative; overflow: hidden; }

.products-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 1rem;
    scrollbar-width: none;
}
.products-track::-webkit-scrollbar { display: none; }

.product-card {
    flex: 0 0 85vw;
    max-width: 340px;
    scroll-snap-align: center;
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

@media (min-width: 768px) {
    .products-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        overflow-x: visible;
        padding: 2rem 0;
    }
    .product-card { flex: none; max-width: none; scroll-snap-align: none; }
    .product-card:nth-child(2) { transform: translateY(30px); }
    .product-card:nth-child(4) { transform: translateY(30px); }
    .product-card:nth-child(5) { transform: translateY(30px); }
}
@media (min-width: 1024px) {
    .products-track { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
    .product-card:nth-child(2) { transform: translateY(40px); }
    .product-card:nth-child(4) { transform: translateY(40px); }
    .product-card:nth-child(5) { transform: translateY(40px); }
}

.product-card.featured { border-color: rgba(0, 229, 255, 0.4); }
.product-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.6rem;
    background: conic-gradient(from 0deg, transparent, #00e5ff, #007bff, transparent);
    z-index: -1;
    animation: rotate-glow 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}
.product-card.featured:hover::before,
.product-card.featured.active::before { opacity: 1; }

@keyframes rotate-glow { 100% { transform: rotate(360deg); } }

.product-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.12), 0 10px 40px rgba(0, 123, 255, 0.08);
    transform: translateY(-8px) scale(1.02);
}
@media (min-width: 768px) {
    .product-card:nth-child(2):hover,
    .product-card:nth-child(4):hover,
    .product-card:nth-child(5):hover { transform: translateY(22px) scale(1.02); }
}

.product-visual { height: 180px; position: relative; overflow: hidden; }
.product-visual .gradient-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(0,123,255,0.08));
    transition: all 0.5s;
}
.product-card:hover .product-visual .gradient-bg {
    background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(0,123,255,0.15));
}
.product-visual .icon-wrap {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-visual .icon-wrap { transform: scale(1.1); }

.featured-badge {
    position: absolute; top: 1rem; right: 1rem;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #00e5ff, #007bff);
    color: white; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    border-radius: 9999px;
    box-shadow: 0 0 15px rgba(0,229,255,0.4);
    z-index: 10;
}

.product-details {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    opacity: 0;
}
.product-card.active .product-details { max-height: 400px; opacity: 1; }

.expand-hint {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.8rem; color: #00e5ff; font-weight: 500;
    transition: all 0.3s;
}
.product-card.active .expand-hint svg { transform: rotate(180deg); }

.feature-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0; font-size: 0.85rem; color: #4b5563;
}
.feature-item svg { width: 1rem; height: 1rem; color: #00e5ff; flex-shrink: 0; }

.btn-wa-product {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #00e5ff, #007bff);
    color: white; font-weight: 600; font-size: 0.9rem;
    border-radius: 1rem; transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0,229,255,0.2);
}
.btn-wa-product:hover { box-shadow: 0 0 25px rgba(0,229,255,0.4); transform: translateY(-2px); }

.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
@media (min-width: 768px) { .carousel-dots { display: none; } }
.carousel-dot {
    width: 8px; height: 8px; border-radius: 9999px;
    background: #d1d5db; transition: all 0.3s; cursor: pointer;
}
.carousel-dot.active { width: 24px; background: linear-gradient(90deg, #00e5ff, #007bff); }

.scroll-hint {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    color: #9ca3af; font-size: 0.8rem; margin-bottom: 0.5rem;
    animation: swipe-hint 2s ease-in-out infinite;
}
@media (min-width: 768px) { .scroll-hint { display: none; } }
@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.products-nav { display: none; }
@media (min-width: 768px) {
    .products-nav { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
}
.products-nav button {
    width: 48px; height: 48px; border-radius: 50%;
    background: white; border: 1px solid rgba(0,229,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #00e5ff; transition: all 0.3s; cursor: pointer;
}
.products-nav button:hover {
    background: linear-gradient(135deg, #00e5ff, #007bff);
    color: white; border-color: transparent;
    box-shadow: 0 0 20px rgba(0,229,255,0.3);
}
