/**
 * KYOSHOP STORE - MODERN PREMIUM DESIGN
 * Diseño moderno y llamativo para tienda online
 */

/* ========================================
   ROOT VARIABLES & COLORS
   ======================================== */
:root {
    /* Brand Colors */
    --primary: #2D3436;
    --primary-light: #636E72;
    --accent: #6C5CE7;
    --accent-dark: #5F3DC4;
    --accent-light: #A29BFE;

    /* Neutrals */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #868E96;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;

    /* Status Colors */
    --success: #51CF66;
    --danger: #FF6B6B;
    --warning: #FFD43B;
    --info: #74C0FC;

    /* WhatsApp */
    --whatsapp: #25D366;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-accent: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
    --gradient-dark: linear-gradient(135deg, #2D3436 0%, #000000 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2), 0 5px 10px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --nav-height: 80px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.modern-store {
    font-family: var(--font-primary);
    color: var(--gray-900);
    background-color: var(--gray-50);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-content {
    min-height: calc(100vh - var(--nav-height) - 300px);
    padding-top: 2rem;
}

/* ========================================
   MODERN NAVIGATION
   ======================================== */
.modern-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--nav-height);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    z-index: 1000;
}

.modern-nav.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 2rem;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-link-modern {
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link-modern:hover {
    color: var(--accent);
    background: var(--gray-100);
}

.nav-link-modern.active {
    color: var(--accent);
    background: var(--gray-100);
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    text-decoration: none;
}

.nav-icon-btn:hover {
    background: var(--gray-100);
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-icon-btn i {
    font-size: 20px;
}

.whatsapp-btn:hover {
    background: var(--whatsapp);
    color: white;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cart-badge:empty {
    display: none;
}

/* ========================================
   MODERN ALERTS
   ======================================== */
.modern-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    animation: slideInDown 0.4s ease;
}

.modern-alert i {
    font-size: 20px;
}

.modern-alert.alert-success {
    background: linear-gradient(135deg, #51CF66 0%, #40C057 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.modern-alert.alert-danger {
    background: linear-gradient(135deg, #FF6B6B 0%, #FA5252 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.alert-close {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all var(--transition-fast);
}

.alert-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* ========================================
   MODERN FOOTER
   ======================================== */
.modern-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    margin-top: 5rem;
}

.footer-top {
    padding: 4rem 0;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo-image {
    height: 40px;
}

.footer-brand .brand-name {
    font-size: 1.5rem;
}

.footer-desc {
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-500);
}

.footer-contact i {
    color: var(--accent);
    font-size: 18px;
    width: 20px;
}

.footer-bottom {
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
    color: var(--accent-light);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-wrapper .navbar-collapse {
        margin-top: 1rem;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

.shadow-hover {
    transition: box-shadow var(--transition-base);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

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

/* ========================================
   ENHANCED HERO SECTION V2
   ======================================== */
.catalog-hero-v2 {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(0,0,0,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(30deg, rgba(255,255,255,.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.1) 87.5%, rgba(255,255,255,.1)),
        linear-gradient(150deg, rgba(255,255,255,.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.1) 87.5%, rgba(255,255,255,.1)),
        linear-gradient(30deg, rgba(255,255,255,.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.1) 87.5%, rgba(255,255,255,.1)),
        linear-gradient(150deg, rgba(255,255,255,.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.1) 87.5%, rgba(255,255,255,.1));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content-v2 {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-badge i {
    font-size: 1rem;
    color: #FFD43B;
}

.hero-title-v2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-title-v2 .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f0e6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle-v2 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 0.25rem;
}

.stat-number i {
    font-size: 1.75rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-cta {
    animation: fadeInUp 0.6s ease 0.6s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--accent);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    color: var(--accent-dark);
}

.btn-hero-primary i {
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .catalog-hero-v2 {
        min-height: 60vh;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .btn-hero-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}
