/* Variables CSS - Colores más vivos y modernos */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Nuevos colores vibrantes */
    --pink-gradient: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --orange-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* Fondos futuristas */
    --space-gradient: radial-gradient(circle at 12% 18%, rgba(99, 102, 241, 0.45) 0%, transparent 55%), radial-gradient(circle at 82% 12%, rgba(14, 165, 233, 0.35) 0%, transparent 50%), radial-gradient(circle at 18% 82%, rgba(236, 72, 153, 0.3) 0%, transparent 60%), #0b1220;
    --nebula-gradient: conic-gradient(from 180deg at 50% 50%, rgba(99, 102, 241, 0.35), rgba(236, 72, 153, 0.35), rgba(14, 165, 233, 0.35), rgba(99, 102, 241, 0.35));
    --grid-line: rgba(148, 163, 184, 0.08);
    --glass-background: rgba(255, 255, 255, 0.65);
    --glass-background-dark: rgba(15, 23, 42, 0.55);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glow-primary: 0 0 35px rgba(99, 102, 241, 0.35);
    
    /* Sombras mejoradas */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
    --navbar-height: 88px;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--space-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    padding-top: var(--navbar-height);
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: 8px;
    left: -999px;
    padding: 10px 16px;
    background: #0b1220;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    z-index: 2000;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
}

.skip-link:focus {
    left: 12px;
}

/* Global focus styles */
:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.6);
    outline-offset: 3px;
}

/* Global responsive media */
img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* Prevent flex children in Bootstrap rows from overflowing on small screens */
.row > [class^="col-"],
.row > [class*=" col-"] {
    min-width: 0;
}

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

@media (max-width: 991.98px) {
    :root {
        --navbar-height: 72px;
    }
}

@keyframes gradientFlow {
    0% { transform: translate3d(-2%, -2%, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(2%, 4%, 0) rotate(120deg) scale(1.05); }
    100% { transform: translate3d(-3%, -3%, 0) rotate(360deg) scale(1); }
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(1.5%, -1.5%, 0) scale(1.02); }
    100% { transform: translate3d(-1.5%, 1.5%, 0) scale(1); }
}

body::before,
body::after {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: -2;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

body::before {
    background: var(--nebula-gradient);
    filter: blur(140px);
    opacity: 0.55;
    animation: gradientFlow 22s ease-in-out infinite alternate;
}

body::after {
    background-image: radial-gradient(circle at 15% 20%, rgba(148, 163, 184, 0.3) 0%, transparent 55%), radial-gradient(circle at 80% 65%, rgba(99, 102, 241, 0.2) 0%, transparent 50%), linear-gradient(120deg, transparent 0%, rgba(99, 102, 241, 0.05) 45%, transparent 85%);
    background-size: cover;
    opacity: 0.35;
    animation: drift 28s linear infinite;
}

main,
section,
footer,
nav {
    position: relative;
}

/* Utilidades */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navigation mejorada */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    backdrop-filter: blur(18px);
    background: rgba(13, 19, 35, 0.78) !important;
    box-shadow: var(--glow-primary);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: all 0.3s ease;
    isolation: isolate;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), transparent);
    opacity: 0.6;
    pointer-events: none;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 0%, #c4b5fd 45%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(8, 20, 43, 0.45);
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.navbar-quick-actions {
    display: none;
    align-items: center;
    gap: 0.55rem;
}

.mobile-action-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(6, 11, 25, 0.24);
}

.mobile-action-link.active,
.mobile-action-link:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.28);
}

.mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    font-size: 0.72rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
    color: rgba(226, 232, 240, 0.85) !important;
    letter-spacing: 0.4px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Hero Section espectacular */
.hero-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(59, 130, 246, 0.82));
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 40px 80px rgba(8, 20, 43, 0.55);
    isolation: isolate;
}

