/* =========================================
   TIENDA TECNI-DYNAMICS - ESTILOS PRINCIPALES
   ========================================= */

/* ═══ VIEW MODE: TAB/SPA ═══ */
body.tab-mode [data-section] {
    display: none;
}

body.tab-mode [data-section].active-section {
    display: block;
}

/* Push content below fixed navbar in tab mode */
body.tab-mode [data-section]:not([data-section="inicio"]).active-section>*:first-child {
    padding-top: 11rem !important;
}

body.tab-mode [data-section="catalogo"].active-section>*:first-child,
body.tab-mode [data-section="contacto"].active-section>*:first-child {
    padding-top: 9rem !important;
}

/* Scroll offset for anchor links (scroll mode) */
#about,
#products,
#contacto {
    scroll-margin-top: 3.5rem;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav links — brighter & glowing */
.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 0 8px rgba(255, 102, 219, 0.3);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffb3f0 !important;
    text-shadow: 0 0 15px rgba(255, 102, 219, 0.6);
}

/* Nav link blink animation */
.nav-blink {
    color: #fff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 102, 219, 0.9) !important;
    transform: scale(1.25);
    transition: all 0.6s ease-in-out;
}

/* Active nav link in tab mode */
body.tab-mode .nav-link-active {
    color: #ffb3f0 !important;
    text-shadow: 0 0 20px rgba(255, 102, 219, 0.7), 0 0 40px rgba(255, 0, 194, 0.3);
    position: relative;
    font-weight: 700;
}

body.tab-mode .nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff00c2, #ff66db, #ff00c2);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 0, 194, 0.6), 0 0 20px rgba(255, 0, 194, 0.3);
}

/* View mode toggle button — glowing pulse */
#btn-view-mode {
    border-color: rgba(255, 0, 194, 0.5);
    box-shadow: 0 0 12px rgba(255, 0, 194, 0.4), 0 0 25px rgba(255, 0, 194, 0.2);
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(255, 0, 194, 0.4), 0 0 25px rgba(255, 0, 194, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 194, 0.7), 0 0 40px rgba(255, 0, 194, 0.4);
    }
}

/* View mode toggle button active state (tab mode) */
#btn-view-mode.active {
    border-color: rgba(255, 0, 194, 0.6);
    box-shadow: 0 0 15px rgba(255, 0, 194, 0.5), 0 0 30px rgba(255, 0, 194, 0.3);
    animation: btnPulse 2s ease-in-out infinite;
}

/* BASE STYLES */
body {
    background-color: #0f0c29;
    background-image: radial-gradient(circle at 50% 0%, #2a2457 0%, #0f0c29 60%);
    color: #e2e8f0;
    min-height: 100vh;
}

/* HERO SHIMMER TEXT */
.hero-shimmer {
    background: linear-gradient(90deg,
            #ff66db 0%,
            #c084fc 20%,
            #e879f9 40%,
            #818cf8 60%,
            #ff66db 80%,
            #c084fc 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 25px rgba(255, 102, 219, 0.4)) drop-shadow(0 0 50px rgba(255, 0, 194, 0.2));
    padding-right: 0.15em;
    display: inline-block;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* NAVIGATION */
.glass-nav {
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #ff00c2;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* CARDS */
.product-card {
    background: rgba(36, 27, 77, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 194, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

/* Uniform product image height */
.product-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* UTILS */
.input-pro {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s;
}

.input-pro:focus {
    outline: none;
    border-color: #ff00c2;
    background: rgba(0, 0, 0, 0.5);
}

/* CHATBOT STYLES */
.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-out;
}

.chat-user {
    background: #ff00c2;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bot {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Markdown rendering styles */
.markdown-content p {
    margin-bottom: 0.5rem;
}

.markdown-content p:last-child {
    margin-bottom: 0;
}

.markdown-content pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.markdown-content code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-content a {
    color: #ff66db;
    text-decoration: underline;
}

.markdown-content strong {
    color: #ff66db;
    font-weight: 700;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #ff66db;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chipGlow {
    0%, 100% {
        border-color: rgba(255, 102, 219, 0.3);
        box-shadow: 0 0 4px rgba(255, 102, 219, 0.15), inset 0 0 4px rgba(255, 102, 219, 0.05);
    }
    50% {
        border-color: rgba(255, 102, 219, 0.85);
        box-shadow: 0 0 12px rgba(255, 102, 219, 0.5), inset 0 0 8px rgba(255, 102, 219, 0.25);
    }
}

.animate-chip-glow {
    animation: chipGlow 2s infinite ease-in-out;
}

/* Share button — pulsing glow on hover */
@keyframes shareGlow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(255, 0, 194, 0.4), 0 0 24px rgba(255, 0, 194, 0.2);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 194, 0.8), 0 0 50px rgba(255, 0, 194, 0.4), 0 0 80px rgba(124, 58, 237, 0.2);
        filter: brightness(1.2);
    }
}

#btn-share-product {
    background-color: #ff00c2;
    color: #fff;
    border-color: rgba(255, 0, 194, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 194, 0.4);
    transition: all 0.3s ease;
}

#btn-share-product:hover {
    animation: shareGlow 1.5s ease-in-out infinite;
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* MOBILE MENU TRANSITION */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* HERO CAROUSEL */
.hero-carousel-track {
    position: relative;
    width: 100%;
    max-width: 28rem; /* Refuerzo del max-w-md de Tailwind por si la utility se purga */
    aspect-ratio: 4 / 3;
    overflow: hidden; /* Antes era visible; ahora contiene cualquier imagen que se salga */
    border-radius: 1rem;
    transition: transform 0.5s ease;
    z-index: 5; /* Por encima de los blobs decorativos del hero */
}

.hero-carousel-track:hover {
    transform: scale(1.02);
}

.hero-slide-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Transición de salida: desaparece en 0.2s */
    transition: opacity 0.2s ease-in-out;
    border-radius: 1rem;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-container.active {
    opacity: 1;
    pointer-events: auto;
    /* Transición de entrada: aparece en 0.3s, tras esperar 0.2s a que la anterior salga */
    transition: opacity 0.3s ease-in-out 0.2s;
}

.hero-slide-img {
    /* Dimensiones explícitas 100%×100% para que object-fit:contain realmente
       active el escalado proporcional. Con width/height:auto, object-fit es
       ignorado y la imagen renderiza a tamaño natural, desbordando el track
       (recortado por overflow:hidden → "imagen cortada" reportado). */
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 1rem;
    display: block;
}

.hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 102, 219, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    border-color: #ff66db;
    background: rgba(255, 102, 219, 0.3);
}

.hero-dot.active {
    background: #ff00c2;
    border-color: #ff00c2;
    box-shadow: 0 0 8px rgba(255, 0, 194, 0.5);
}

/* Flechas del hero carousel */
.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 0, 194, 0.4);
    border-radius: 50%;
    background: rgba(15, 10, 40, 0.8);
    color: #ff66db;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-carousel-arrow:hover {
    background: rgba(255, 0, 194, 0.5);
    border-color: #ff66db;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 194, 0.4), 0 0 40px rgba(255, 0, 194, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-arrow--left {
    left: 20px;
}