/* Compact variation for inner pages that need a shorter hero */
.hero-section--compact {
    min-height: 60vh;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: -25%;
    background: var(--nebula-gradient);
    filter: blur(140px);
    opacity: 0.7;
    animation: aurora 18s ease-in-out infinite;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 18%, rgba(148, 163, 184, 0.15), transparent 55%), radial-gradient(circle at 80% 25%, rgba(14, 165, 233, 0.12), transparent 50%), linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, transparent 35%, rgba(99, 102, 241, 0.15) 70%, transparent 100%), repeating-linear-gradient(120deg, transparent, transparent 18px, rgba(255, 255, 255, 0.03) 18px, rgba(255, 255, 255, 0.03) 36px);
    opacity: 0.7;
    mix-blend-mode: screen;
    animation: pulseGrid 16s linear infinite;
    z-index: 0;
}

@keyframes aurora {
    0% { transform: translate3d(-5%, -3%, 0) scale(1); opacity: 0.65; }
    25% { transform: translate3d(3%, 4%, 0) scale(1.05); opacity: 0.75; }
    50% { transform: translate3d(6%, -2%, 0) scale(0.95); opacity: 0.6; }
    75% { transform: translate3d(-4%, 3%, 0) scale(1.08); opacity: 0.75; }
    100% { transform: translate3d(-5%, -3%, 0) scale(1); opacity: 0.65; }
}

@keyframes pulseGrid {
    0% { opacity: 0.45; transform: scale(1) translate3d(0, 0, 0); }
    50% { opacity: 0.65; transform: scale(1.05) translate3d(-1%, 1%, 0); }
    100% { opacity: 0.45; transform: scale(1) translate3d(0, 0, 0); }
}

@keyframes glowPulse {
    0% { opacity: 0.35; transform: scale(0.95) translate3d(0, 0, 0); }
    50% { opacity: 0.6; transform: scale(1.1) translate3d(6px, -10px, 0); }
    100% { opacity: 0.35; transform: scale(0.95) translate3d(0, 0, 0); }
}

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

@keyframes orbit {
    0% { transform: rotate(0deg) scale(1); opacity: 0.45; }
    50% { transform: rotate(180deg) scale(1.05); opacity: 0.65; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.45; }
}

@keyframes heroImageDisappear {
    0% {
        opacity: 1;
        transform: translateX(-30%) scale(1.25);
        filter: saturate(1) blur(0);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-26%) scale(1.45) rotate(-3deg);
        filter: saturate(1.4) blur(6px);
    }
    100% {
        opacity: 0;
        transform: translateX(-18%) scale(0.8) rotate(4deg);
        filter: saturate(1.7) blur(18px);
    }
}

@keyframes heroImageReappear {
    0% {
        opacity: 0;
        transform: translateX(-42%) scale(1.4) rotate(-6deg);
        filter: saturate(1.5) blur(14px);
    }
    60% {
        opacity: 0.85;
        transform: translateX(-28%) scale(1.28) rotate(2deg);
        filter: saturate(1.1) blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateX(-30%) scale(1.25) rotate(0deg);
        filter: saturate(1) blur(0);
    }
}

@keyframes heroBurstGlow {
    0% {
        opacity: 0;
        transform: scale(0.7);
        filter: blur(30px);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.05);
        filter: blur(55px);
    }
    100% {
        opacity: 0;
        transform: scale(1.35);
        filter: blur(80px);
    }
}

@keyframes heroSparkFly {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(0);
    }
}

@keyframes heroTitleCharIn {
    0% {
        opacity: 0;
        transform: translateY(18px) rotateX(35deg) skewY(6deg);
        filter: blur(6px);
    }
    70% {
        opacity: 0.95;
        transform: translateY(-2px) rotateX(-5deg) skewY(-3deg);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) skewY(0deg);
        filter: blur(0);
    }
}

@keyframes heroPortalPulse {
    0% {
        opacity: 0;
        transform: scale(0.35);
        filter: blur(25px);
    }
    40% {
        opacity: 0.85;
        transform: scale(0.95);
        filter: blur(40px);
    }
    100% {
        opacity: 0;
        transform: scale(1.35);
        filter: blur(70px);
    }
}