.hero-carousel-arrow--right {
    right: 20px;
}

.hero-carousel-arrow.hidden {
    display: none;
}

@media (max-width: 768px) {
    .hero-carousel-arrow--left {
        left: 12px;
    }
    .hero-carousel-arrow--right {
        right: 12px;
    }
}

@media (max-width: 640px) {
    .hero-carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .hero-carousel-arrow--left {
        left: 6px;
    }
    .hero-carousel-arrow--right {
        right: 6px;
    }
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ff00c2;
    border-radius: 10px;
}

/* ═══ PRODUCT CAROUSEL ═══ */
.product-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.product-carousel-viewport {
    overflow: hidden;
    border-radius: 1rem;
}

.product-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.product-carousel-track .product-card {
    min-width: calc(33.333% - 0.67rem);
    max-width: calc(33.333% - 0.67rem);
    flex-shrink: 0;
}

.product-carousel-loading {
    width: 100%;
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
}

/* Flechas del carousel */
.product-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 0, 194, 0.4);
    border-radius: 50%;
    background: rgba(15, 10, 40, 0.8);
    color: #ff66db;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.product-carousel-arrow:hover {
    background: rgba(255, 0, 194, 0.5);
    border-color: #ff66db;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 194, 0.4), 0 0 40px rgba(255, 0, 194, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.product-carousel-arrow--left {
    left: -5px;
}

.product-carousel-arrow--right {
    right: -5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-carousel-track .product-card {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    .product-carousel-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 640px) {
    .product-carousel-track .product-card {
        min-width: 100%;
        max-width: 100%;
    }

    .product-carousel-wrapper {
        padding: 0 35px;
    }

    .product-carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ═══ CATEGORY CHIPS ═══ */
.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-chip:hover {
    background: rgba(255, 0, 194, 0.1);
    border-color: rgba(255, 0, 194, 0.3);
    color: #ffb3f0;
}

.category-chip.active {
    background: linear-gradient(135deg, rgba(255, 0, 194, 0.25), rgba(255, 102, 219, 0.15));
    border-color: rgba(255, 0, 194, 0.5);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 194, 0.2);
}

.category-chip i {
    font-size: 0.85rem;
}

/* Mobile category chip */
.mobile-cat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-cat-chip.active {
    background: rgba(255, 0, 194, 0.2);
    border-color: rgba(255, 0, 194, 0.4);
    color: #fff;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ═══ SEARCH BAR ═══ */
.search-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* ═══ STOCK BADGES ═══ */
.badge-stock-low {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    animation: pulse 2s infinite;
}

.badge-new {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

/* ═══ QUANTITY SELECTOR (product detail) ═══ */
#detail-qty-minus,
#detail-qty-plus {
    user-select: none;
    -webkit-user-select: none;
}

#detail-qty-minus:active,
#detail-qty-plus:active {
    background: rgba(255, 0, 194, 0.4);
}

/* ═══ FOOTER STYLES ═══ */
.footer-social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer-social-icon:hover {
    background: rgba(255, 0, 194, 0.3);
    border-color: rgba(255, 0, 194, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.payment-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.7rem;
}

/* ═══ ADMIN SELECT STYLES ═══ */
select.input-pro {
    background-image: none;
}

select.input-pro option {
    background: #1a1638;
    color: white;
}

/* ═══ ADMIN DASHBOARD TABS ═══ */
.admin-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #4b5675;
    font-size: 0.70rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.admin-tab:hover {
    background: rgba(139, 92, 246, 0.07);
    color: #94a3b8;
    border-color: rgba(139, 92, 246, 0.12);
}

.admin-tab.active {
    background: linear-gradient(135deg, rgba(255, 0, 194, 0.2) 0%, rgba(179, 0, 136, 0.12) 100%);
    border-color: rgba(255, 0, 194, 0.45);
    color: #ffb3f0;
    box-shadow: 0 0 16px rgba(255, 0, 194, 0.2), inset 0 0 20px rgba(255, 0, 194, 0.05);
}

.admin-tab i {
    font-size: 0.82rem;
}

/* Tab content visibility */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* ═══ FINANCE SUB-TABS (dentro de tab Finanzas) ═══ */
.finance-subtab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.finance-subtab:hover {
    color: #ffb3f0;
}

.finance-subtab.active {
    color: #ffb3f0;
    border-bottom-color: #ff00c2;
}

.finance-subtab i {
    font-size: 0.85rem;
}

.finance-subtab-content {
    display: none;
}

.finance-subtab-content.active {
    display: block;
}

/* KPI tile en Resumen Finanzas */
.finance-kpi {
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px 16px;
}
.finance-kpi-label {
    color: #6b7280;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 4px;
}
.finance-kpi-value {
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
}
.finance-kpi-sub {
    color: #6b7280;
    font-size: 0.65rem;
    margin-top: 2px;
}

/* Margen banner en form producto */
.margin-banner {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.margin-banner.good   { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.margin-banner.warn   { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.margin-banner.bad    { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.margin-banner.nodata { background: rgba(148,163,184,0.10); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }

/* ═══ ORDER FILTER BUTTONS ═══ */
.order-filter-btn {
    padding: 7px 14px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #64748B;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-filter-btn:hover {
    background: rgba(255, 0, 194, 0.1);
    border-color: rgba(255, 0, 194, 0.25);
    color: #ff66db;
}

.order-filter-btn.active {
    background: linear-gradient(135deg, rgba(255, 0, 194, 0.25), rgba(179, 0, 136, 0.15));
    border-color: rgba(255, 0, 194, 0.5);
    color: #ffb3f0;
    box-shadow: 0 0 14px rgba(255, 0, 194, 0.2);
}

/* Gallery — drag & drop reordering */
.gallery-image-row {
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.2s ease;
}
.gallery-image-row.dragging {
    opacity: 0.4;
    transform: scale(0.98);
}
.gallery-drag-handle {
    touch-action: none;
}

/* Gallery — hover preview popover */
#gallery-thumb-preview {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    padding: 6px;
    background: rgba(15, 12, 41, 0.96);
    border: 1px solid rgba(255, 0, 194, 0.4);
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 0, 194, 0.25);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.12s ease, transform 0.12s ease;
}
#gallery-thumb-preview.visible {
    opacity: 1;
    transform: scale(1);
}
#gallery-thumb-preview img {
    display: block;
    width: 240px;
    height: 240px;
    object-fit: contain;
    background: #0b0921;
    border-radius: 0.5rem;
}

/* Admin scrollbar */
.admin-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.admin-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 194, 0.2);
    border-radius: 10px;
}

.admin-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 194, 0.4);
}

.admin-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 194, 0.3) transparent;
    background: #0b0918;
}

/* ═══ ADMIN HEADER PROFESSIONAL ═══ */
.admin-header {
    background: linear-gradient(180deg, #130e2e 0%, #0e0b22 100%) !important;
    border-bottom: 1px solid rgba(255, 0, 194, 0.2) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ═══ ADMIN TABS NAV BAR ═══ */
.admin-tabs {
    background: #100d22 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

/* ═══ ADMIN MODAL BACKDROP (fully opaque) ═══ */
#admin-modal-backdrop {
    background: #0b0918 !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
}

/* Login view also solid */
#login-view {
    background: #0b0918 !important;
}

/* Close button upgrade */
#btn-close-admin {
    color: #4b5563;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#btn-close-admin:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

@keyframes adminSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ═══ NAVBAR SCROLL SHRINK ═══ */
.glass-nav.scrolled {
    background: rgba(15, 12, 41, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-nav.scrolled .nav-inner {
    height: 3.5rem;
}

.glass-nav.scrolled .nav-logo {
    height: 50px !important;
}

/* ═══ HERO PARTICLES ═══ */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    background: rgba(255, 102, 219, 0.5);
    border-radius: 50%;
    animation: float-particle var(--duration) ease-in-out var(--delay) infinite;
    box-shadow: 0 0 8px rgba(255, 102, 219, 0.4);
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(15px, -20px) scale(1.2);
        opacity: 0.7;
    }

    50% {
        transform: translate(-10px, -35px) scale(0.8);
        opacity: 0.5;
    }

    75% {
        transform: translate(20px, -15px) scale(1.1);
        opacity: 0.6;
    }
}

/* ═══ SCROLL INDICATOR ═══ */
.scroll-indicator {
    animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 102, 219, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #ff66db;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(14px);
    }
}

/* ═══ HERO CTA BTN ═══ */
.hero-cta-btn {
    position: relative;
    overflow: hidden;
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: cta-shine 3s ease-in-out infinite;
}