@keyframes sectionGlow {
    0% { transform: scale(1) translate3d(0, 0, 0); opacity: 0.55; }
    50% { transform: scale(1.04) translate3d(1.5%, -1.5%, 0); opacity: 0.7; }
    100% { transform: scale(1) translate3d(0, 0, 0); opacity: 0.55; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    width: 100%;
    padding-right: 1.25rem;
    text-align: left;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -120px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.6;
    animation: glowPulse 16s ease-in-out infinite;
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 900;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.85) 25%, #f9a8d4 60%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 18px 45px rgba(14, 23, 42, 0.55);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.3px;
    word-break: keep-all;
    overflow-wrap: normal;
}

.hero-title-line {
    display: inline-block;
    margin-top: 0.35rem;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: nowrap;
}
.hero-title-line .text-warning {
    white-space: nowrap;
    display: inline-block;
}

.hero-title-typing {
    position: relative;
    overflow: hidden;
}

.hero-title-typing .hero-title-char {
    opacity: 0;
    display: inline-block;
    transform: translateY(18px) rotateX(35deg);
    filter: blur(6px);
    will-change: transform, opacity, filter;
    background: inherit;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-title-typing .hero-title-char--visible {
    animation: heroTitleCharIn 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-title-typing.hero-title-typing--visible .hero-title-char {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
    animation: none;
}

.text-danger .hero-title-char,
.text-warning .hero-title-char {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: inherit;
    -webkit-text-fill-color: inherit;
}

.hero-content.text-center .hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3.2rem);
}

.hero-content.text-center .hero-subtitle {
    font-size: 1.25rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    --bs-gutter-x: 2.8rem;
    flex-wrap: nowrap;
    gap: 2.5rem;
}

.hero-stats .stat-card {
    text-align: left;
    color: rgba(226, 232, 240, 0.88);
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 140px;
    white-space: nowrap;
}

.hero-stats .stat-card .value {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.hero-stats .stat-card small {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.72);
    font-weight: 500;
}

@media (min-width: 1200px) {
    .hero-row {
        flex-wrap: nowrap;
    }
    .hero-content {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .hero-image {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(226, 232, 240, 0.92);
    margin-bottom: 2.3rem;
    text-shadow: 0 10px 25px rgba(8, 20, 43, 0.45);
    max-width: 560px;
    text-align: justify;
    margin-left: 0;
    margin-right: auto;
}

.text-center .hero-subtitle,
.hero-subtitle.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: floatSoft 12s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    overflow: visible;
    perspective: 1200px;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.35), transparent 60%), radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.35), transparent 55%);
    filter: blur(40px);
    opacity: 0.6;
    animation: orbit 20s linear infinite;
    z-index: -1;
}

.hero-image img {
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(8, 20, 43, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: all 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    transform: translateX(-30%) scale(1.25);
    transform-origin: center center;
    position: relative;
    z-index: 2;
}

.hero-image img:hover {
    transform: translateX(-30%) translateY(-12px) scale(1.28);
    box-shadow: 0 45px 90px rgba(8, 20, 43, 0.6), 0 0 30px rgba(129, 140, 248, 0.35);
}

.hero-image img.hero-image-effect {
    animation: heroImageDisappear 1.05s cubic-bezier(0.3, 0.12, 0.08, 1) forwards,
               heroImageReappear 0.95s cubic-bezier(0.16, 0.84, 0.44, 1) 1.05s forwards;
}

.hero-image-burst {
    position: absolute;
    inset: -25%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.55) 0%, rgba(59, 130, 246, 0.4) 45%, transparent 80%);
    opacity: 0;
    transform: scale(0.7);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.hero-image-burst.active {
    animation: heroBurstGlow 1.25s ease forwards;
}

.hero-image-spark-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 3;
}