@keyframes cta-shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }

    50%,
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ═══ SKELETON LOADERS ═══ */
.skeleton-card {
    background: rgba(36, 27, 77, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    min-width: calc(33.333% - 0.67rem);
    max-width: calc(33.333% - 0.67rem);
    flex-shrink: 0;
}

.skeleton-shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.02) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 1024px) {
    .skeleton-card {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 640px) {
    .skeleton-card {
        min-width: 100%;
        max-width: 100%;
    }
}

/* ═══ TRUST BADGES ═══ */
.trust-card {
    background: rgba(36, 27, 77, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 0, 194, 0.3);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
    background: rgba(36, 27, 77, 0.5);
}

.trust-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.trust-card:hover .trust-icon {
    transform: scale(1.1) rotate(-3deg);
}

/* ═══ FAQ ACCORDION ═══ */
.faq-item {
    background: rgba(36, 27, 77, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(255, 0, 194, 0.2);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s;
    gap: 1rem;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question i {
    color: #ff00c2;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

/* ═══ PROMO BANNER ═══ */
.promo-banner {
    background: linear-gradient(135deg, #db00a7 0%, #ff00c2 50%, #6d28d9 100%);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* ═══ ABOUT PILLARS ═══ */
.pillar-card {
    background: rgba(36, 27, 77, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.pillar-card:hover {
    border-color: rgba(255, 0, 194, 0.3);
    transform: translateY(-4px);
}

.pillar-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.1rem;
}

/* ═══ ANIMATED COUNTERS ═══ */
.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ff66db, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ═══ SCROLL TO TOP ═══ */
.scroll-to-top {
    position: fixed;
    bottom: 6rem;
    left: 1.5rem;
    z-index: 100;
    width: 44px;
    height: 44px;
    background: rgba(255, 0, 194, 0.2);
    border: 1px solid rgba(255, 0, 194, 0.3);
    border-radius: 50%;
    color: #ff66db;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: rgba(255, 0, 194, 0.5);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 0, 194, 0.3);
}

/* ═══ PRELOADER ═══ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0f0c29;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.6s ease-out, visibility 0.6s;
    animation: preloader-auto-hide 0.6s ease-out 2.5s forwards;
}

@keyframes preloader-auto-hide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 0, 194, 0.2);
    border-top-color: #ff00c2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══ PRODUCT CARD ENHANCEMENTS ═══ */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 0, 194, 0) 0%, rgba(255, 0, 194, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.product-badge.badge-hot {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.product-badge.badge-new {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.product-badge.badge-sold-out {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* ═══ NEWSLETTER ═══ */
.newsletter-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 12px 16px;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s;
    width: 100%;
}

.newsletter-input:focus {
    outline: none;
    border-color: #ff00c2;
    background: rgba(0, 0, 0, 0.5);
}

/* ═══ MOBILE MENU OVERLAY ═══ */
#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ═══ CATALOG SEARCH ═══ */
.catalog-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.85rem;
    height: 46px;
    min-width: 240px;
    background: rgba(255, 0, 194, 0.08);
    border: 1px solid rgba(255, 0, 194, 0.35);
    border-radius: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 0 0 0 rgba(255, 0, 194, 0);
}

.catalog-search:focus-within {
    border-color: rgba(255, 102, 219, 0.8);
    background: rgba(255, 0, 194, 0.14);
    box-shadow: 0 0 0 4px rgba(255, 0, 194, 0.18), 0 0 18px rgba(255, 0, 194, 0.35);
}

.catalog-search-icon {
    color: rgba(255, 102, 219, 0.9);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.catalog-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 0.9rem;
    min-width: 0;
    width: 100%;
}

.catalog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.catalog-search-input::-webkit-search-cancel-button {
    display: none;
}

.catalog-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.catalog-search-clear:hover {
    background: rgba(255, 0, 194, 0.4);
    color: white;
}

@media (max-width: 640px) {
    .catalog-search {
        min-width: 0;
        width: 100%;
        max-width: 320px;
        height: 42px;
    }
}

/* ═══ SEARCH AUTOCOMPLETE DROPDOWN ═══ */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 340px;
    overflow-y: auto;
    background: rgba(15, 12, 41, 0.96);
    border: 1px solid rgba(255, 0, 194, 0.3);
    border-radius: 1rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 194, 0.15);
    z-index: 200;
    padding: 0.4rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-autocomplete.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.search-autocomplete::-webkit-scrollbar {
    width: 5px;
}

.search-autocomplete::-webkit-scrollbar-track {
    background: transparent;
}

.search-autocomplete::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 194, 0.3);
    border-radius: 4px;
}

.search-ac-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.7rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.search-ac-item:hover,
.search-ac-item.active {
    background: rgba(255, 0, 194, 0.12);
    transform: translateX(2px);
}

.search-ac-item-img {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.search-ac-item-info {
    flex: 1;
    min-width: 0;
}

.search-ac-item-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.search-ac-item-title mark {
    background: transparent;
    color: #ff66db;
    font-weight: 700;
}

.search-ac-item-price {
    color: rgba(255, 102, 219, 0.85);
    font-size: 0.72rem;
    font-weight: 700;
}

.search-ac-item-category {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.search-ac-empty {
    text-align: center;
    padding: 1.25rem 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.search-ac-empty i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: rgba(255, 0, 194, 0.3);
}

/* ═══ VIEW MODE TOGGLE ═══ */
.view-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    background: transparent;
}

.view-mode-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.view-mode-btn.active {
    color: white;
    background: rgba(255, 0, 194, 0.3);
    box-shadow: 0 0 12px rgba(255, 0, 194, 0.2);
}

/* View mode containers */
.product-view-mode {
    display: none;
    opacity: 0;
    animation: viewFadeIn 0.4s ease-out forwards;
}

.product-view-mode.active {
    display: block;
    opacity: 1;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ PRODUCT GRID ═══ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Grid cards */
.product-grid .product-card {
    flex: none;
    min-width: 0;
    max-width: 100%;
}

.product-grid .product-card .relative {
    height: 220px;
}

@media (max-width: 640px) {
    .product-grid .product-card .relative {
        height: 160px;
    }

    .product-grid .product-card h3 {
        font-size: 0.85rem;
    }

    .product-grid .product-card .text-xl {
        font-size: 1rem;
    }
}

/* ═══ PRODUCT LIST ═══ */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-list-item {
    display: flex;
    gap: 1.25rem;
    background: rgba(36, 27, 77, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-list-item:hover {
    border-color: rgba(255, 0, 194, 0.3);
    box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.5);
    transform: translateX(4px);
}

.product-list-item .list-img-wrap {
    width: 180px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-list-item .list-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s;
}

.product-list-item:hover .list-img-wrap img {
    transform: scale(1.05);
}

.product-list-item .list-content {
    flex: 1;
    padding: 1.25rem 1.25rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

@media (max-width: 640px) {
    .product-list-item {
        flex-direction: column;
    }

    .product-list-item .list-img-wrap {
        width: 100%;
        height: 180px;
    }

    .product-list-item .list-content {
        padding: 1rem;
    }
}

/* ═══ MOBILE PORTRAIT IMPROVEMENTS ═══ */
@media (max-width: 640px) {

    /* Navbar compact on mobile */
    .glass-nav .nav-inner {
        height: 3.5rem;
    }

    .nav-logo {
        height: 28px !important;
    }

    .glass-nav.scrolled .nav-logo {
        height: 28px !important;
    }

    /* Hero text smaller on mobile */
    #hero h1 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* CTA buttons compact */
    .hero-cta-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    #hero .flex-wrap a:not(.hero-cta-btn) {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    /* Products section compact */
    #products {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* View toggle smaller */
    .view-mode-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    /* Trust cards: 2 columns */
    .trust-card {
        padding: 1rem 0.75rem;
    }

    .trust-card h3 {
        font-size: 0.8rem;
    }

    .trust-card p {
        font-size: 0.7rem;
    }

    .trust-icon {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    /* Counter numbers smaller */
    .counter-number {
        font-size: 1.5rem;
    }

    /* Pillar cards lighter */
    .pillar-card {
        padding: 0.75rem;
    }

    .pillar-card p {
        font-size: 0.65rem;
    }

    .pillar-icon {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    /* FAQ compact */
    .faq-question {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .faq-answer p {
        font-size: 0.75rem;
    }

    /* Promo banner compact */
    .promo-banner {
        padding: 1.25rem 1rem;
        border-radius: 0.75rem;
    }

    .promo-banner h2 {
        font-size: 1.2rem;
    }

    .promo-banner p {
        font-size: 0.8rem;
    }

    .promo-banner a {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    /* About — tighter */
    #about h2 {
        font-size: 1.3rem;
    }

    #about p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Section titles — smaller */
    #products h2 {
        font-size: 1.3rem;
    }

    /* Hero carousel title */
    #hero-carousel h2 {
        font-size: 1.1rem;
    }

    #hero-carousel .inline-flex span {
        font-size: 8px;
    }
}

/* ═══ DESKTOP CONTENT REFINEMENT ═══ */
@media (min-width: 1024px) {

    /* Hero title — cap the size */
    #hero h1 {
        font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
    }

    #hero p {
        font-size: 0.95rem;
        max-width: 500px;
    }

    /* Hero badge — smaller */
    #hero .inline-flex span {
        font-size: 10px;
    }

    /* CTA buttons — refined */
    .hero-cta-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    #hero .flex-wrap a:not(.hero-cta-btn) {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Hero carousel title */
    #hero-carousel h2 {
        font-size: 1.3rem;
    }

    /* Section vertical spacing — tighter */
    #products {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }

    #products h2 {
        font-size: 1.6rem;
    }

    /* Trust cards — reduce text */
    .trust-card {
        padding: 1.25rem 1rem;
    }

    .trust-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .trust-card h3 {
        font-size: 0.9rem;
    }

    .trust-card p {
        font-size: 0.8rem;
    }

    /* Promo banner — smaller heading */
    .promo-banner {
        padding: 2.5rem 2rem !important;
    }

    .promo-banner h2 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .promo-banner p {
        font-size: 0.95rem;
    }

    .promo-banner a {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* About section — tighter */
    #about {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #about h2 {
        font-size: 1.6rem;
    }

    #about p {
        font-size: 0.9rem;
    }

    .counter-number {
        font-size: 2rem;
    }

    /* FAQ — compact */
    .faq-question {
        font-size: 0.9rem;
    }

    .faq-answer p {
        font-size: 0.85rem;
    }

    /* Footer — refined */
    #footer {
        padding-top: 3rem !important;
    }
}

/* ═══ LANDSCAPE MOBILE ═══ */
@media (orientation: landscape) and (max-height: 500px) {

    /* ─── Navbar: ultra-compact ─── */
    .nav-logo {
        height: 32px !important;
    }

    .glass-nav.scrolled .nav-logo {
        height: 32px !important;
    }

    .glass-nav .nav-inner {
        height: auto !important;
        padding-top: 4px !important;
        padding-bottom: 2px !important;
    }

    .glass-nav .nav-link {
        font-size: 0.6rem !important;
        letter-spacing: 0.08em;
    }

    /* Nav row 2 — tighter */
    .glass-nav .flex.items-center.justify-center {
        padding-bottom: 4px !important;
        gap: 1rem !important;
    }

    #btn-admin img {
        width: 24px !important;
        height: 24px !important;
    }

    /* ─── Hero: use horizontal space ─── */
    #hero {
        padding-top: 70px !important;
        padding-bottom: 0.5rem !important;
        min-height: auto !important;
    }

    #hero>div {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Force side-by-side on landscape */
    #hero .grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        align-items: center !important;
    }

    #hero h1 {
        font-size: clamp(0.85rem, 3vh, 1rem) !important;
        line-height: 1 !important;
    }

    #hero p {
        font-size: 0.55rem !important;
        line-height: 1.2 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Hero badge — smaller */
    #hero .inline-flex {
        padding: 4px 10px !important;
    }

    #hero .inline-flex span {
        font-size: 6px !important;
    }

    /* Hero text spacing */
    #hero .space-y-7 {
        gap: 0.3rem !important;
    }

    /* CTA buttons: inline compact */
    .hero-cta-btn {
        padding: 4px 10px !important;
        font-size: 0.6rem !important;
    }

    #hero .flex-wrap {
        gap: 0.4rem !important;
    }

    #hero .flex-wrap a:not(.hero-cta-btn) {
        padding: 4px 10px !important;
        font-size: 0.6rem !important;
    }

    /* Hero carousel — compact, hide title section */
    #hero-carousel {
        max-width: 100% !important;
    }

    #hero-carousel .max-w-md {
        max-width: 100% !important;
    }

    /* Push "TOP VENTAS" + "Productos más vendidos" down in landscape */
    #hero-carousel .w-full.max-w-md.mb-4.text-center {
        margin-top: 0.5rem !important;
        margin-bottom: 0.2rem !important;
    }

    #hero-carousel .w-full.max-w-md.mb-4.text-center .inline-flex {
        padding: 2px 8px !important;
        margin-bottom: 0 !important;
    }

    #hero-carousel .w-full.max-w-md.mb-4.text-center span {
        font-size: 7px !important;
    }

    #hero-carousel h2 {
        font-size: 0.75rem !important;
    }

    #hero-carousel .mb-4 {
        margin-bottom: 0.25rem !important;
    }

    /* Hero carousel track — smaller */
    .hero-carousel-track {
        border-radius: 0.5rem !important;
    }

    /* Scroll indicator hidden */
    .scroll-indicator {
        display: none !important;
    }

    /* Hide particles */
    .hero-particles {
        display: none !important;
    }

    /* ─── Products section: compact ─── */
    #products {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    #products h2 {
        font-size: 0.9rem !important;
    }

    #products .category-chip {
        padding: 3px 8px !important;
        font-size: 0.55rem !important;
    }

    .product-carousel-arrow {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.6rem !important;
    }

    .product-carousel-wrapper {
        padding: 0 24px !important;
    }

    /* ─── Trust / Why choose us: compact ─── */
    .trust-card {
        padding: 0.5rem 0.4rem !important;
    }

    .trust-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.65rem !important;
        margin-bottom: 0.25rem !important;
    }

    .trust-card h3 {
        font-size: 0.6rem !important;
        margin-bottom: 0.15rem !important;
    }

    .trust-card p {
        font-size: 0.5rem !important;
    }

    /* ─── Promo banner: compact ─── */
    .promo-banner {
        padding: 0.75rem 0.75rem !important;
        border-radius: 0.5rem !important;
    }

    .promo-banner h2 {
        font-size: 0.85rem !important;
    }

    .promo-banner p {
        font-size: 0.6rem !important;
        margin-bottom: 0.5rem !important;
    }

    .promo-banner a {
        padding: 5px 12px !important;
        font-size: 0.6rem !important;
    }

    /* ─── About: compact ─── */
    #about {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    #about .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    #about img {
        height: 120px !important;
    }

    #about h2 {
        font-size: 0.85rem !important;
    }

    #about p {
        font-size: 0.6rem !important;
        line-height: 1.3 !important;
    }

    .pillar-card {
        padding: 0.35rem !important;
    }

    .pillar-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.6rem !important;
    }

    .pillar-card p {
        font-size: 0.5rem !important;
    }

    .counter-number {
        font-size: 1rem !important;
    }

    /* ─── FAQ: compact ─── */
    .faq-question {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.6rem !important;
    }

    .faq-answer p {
        font-size: 0.55rem !important;
    }

    /* ─── Footer: compact ─── */
    #footer {
        padding-top: 0.75rem !important;
    }

    #footer h3,
    #footer h4 {
        font-size: 0.55rem !important;
    }

    .footer-social-icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.55rem !important;
    }

    .newsletter-input {
        padding: 4px 8px !important;
        font-size: 0.6rem !important;
    }

    /* ─── FABs: minimal, no overlap ─── */
    #fab-stack {
        bottom: 6px !important;
        right: 6px !important;
        gap: 4px !important;
    }

    #fab-stack button,
    #btn-cart-wrapper button,
    #btn-open-chatbot {
        width: 28px !important;
        height: 28px !important;
    }

    #fab-stack i {
        font-size: 0.6rem !important;
    }

    /* Hide chatbot tooltip in landscape */
    #chatbot-tooltip {
        display: none !important;
    }

    /* Cart count badge — smaller */
    #cart-count {
        width: 14px !important;
        height: 14px !important;
        font-size: 7px !important;
    }

    /* Chatbot pulse dot — smaller */
    #btn-open-chatbot span.absolute {
        width: 8px !important;
        height: 8px !important;
    }

    /* Scroll to top — minimal */
    .scroll-to-top {
        width: 28px !important;
        height: 28px !important;
        bottom: 6px !important;
        left: 6px !important;
    }

    /* ─── Modals — fit landscape ─── */
    #product-detail-modal>div>div {
        max-height: 92vh !important;
    }

    #cart-drawer {
        height: 80vh !important;
    }

    #chatbot-window {
        height: 70vh !important;
        width: 60vw !important;
    }

    /* ─── General section spacing ─── */
    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE IMPROVEMENTS — ALL DEVICES
   ═══════════════════════════════════════════════ */

/* ─── GLOBAL: Prevent horizontal overflow ─── */
html,
body {
    overflow-x: hidden;
}

#hero {
    overflow-x: hidden;
}

/* ─── TABLET PORTRAIT (≤768px) ─── */
@media (max-width: 768px) {

    /* Container padding — smooth transition */
    #products {
        padding-left: clamp(0.5rem, 3vw, 3.5rem);
        padding-right: clamp(0.5rem, 3vw, 3.5rem);
    }

    /* Product carousel — slightly tighter arrows */
    .product-carousel-wrapper {
        padding: 0 30px;
    }

    .product-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    /* Hero headline fluid scaling */
    #hero h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    /* Hero carousel full width */
    .hero-carousel-track {
        max-width: 100%;
    }

    /* Promo banner — tighter padding */
    .promo-banner {
        padding: 2rem 1.25rem !important;
    }

    .promo-banner h2 {
        font-size: clamp(1.4rem, 5vw, 2.5rem);
        line-height: 1.2;
    }

    .promo-banner p {
        font-size: 0.9rem;
    }

    /* About counters — intermediate size */
    .counter-number {
        font-size: 2rem;
    }

    /* Product detail modal — tighter */
    #product-detail-modal>div>div {
        max-width: 95vw;
        max-height: 95vh;
    }

    #product-detail-modal #detail-title {
        font-size: 1.6rem;
    }

    #product-detail-modal #detail-price {
        font-size: 1.6rem;
    }

    /* Chatbot window — fit width */
    #chatbot-window {
        width: 88vw !important;
    }
}