.hero-image-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, #ffffff 0%, hsla(var(--hue, 210), 100%, 70%, 0.95) 60%, transparent 100%);
    box-shadow: 0 0 22px hsla(var(--hue, 210), 100%, 70%, 0.75);
    transform: translate(-50%, -50%) scale(0.35);
    animation: heroSparkFly 1.1s ease forwards;
    animation-delay: var(--delay, 0s);
}

.hero-image-portal {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    background: radial-gradient(circle, rgba(148, 163, 255, 0.4) 0%, rgba(236, 72, 153, 0.32) 45%, transparent 70%);
    opacity: 0;
    transform: scale(0.35);
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

.hero-image-portal.active {
    animation: heroPortalPulse 1.3s ease forwards;
}

/* Botones mejorados */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 30px;
    font-size: 1rem;
    letter-spacing: 0.4px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    background-size: 120%;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-warning {
    background: var(--orange-gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Category Cards mejoradas */
.category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.78));
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid rgba(148, 163, 184, 0.14);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.12));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.4;
}

.category-card:hover::after {
    opacity: 0.8;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
}

.category-card:focus {
    outline: 2px solid rgba(99, 102, 241, 0.4);
    outline-offset: 4px;
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
}

.category-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
}

.category-card p {
    font-size: 1.05rem;
    color: var(--gray-600);
}

.category-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.category-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.category-icon i {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Product Cards espectaculares */
.product-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.85));
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid rgba(148, 163, 184, 0.16);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 0.4;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.28);
}

.product-card:hover::after {
    opacity: 0.9;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.45), rgba(15, 23, 42, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card .card-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.product-card .card-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1 1 auto;
}

.catalog-filter-shell {
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.catalog-search-form .form-control,
.catalog-search-form .btn {
    min-height: 58px;
}

.product-detail-section .breadcrumb {
    flex-wrap: wrap;
    row-gap: 0.35rem;
}

.product-gallery__main-image {
    width: 100%;
    min-height: 420px;
    object-fit: contain;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(236, 241, 248, 0.72));
    padding: 1.5rem;
}

.thumbnail-images {
    overflow-x: auto;
    padding-bottom: 0.45rem;
    scroll-snap-type: x proximity;
}

.thumbnail-img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 16px;
    flex: 0 0 auto;
    cursor: pointer;
    scroll-snap-align: start;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.85);
}

.thumbnail-img.active {
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: 0 10px 18px rgba(99, 102, 241, 0.22);
}

.mobile-product-bar {
    display: none;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price .text-decoration-line-through {
    font-size: 1rem;
    color: var(--gray-400);
    margin-right: 0.5rem;
}

.price .text-success {
    color: var(--success-color) !important;
}

/* Secciones mejoradas */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 255, 0.65));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    margin-bottom: 60px;
}

.section::before,
.section::after {
    content: '';
    position: absolute;
    inset: -30%;
    pointer-events: none;
    z-index: -1;
}

.section::before {
    background: radial-gradient(circle at 20% 20%, rgba(129, 140, 248, 0.25), transparent 60%), radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.22), transparent 58%);
    filter: blur(80px);
    animation: sectionGlow 24s ease-in-out infinite alternate;
}

.section::after {
    background: repeating-linear-gradient(135deg, transparent, transparent 18px, rgba(99, 102, 241, 0.06) 18px, rgba(99, 102, 241, 0.06) 36px);
    opacity: 0.5;
    mix-blend-mode: soft-light;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    background: linear-gradient(90deg, #0ea5e9 0%, #6366f1 40%, #ec4899 80%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.section p.text-center {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.zoom-in {
    animation: zoomIn 0.8s ease-out;
}

/* Efectos de partículas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particles 15s linear infinite;
}

@keyframes float-particles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design mejorado */
@media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-title-line {
        white-space: normal;
    }

    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-row {
        flex-wrap: wrap;
    }

    .hero-image {
        order: -1;
        justify-content: center;
        margin-bottom: 2.5rem;
        padding-left: 0;
    }

    .hero-image img {
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
        transform: none;
    }

    .hero-stats {
        justify-content: center;
        --bs-gutter-x: 1.25rem;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-stats .stat-card {
        text-align: center;
        align-items: center;
    }

    .hero-stats .stat-card .value {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .hero-content {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .hero-image {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    .hero-section--compact {
        min-height: 50vh;
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-title-line {
        display: block;
        margin-top: 0.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .hero-stats {
        --bs-gutter-x: 1rem;
    }
    
    .hero-stats .stat-card .value {
        font-size: 1.8rem;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
    }
    
    .category-icon i {
        font-size: 2rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Extra small devices polish */
@media (max-width: 576px) {
    /* Soften gutters a bit on very small screens */
    .row { --bs-gutter-x: 0.75rem; }
    .container, .container-fluid { padding-left: 1rem; padding-right: 1rem; }
    /* Tighter card padding for small phones */
    .product-card .card-body { padding: 1.25rem; }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-title-line {
        margin-top: 0.4rem;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .hero-section .row {
        column-gap: 3.5rem;
    }

    .hero-image img {
        max-width: 70%;
        margin-left: auto;
        margin-right: 0;
    }
}

/* Loading Spinner mejorado */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alerts mejoradas */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Form Controls mejorados */
.form-control {
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 25px 45px rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

/* Badges mejorados */
.badge {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

/* Footer mejorado */
footer {
    background: linear-gradient(180deg, rgba(9, 14, 27, 0.98) 0%, rgba(12, 18, 35, 0.96) 35%, rgba(20, 30, 54, 0.96) 100%);
    color: rgba(226, 232, 240, 0.82);
    padding: 3.5rem 0 1.5rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 -20px 45px rgba(6, 11, 25, 0.65);
    backdrop-filter: blur(16px);
}

footer::before,
footer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
}

footer::before {
    background: radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.25), transparent 65%), radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.25), transparent 60%);
    filter: blur(120px);
}

footer::after {
    background: repeating-linear-gradient(120deg, transparent, transparent 14px, rgba(255, 255, 255, 0.05) 14px, rgba(255, 255, 255, 0.05) 28px);
    mix-blend-mode: soft-light;
}

footer a {
    color: rgba(226, 232, 240, 0.78);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Social Links mejorados */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Utilidades adicionales */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-xl) !important;
}

.rounded-custom {
    border-radius: 20px !important;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: var(--dark-color);
    font-weight: 700;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Efectos de hover globales */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animaciones adicionales y efectos especiales */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efectos de carga y estados */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.success {
    background: var(--green-gradient) !important;
    color: white !important;
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.navbar.scrolled {
    background: rgba(99, 102, 241, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Efectos de partículas mejorados */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particlesMove 20s linear infinite;
}

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

/* Efectos de texto */
.text-shimmer {
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #6366f1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.text-typing {
    border-right: 2px solid var(--primary-color);
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* Efectos de botones mejorados */
.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.4), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Efectos de cards mejorados */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Efectos de imagen mejorados */
.img-zoom {
    overflow: hidden;
    border-radius: 15px;
}

.img-zoom img {
    transition: transform 0.3s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

.img-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Efectos de loading mejorados */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Efectos de scroll mejorados */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform-origin: 0%;
    z-index: 9999;
}

/* Efectos de notificaciones mejorados */
.notification {
    transform: translateX(100%);
    animation: slideInRight 0.3s ease-out forwards;
}

.notification.hide {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Efectos de modal mejorados */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-2xl);
}

.modal-backdrop {
    backdrop-filter: blur(5px);
}

body.quick-view-open .modal-backdrop.show,
#quickViewModal.show ~ .modal-backdrop.show {
    opacity: 0.25;
}

#quickViewModal .modal-content {
    background: #ffffff;
    color: var(--gray-900);
}

#quickViewModal .modal-header {
    background: #ffffff;
}

#quickViewModal .btn-close {
    opacity: 1;
}

/* Efectos de tooltip mejorados */
.tooltip-inner {
    background: var(--primary-gradient);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Efectos de dropdown mejorados */
.dropdown-menu {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.dropdown-item {
    border-radius: 10px;
    margin: 2px 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(5px);
}

/* Efectos de progreso mejorados */
.progress {
    height: 8px;
    border-radius: 10px;
    background: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Efectos de badge mejorados */
.badge-pulse {
    animation: pulse 2s infinite;
}

.badge-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Efectos de input mejorados */
.form-floating > label {
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Efectos de tabla mejorados */
.table-hover tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Efectos de navegación mejorados */
.nav-pills .nav-link.active {
    background: var(--primary-gradient);
    color: white;
}

.nav-pills .nav-link {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Efectos de breadcrumb mejorados */
.breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Efectos de paginación mejorados */
.page-link {
    border-radius: 10px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

/* Efectos de accordion mejorados */
.accordion-button {
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.05);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-gradient);
    color: white;
}

.accordion-body {
    background: rgba(99, 102, 241, 0.02);
    border-radius: 0 0 10px 10px;
}

/* Efectos de carousel mejorados */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Efectos de offcanvas mejorados */
.offcanvas {
    border-radius: 20px 0 0 20px;
    box-shadow: var(--shadow-2xl);
}

.offcanvas-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px 0 0 0;
}

/* Efectos de toast mejorados */
.toast {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.toast-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Efectos de spinner mejorados */
.spinner-border {
    border-color: var(--primary-color);
    border-right-color: transparent;
}

.spinner-grow {
    background-color: var(--primary-color);
}

/* Efectos de collapse mejorados */
.collapse {
    transition: all 0.3s ease;
}

.collapsing {
    transition: height 0.3s ease;
}

/* Efectos de list group mejorados */
.list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(5px);
}

.list-group-item.active {
    background: var(--primary-gradient);
    color: white;
}

/* Efectos de card mejorados */
.card {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.8));
    backdrop-filter: blur(14px);
}

.card:hover {
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
    transform: translateY(-5px);
}

.card-header {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 20px 20px 0 0;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
}

.card-footer {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 0 0 20px 20px;
    border: none;
}

/* --------- Mobile-first tuning (<= 992px) --------- */
@media (max-width: 992px) {
    body {
        padding-top: calc(var(--navbar-height) + 12px);
        padding-bottom: 80px;
    }
    body::before { opacity: 0.32; filter: blur(110px); }
    body::after { opacity: 0.22; }

    h1, .hero-title { font-size: 2.35rem; line-height: 1.2; }
    h2, .section-title { font-size: 1.85rem; }
    h3 { font-size: 1.35rem; }

    .section { padding: 72px 0; }
    .hero-row { flex-direction: column-reverse; text-align: center; }
    .hero-content { align-items: center; }
    .hero-subtitle { font-size: 1rem; color: var(--gray-700); }
    .hero-image img { max-height: 320px; object-fit: contain; border-radius: 18px; box-shadow: var(--shadow-md); }

    .navbar {
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
        background: rgba(13, 19, 35, 0.9) !important;
    }
    .navbar-quick-actions {
        display: inline-flex;
    }
    .navbar-toggler {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        padding: 0.45rem;
        border-color: rgba(255,255,255,0.35);
    }
    .navbar-collapse {
        background: rgba(9, 12, 20, 0.9);
        border-radius: 14px;
        padding: 12px;
        margin-top: 12px;
        box-shadow: 0 14px 32px rgba(0,0,0,0.35);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    .navbar-nav .nav-link { font-size: 15px; padding: 10px 12px; }
    .navbar .cart-badge {
        top: -6px;
        right: -10px;
        transform: none;
        font-size: 0.75rem;
    }
    #darkModeToggle {
        position: fixed;
        bottom: 18px;
        right: 16px;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.14);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 1200;
    }
    #darkModeToggle i { pointer-events: none; }

    .product-card,
    .category-card,
    .card {
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
        transform: none !important;
    }
    .product-card:hover,
    .category-card:hover { transform: translateY(-6px); }
    .product-card .card-body,
    .category-card .card-body { padding: 1.35rem; }
    .product-card .card-title { font-size: 1.1rem; }
    .product-card .card-text { font-size: 0.97rem; }

    .product-image {
        aspect-ratio: auto;
        height: 220px;
    }
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 16px;
    }
    .product-overlay {
        display: none;
    }
    .catalog-filter-chips {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }
    .catalog-filter-chips .btn {
        white-space: nowrap;
        flex: 0 0 auto;
        width: auto;
    }
    .catalog-page #products-container > .product-item {
        flex: 0 0 50%;
        width: 50%;
    }
    .catalog-page .product-card .card-body,
    .home-page .product-card .card-body,
    .product-page .product-card .card-body {
        padding: 1rem;
        gap: 0.55rem;
    }
    .catalog-page .product-card .card-title,
    .home-page .product-card .card-title,
    .product-page .product-card .card-title {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        min-height: 2.8rem;
        margin-bottom: 0.15rem;
    }
    .catalog-page .product-card .card-text,
    .home-page .product-card .card-text,
    .product-page .product-card .card-text {
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .catalog-page .product-card .d-flex.align-items-center.mb-3 {
        margin-bottom: 0.4rem !important;
    }
    .catalog-page .product-card .d-flex.justify-content-between.align-items-center.mb-3,
    .home-page .product-card .d-flex.justify-content-between.align-items-center,
    .product-page .product-card .price.mb-2 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.35rem;
        margin-bottom: 0.55rem !important;
    }
    .catalog-page .product-card .price,
    .home-page .product-card .price,
    .product-page .product-card .price {
        font-size: 1.2rem;
    }
    .catalog-page .product-card .d-grid.gap-2,
    .home-page .product-card .card-body > .btn + .btn,
    .home-page .product-card .card-body > .btn + a {
        margin-top: 0.5rem;
    }
    .catalog-page .product-card .d-grid.gap-2 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem !important;
        margin-top: auto;
    }
    .catalog-page .product-card .d-grid.gap-2 > :first-child {
        grid-column: 1 / -1;
    }
    .catalog-page .product-card .btn,
    .home-page .product-card .btn,
    .product-page .product-card .btn {
        width: 100%;
        min-height: 42px;
        padding: 0.75rem 0.85rem;
        font-size: 0.88rem;
    }
    .catalog-page .product-card .btn i,
    .home-page .product-card .btn i,
    .product-page .product-card .btn i {
        margin-right: 0.35rem !important;
    }
    .product-gallery__main-image {
        min-height: 320px;
        padding: 1rem;
    }
    body.product-page {
        padding-bottom: 110px;
    }
    .mobile-product-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
        background: rgba(9, 14, 27, 0.94);
        border-top: 1px solid rgba(148, 163, 184, 0.16);
        box-shadow: 0 -18px 35px rgba(15, 23, 42, 0.35);
        backdrop-filter: blur(16px);
    }
    .mobile-product-bar__summary {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .mobile-product-bar__label {
        color: rgba(226, 232, 240, 0.72);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }
    .mobile-product-bar__price {
        color: #fff;
        font-size: 1.1rem;
        line-height: 1.1;
    }
    .mobile-product-bar__button {
        width: auto;
        flex: 1 1 auto;
        margin: 0;
    }

    .btn {
        font-weight: 600;
    }
    .btn-lg { padding: 0.95rem 1.25rem; }

    .card,
    .form-control,
    .btn {
        border-radius: 14px;
    }

    .stat-card { margin-bottom: 14px; }

    .scroll-to-top { right: 18px; bottom: 18px; }
}