/* ─── MOBILE (≤640px) — Enhancements ─── */
@media (max-width: 640px) {

    /* Hero — no forced full-screen height */
    #hero {
        min-height: auto;
        padding-bottom: 2rem;
    }

    /* Hero headline — fluid */
    #hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.1;
    }

    /* Hero subtitle — smaller */
    #hero p.text-base {
        font-size: 0.9rem;
    }

    /* Hero CTA — centered */
    #hero .flex-wrap {
        justify-content: center;
    }

    /* Hero carousel — full width on mobile */
    .hero-carousel-track {
        max-width: 100%;
    }

    #hero-carousel .max-w-md {
        max-width: 100%;
    }

    /* Section headings — fluid */
    .font-heading.text-3xl {
        font-size: clamp(1.5rem, 6vw, 1.875rem);
    }

    /* Trust cards — tighter text */
    .trust-card h3 {
        font-size: 0.9rem;
    }

    .trust-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* Promo banner — very compact */
    .promo-banner {
        padding: 1.5rem 1rem !important;
        border-radius: 1rem;
    }

    .promo-banner h2 {
        font-size: clamp(1.25rem, 5.5vw, 1.75rem);
        line-height: 1.2;
    }

    .promo-banner p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .promo-banner a {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* About section — tighter */
    #about .grid.grid-cols-3 {
        gap: 0.5rem;
    }

    .pillar-card p {
        font-size: 0.65rem;
    }

    /* FAQ answer text */
    .faq-answer p {
        font-size: 0.8rem;
    }

    /* Footer — compact */
    #footer .grid {
        gap: 2rem;
    }

    #footer h4 {
        font-size: 0.7rem;
    }

    .footer-social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .newsletter-input {
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    /* Product detail modal — compact */
    #product-detail-modal>div>div {
        max-height: 95vh;
        border-radius: 1rem;
        margin: 0.5rem;
    }

    #product-detail-modal #detail-title {
        font-size: 1.4rem;
    }

    #product-detail-modal #detail-price {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    #product-detail-modal .p-8 {
        padding: 1.25rem;
    }

    #product-detail-modal .p-6 {
        padding: 1rem;
    }

    /* Scroll to top — no collision with FABs */
    .scroll-to-top {
        bottom: 5rem;
        left: 1rem;
        width: 38px;
        height: 38px;
    }
}