@media (max-width: 576px) {
    h1, .hero-title { font-size: 2rem; }
    h2, .section-title { font-size: 1.6rem; }
    .hero-image img { max-height: 260px; }
    .btn, .btn-lg { padding: 0.9rem 1rem; }
    .hero-row { gap: 1.5rem; }
    .navbar .badge { transform: none; }
    .card, .product-card, .category-card {
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    }
    .section { padding: 60px 0; }
    .hero-subtitle { font-size: 0.98rem; }
    .feature-icon i { font-size: 2rem !important; }
    .catalog-page #products-container > .product-item {
        margin-bottom: 0.85rem !important;
    }
    .product-image {
        height: 148px;
    }
    .catalog-page .product-card .card-body,
    .home-page .product-card .card-body,
    .product-page .product-card .card-body {
        padding: 0.85rem;
    }
    .catalog-page .product-card .card-title,
    .home-page .product-card .card-title,
    .product-page .product-card .card-title {
        font-size: 0.92rem;
        min-height: 2.55rem;
    }
    .catalog-page .product-card .card-text,
    .catalog-page .product-card .d-flex.align-items-center.mb-3,
    .home-page .product-card .card-text,
    .home-page .product-card .rating,
    .product-page .product-card .card-text,
    .product-page .product-card .rating {
        display: none !important;
    }
    .catalog-page .product-card .price,
    .home-page .product-card .price,
    .product-page .product-card .price {
        font-size: 1.02rem;
    }
    .catalog-page .product-card .price .text-decoration-line-through,
    .home-page .product-card .price .text-decoration-line-through,
    .product-page .product-card .price .text-decoration-line-through {
        display: block;
        margin-right: 0;
        font-size: 0.8rem;
    }
    .catalog-page .product-card .btn,
    .home-page .product-card .btn,
    .product-page .product-card .btn {
        min-height: 38px;
        padding: 0.68rem 0.55rem;
        font-size: 0.78rem;
    }
    .catalog-page .product-card .d-grid.gap-2 > :not(:first-child) {
        font-size: 0;
    }
    .catalog-page .product-card .d-grid.gap-2 > :not(:first-child) i {
        margin-right: 0 !important;
        font-size: 0.9rem;
    }
    .catalog-search-form .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    .catalog-search-form .form-control,
    .catalog-search-form .btn {
        width: 100%;
        border-radius: 18px !important;
    }
    .catalog-results-header .btn-group {
        width: 100%;
        justify-content: flex-start;
    }
    .thumbnail-img {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }
    .product-gallery__main-image {
        min-height: 260px;
    }
    .mobile-product-bar {
        gap: 0.65rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .mobile-product-bar__button {
        padding: 0.82rem 0.9rem;
        font-size: 0.9rem;
    }
}