/* ─── SMALL MOBILE (≤375px) ─── */
@media (max-width: 375px) {

    /* Navbar links — fit everything */
    .glass-nav .nav-link {
        font-size: 9px !important;
        letter-spacing: 0.08em;
    }

    /* Admin icon — smaller */
    #btn-admin img {
        width: 40px !important;
        height: 40px !important;
    }

    /* Hero headline — minimum size */
    #hero h1 {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }

    /* CTA buttons — stack vertically */
    #hero .flex-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    #hero .flex-wrap a {
        justify-content: center;
        text-align: center;
    }

    /* Product carousel arrows — minimal */
    .product-carousel-wrapper {
        padding: 0 28px;
    }

    .product-carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Category chips — scrollable, smaller */
    .category-chip {
        padding: 7px 12px;
        font-size: 0.7rem;
    }

    /* Trust cards — tighter */
    .trust-card {
        padding: 1rem 0.75rem;
    }

    .trust-icon {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .trust-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .trust-card p {
        font-size: 0.7rem;
    }

    /* Counter numbers */
    .counter-number {
        font-size: 1.5rem;
    }

    /* Newsletter form — stack */
    #newsletter-form {
        flex-direction: column;
    }

    #newsletter-form button {
        width: 100%;
    }

    /* FABs — smaller */
    #fab-stack {
        bottom: 1rem !important;
        right: 1rem !important;
        gap: 4px !important;
    }

    #fab-stack button,
    #btn-cart-wrapper button,
    #btn-open-chatbot {
        width: 32px !important;
        height: 32px !important;
    }

    /* Scroll to top — avoid FAB overlap */
    .scroll-to-top {
        bottom: 4.5rem;
        left: 0.75rem;
        width: 34px;
        height: 34px;
    }

    /* Footer payment icons */
    .payment-icon {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
}

/* ─── SHORT SCREENS (Height ≤ 600px) ─── */
@media (max-height: 600px) {

    /* Cart — fit short screens */
    #cart-drawer {
        height: 85vh !important;
    }

    /* Chatbot — fit short screens */
    #chatbot-window {
        height: 70vh !important;
    }

    /* Product detail — fit */
    #product-detail-modal>div>div {
        max-height: 92vh;
    }
}

/* ═══ FAQ STYLES ═══ */
.faq-item {
    background: rgba(36, 27, 77, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    margin-bottom: 0.75rem;
}
.faq-item:hover {
    border-color: rgba(255, 0, 194, 0.3);
}
.faq-item.open {
    border-color: rgba(255, 0, 194, 0.5);
    background: rgba(36, 27, 77, 0.6);
    box-shadow: 0 4px 20px rgba(255, 0, 194, 0.15);
}
.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #e2e8f0;
    transition: all 0.3s ease;
    user-select: none;
}
.faq-item.open .faq-question {
    color: #ffb3f0;
}
.faq-question i {
    color: #94a3b8;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}
.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: #ffb3f0;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 1.5rem;
    opacity: 0;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem 1.5rem;
    opacity: 1;
}

/* ═══ MARKDOWN PRODUCT DESCRIPTIONS ═══ */
.markdown-body {
    color: #94a3b8;
    line-height: 1.6;
}
.markdown-body p { margin-bottom: 0.75rem; }
.markdown-body p:last-child { margin-bottom: 0; }
.markdown-body h1 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-top: 1.5rem; margin-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.25rem; }
.markdown-body h2 { font-size: 1.25rem; font-weight: 600; color: #f8fafc; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.markdown-body h3 { font-size: 1.1rem; font-weight: 600; color: #e2e8f0; margin-top: 1rem; margin-bottom: 0.5rem; }
.markdown-body h4, .markdown-body h5, .markdown-body h6 { font-weight: 600; color: #e2e8f0; margin-top: 1rem; margin-bottom: 0.5rem; }
.markdown-body ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.markdown-body ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.markdown-body li { margin-bottom: 0.25rem; }
.markdown-body strong { color: #fff; font-weight: 600; }
.markdown-body em { font-style: italic; color: #cbd5e1; }
.markdown-body blockquote { border-left: 3px solid #ff00c2; padding-left: 1rem; color: #cbd5e1; background: rgba(255, 0, 194, 0.05); padding: 0.5rem 1rem; border-radius: 0 0.5rem 0.5rem 0; margin-bottom: 0.75rem; }
.markdown-body code { background-color: rgba(0, 0, 0, 0.4); padding: 0.1rem 0.3rem; border-radius: 0.25rem; font-family: monospace; font-size: 0.85em; color: #ff66db; }
.markdown-body pre { background-color: rgba(0, 0, 0, 0.6); padding: 0.75rem; border-radius: 0.5rem; margin-bottom: 0.75rem; overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.05); }
.markdown-body pre code { background-color: transparent; padding: 0; color: #e2e8f0; }
.markdown-body a { color: #ff66db; text-decoration: underline; text-underline-offset: 2px; }
.markdown-body a:hover { color: #ffb3f0; text-decoration: none; }
.markdown-body table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.markdown-body th, .markdown-body td { border: 1px solid rgba(255,255,255,0.1); padding: 0.5rem; text-align: left; }
.markdown-body th { background-color: rgba(0,0,0,0.2); font-weight: 600; color: #e2e8f0; }
.markdown-body tr:nth-child(even) { background-color: rgba(255,255,255,0.02); }

/* ═══ SOCIAL FLOATING STACK ANIMATION ═══ */
.social-float-btn {
    animation: socialFloat 4s ease-in-out infinite;
    will-change: transform;
}

.social-float-btn:nth-child(1) { animation-delay: 0s; }
.social-float-btn:nth-child(2) { animation-delay: 0.3s; }
.social-float-btn:nth-child(3) { animation-delay: 0.6s; }

@keyframes socialFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
}

.social-float-btn:hover {
    animation-play-state: paused;
}

/* ═══ CHATBOT TOOLTIP POSITIONING & RESPONSIVE ═══ */
#chatbot-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#chatbot-tooltip.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#chatbot-tooltip .tooltip-arrow {
    position: absolute;
    top: 0;
    left: 16px;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(26, 22, 56, 0.95);
    border-top: 1px solid rgba(255, 0, 194, 0.3);
    border-left: 1px solid rgba(255, 0, 194, 0.3);
}

/* En pantallas de escritorio (al lado izquierdo de TecniBot) */
@media (min-width: 640px) {
    #chatbot-tooltip {
        top: 50%;
        bottom: auto;
        left: auto;
        right: 100%;
        transform: translateY(-50%) translateX(8px);
        margin-top: 0;
        margin-right: 12px;
    }
    
    #chatbot-tooltip.active {
        transform: translateY(-50%) translateX(0);
    }

    #chatbot-tooltip .tooltip-arrow {
        top: 50%;
        bottom: auto;
        left: auto;
        right: 0;
        transform: translateX(50%) translateY(-50%) rotate(45deg);
        border-left: none;
        border-bottom: none;
        border-top: 1px solid rgba(255, 0, 194, 0.3);
        border-right: 1px solid rgba(255, 0, 194, 0.3);
    }
}

/* ─── Scroll Margin Top Responsivo para Secciones ─── */
#products,
#about,
#contacto {
    scroll-margin-top: 175px; /* En móviles y tablets, alineación perfecta debajo del navbar de 160px */
}

@media (min-width: 1024px) {
    #products,
    #about,
    #contacto {
        scroll-margin-top: 145px; /* En computadoras, alineación debajo de la navbar compacta */
    }
}