/* Media queries para efectos responsivos */
@media (max-width: 768px) {
    .card-3d:hover {
        transform: none;
    }
    
    .img-parallax {
        background-attachment: scroll;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .particles {
        display: none;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::before,
    body::after,
    .hero-section::before,
    .hero-section::after,
    .hero-image,
    .hero-image::before {
        animation: none !important;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] body,
body.dark-mode {
    background: radial-gradient(circle at 18% 18%, rgba(99, 102, 241, 0.35), transparent 55%), radial-gradient(circle at 78% 22%, rgba(236, 72, 153, 0.3), transparent 60%), #050816;
    color: var(--gray-100);
}
[data-theme="dark"] body .navbar,
body.dark-mode .navbar {
    background: rgba(8, 11, 26, 0.85) !important;
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.6);
}
[data-theme="dark"] body .card,
[data-theme="dark"] body .product-card,
[data-theme="dark"] body .category-card,
body.dark-mode .card,
body.dark-mode .product-card,
body.dark-mode .category-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
    color: rgba(226, 232, 240, 0.92);
    border-color: rgba(129, 140, 248, 0.25);
    box-shadow: 0 25px 55px rgba(2, 6, 23, 0.5);
}
[data-theme="dark"] body .section,
body.dark-mode .section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
    border-color: rgba(99, 102, 241, 0.18);
}
