/**
 * GameStop Medellín - Main Stylesheet
 * Version: 1.0
 * Date: 2025-10-27
 */

/* ===================================
   IMPORTS
=================================== */
@import url('variables.css');

/* ===================================
   CSS RESET / NORMALIZE
=================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--line-normal);
    color: var(--primary-dark);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    line-height: var(--line-tight);
    font-weight: var(--weight-bold);
    margin: 0;
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

h4 {
    font-size: var(--text-h4);
}

h5 {
    font-size: var(--text-h5);
}

p {
    margin: 0 0 var(--space-4) 0;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ===================================
   UTILITY CLASSES
=================================== */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-red);
    color: var(--primary-white);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: var(--z-maximum);
    border-radius: var(--radius-md);
}

.skip-link:focus {
    top: var(--space-2);
    left: var(--space-2);
}

/* ===================================
   COMPONENT STYLES
=================================== */

/* BUTTONS */
.btn {
    display: inline-block;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--primary-white);
}

.btn-primary:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--primary-white);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-red);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
}

.btn-ghost:hover {
    color: var(--primary-red-hover);
    text-decoration: underline;
}

/* PRODUCT CARDS */
.product-card {
    background: var(--primary-white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--light-gray);
}

.product-card__content {
    padding: var(--card-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: var(--text-h5);
    font-weight: var(--weight-semibold);
    color: var(--primary-dark);
    margin-bottom: var(--space-2);
    line-height: var(--line-tight);
}

.product-card__category {
    font-size: var(--text-sm);
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-3);
}

.product-card__price {
    font-size: var(--text-price);
    font-weight: var(--weight-bold);
    color: var(--primary-red);
    font-family: var(--font-mono);
    margin-bottom: var(--space-4);
}

.product-card__actions {
    margin-top: auto;
}

/* CATEGORY CARDS - Modern Design */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(227, 25, 55, 0.1) 0%, rgba(196, 21, 48, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(227, 25, 55, 0.3);
}

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

.category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card__image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2.5rem;
    text-align: center;
    z-index: 2;
    transition: all 0.4s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(
        to top,
        rgba(227, 25, 55, 0.95) 0%,
        rgba(196, 21, 48, 0.85) 50%,
        rgba(227, 25, 55, 0.6) 100%
    );
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.category-card:hover .category-icon {
    transform: translateY(-10px) scale(1.1);
}

.category-title {
    color: var(--primary-white);
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.category-card:hover .category-title {
    letter-spacing: 3px;
    transform: scale(1.05);
}

.category-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.category-card:hover .category-subtitle {
    opacity: 1;
    transform: translateY(-5px);
}

.category-count {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #E31937;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: none; /* Ocultar contador de productos en categorías */
}

.category-card:hover .category-count {
    background: #E31937;
    color: white;
    transform: scale(1.1);
}

/* Loading State */
.categories-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1.5rem;
}

.categories-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: #E31937;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.categories-loading p {
    font-size: 1rem;
    color: #6B7280;
    font-weight: 500;
}

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

/* BADGES */
.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-2xl);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.badge--new {
    background: var(--accent-green);
    color: var(--primary-white);
}

.badge--sale {
    background: var(--primary-red);
    color: var(--primary-white);
}

.badge--limited {
    background: var(--accent-purple);
    color: var(--primary-white);
}

/* ===================================
   LAYOUT STYLES
=================================== */

/* HEADER */
.header {
    position: sticky;
    top: 0;
    background: var(--primary-white);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-sticky);
    height: 100px;
}

/* Force consistent padding in header container */
.header .container {
    padding: 0 var(--space-4) !important;
}

.navbar {
    display: flex;
    align-items: center;
    height: 100px;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Header Logo Específico con mayor especificidad */
.header-logo {
    height: 140px;
}

.header-logo-img {
    height: 150px !important;
    width: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Navigation Menu - Desktop */
.nav-menu {
    display: flex;
    gap: var(--space-8);
    align-items: center;
    flex-shrink: 0;
    margin-left: var(--space-12);
    /* Espacio entre logo y menú: 96px */
}

/* Nav utilities - push to the right */
.nav-utilities {
    margin-left: auto;
}

.nav-link {
    color: var(--primary-dark);
    font-weight: var(--weight-semibold);
    font-size: 1.625rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Efecto de fondo animado */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c91530 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: var(--radius-lg);
}

/* Línea inferior animada */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
}

/* Hover effects */
.nav-link:hover {
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 25, 55, 0.3);
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Active state */
.nav-link.active {
    color: var(--primary-white);
    background: linear-gradient(135deg, var(--primary-red) 0%, #c91530 100%);
    box-shadow: 0 4px 12px rgba(227, 25, 55, 0.4),
                0 0 20px rgba(227, 25, 55, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    background: linear-gradient(90deg, transparent, var(--primary-white), transparent);
}

/* Animación de pulso para el botón activo */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(227, 25, 55, 0.4),
                    0 0 20px rgba(227, 25, 55, 0.2);
    }
    50% {
        box-shadow: 0 6px 16px rgba(227, 25, 55, 0.5),
                    0 0 30px rgba(227, 25, 55, 0.3);
    }
}

/* Search Container */
.search-container {
    display: none;
    flex: 1;
    max-width: 300px;
    margin: 0 var(--space-4);
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: var(--space-2) var(--space-10) var(--space-2) var(--space-4);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-focus);
}

.search-btn {
    position: absolute;
    right: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
    padding: var(--space-1);
    color: var(--medium-gray);
}

/* Utility Icons */
.nav-utilities {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.utility-btn {
    position: relative;
    padding: var(--space-3);
    color: var(--primary-dark);
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
}

.utility-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.utility-btn:hover {
    color: var(--primary-red);
    background: rgba(227, 25, 55, 0.1);
    transform: scale(1.1);
}

.utility-btn.pulse {
    animation: cartPulse 0.3s ease;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.cart-count,
.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-red);
    color: var(--primary-white);
    font-size: 0.7rem;
    font-weight: var(--weight-bold);
    padding: 3px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    height: 20px;
    text-align: center;
    line-height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(227, 25, 55, 0.4);
    border: 2px solid var(--primary-white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-2);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    transition: all var(--transition-base);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-white);
    z-index: var(--z-overlay);
    transition: left var(--transition-base);
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-content {
    padding: var(--space-6);
}

.mobile-menu-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-2);
}

.mobile-nav-menu {
    margin-top: var(--space-8);
}

.mobile-nav-menu li {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-menu a {
    font-size: var(--text-h5);
    color: var(--primary-dark);
}

/* ===================================
   SECTION STYLES
=================================== */

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-title {
    color: var(--primary-dark);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
}

.section-footer {
    text-align: center;
    margin-top: var(--space-8);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: none;
}

.carousel-slide.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

/* Animaciones de deslizamiento */
.carousel-slide.slide-in-right {
    animation: slideInFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-slide.slide-in-left {
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-slide.slide-out-left {
    animation: slideOutToLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-slide.slide-out-right {
    animation: slideOutToRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-content {
    text-align: center;
    padding: var(--space-6);
    color: var(--primary-white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.carousel-slide.active .hero-content {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Animación para el contenido del hero */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: var(--primary-red);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: var(--weight-black);
    margin-bottom: var(--space-4);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: var(--weight-regular);
    margin-bottom: var(--space-6);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Carousel Controls */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary-white);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(227, 25, 55, 0.4);
    border-color: var(--primary-red);
}

.carousel-prev:active,
.carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: var(--space-4);
}

.carousel-next {
    right: var(--space-4);
}

/* Efecto de onda al hacer click */
.carousel-prev:active::after,
.carousel-next:active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    animation: ripple 0.6s ease-out;
}

.carousel-indicators {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.indicator.active {
    background: var(--primary-white);
    width: 32px;
}

/* FEATURED PRODUCTS */
.featured-products {
    padding: var(--section-padding-mobile) 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--grid-gap-md);
}

/* CATEGORIES SECTION */
.categories-section {
    padding: var(--section-padding-mobile) 0;
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap-md);
}

/* SPECIAL OFFERS */
.special-offers {
    padding: var(--section-padding-mobile) 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap-lg);
}

/* ===================================
   NEW ARRIVALS TIMELINE - Horizontal Scroll
=================================== */
.new-arrivals-timeline {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    min-height: 700px;
}

/* Background Effects */
.timeline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.timeline-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.timeline-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(227, 25, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: particlesFloat 20s ease-in-out infinite;
}

@keyframes particlesFloat {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-20px); }
}

/* Header Section */
.timeline-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.timeline-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(227, 25, 55, 0.2) 0%, rgba(227, 25, 55, 0.1) 100%);
    border: 1px solid rgba(227, 25, 55, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(227, 25, 55, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(227, 25, 55, 0); }
}

.badge-icon {
    font-size: 1.25rem;
    animation: badgeIconBounce 1.5s ease-in-out infinite;
}

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

.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-red);
    text-transform: uppercase;
}

.timeline-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Carousel Wrapper */
.timeline-carousel-wrapper {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 100%;
}

/* Navigation Buttons */
.timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(227, 25, 55, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
}

.timeline-carousel-wrapper:hover .timeline-nav {
    opacity: 1;
    pointer-events: all;
}

.timeline-nav:hover {
    background: rgba(227, 25, 55, 0.9);
    border-color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(227, 25, 55, 0.4);
}

.timeline-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.timeline-nav-prev {
    left: 2rem;
}

.timeline-nav-next {
    right: 2rem;
}

.timeline-nav svg {
    width: 24px;
    height: 24px;
}

/* Carousel Container */
.timeline-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 2rem 4rem;
}

.timeline-carousel::-webkit-scrollbar {
    display: none;
}

.timeline-carousel:active {
    cursor: grabbing;
}

/* Timeline Track */
.timeline-track {
    display: flex;
    gap: 2rem;
    padding: 0.5rem 0;
    min-height: 480px;
}

/* Timeline Card */
.timeline-card {
    flex: 0 0 320px;
    width: 320px;
    scroll-snap-align: start;
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.timeline-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(227, 25, 55, 0.5);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(227, 25, 55, 0.2),
        0 0 40px rgba(227, 25, 55, 0.2);
}

/* Card Image Container */
.timeline-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.timeline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.timeline-card:hover .timeline-card-image img {
    transform: scale(1.1);
}

/* Card Badge Overlay */
.timeline-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-card-badge.badge-hot {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(239, 68, 68, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgePulseHot 2s ease-in-out infinite;
}

.timeline-card-badge.badge-new {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95) 0%, rgba(251, 146, 60, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-card-badge.badge-recent {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-card-badge.badge-standard {
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.95) 0%, rgba(100, 116, 139, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes badgePulseHot {
    0%, 100% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.7); }
}

.badge-icon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: badgeDotPulse 1.5s ease-in-out infinite;
}

@keyframes badgeDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

/* Platform Badge */
.timeline-card-platform {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 0.25rem 0.625rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    z-index: 2;
}

/* Card Content */
.timeline-card-content {
    padding: 1.25rem;
}

.timeline-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.timeline-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.timeline-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #fbbf24;
}

.timeline-card-category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-card-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-family: 'Roboto Mono', monospace;
}

/* Card Actions */
.timeline-card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-timeline-cart {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71528 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-timeline-cart:hover {
    background: linear-gradient(135deg, #b71528 0%, #8f1120 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 25, 55, 0.4);
}

.btn-timeline-view {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-timeline-view:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Progress Indicator */
.timeline-progress {
    width: 80%;
    max-width: 400px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.timeline-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red) 0%, #f97316 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Loading State */
.timeline-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: rgba(255, 255, 255, 0.7);
    gap: 1rem;
}

/* Footer */
.timeline-footer {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.btn-timeline-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-timeline-view-all:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227, 25, 55, 0.4);
}

.btn-timeline-view-all svg {
    transition: transform 0.3s ease;
}

.btn-timeline-view-all:hover svg {
    transform: translateX(4px);
}

/* NEWSLETTER SECTION */
.newsletter-section {
    padding: var(--section-padding-mobile) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-gray) 100%);
    color: var(--primary-white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    color: var(--primary-white);
    margin-bottom: var(--space-4);
}

.newsletter-subtitle {
    color: var(--light-gray);
    margin-bottom: var(--space-6);
}

.newsletter-form {
    margin-bottom: var(--space-8);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.newsletter-input {
    padding: var(--input-padding-y) var(--input-padding-x);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--input-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    font-size: var(--input-font-size);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-white);
    background: rgba(255, 255, 255, 0.2);
}

.trust-indicators {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.trust-icon {
    font-size: var(--text-h5);
}

/* FOOTER */
.footer {
    padding: var(--footer-padding-y) 0 var(--space-6) 0;
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.footer-logo {
    width: 120px;
    margin-bottom: var(--space-4);
    border-radius: 12px;
    background: white;
    padding: 0.75rem;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--medium-gray);
}

.footer-heading {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
    color: var(--primary-white);
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--light-gray);
    font-size: var(--text-sm);
}

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

.footer-contact p {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.social-icons {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--primary-red);
    color: var(--primary-white);
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    font-size: var(--text-xs);
    color: var(--medium-gray);
    margin-bottom: var(--space-2);
}

.copyright .designer-link {
    color: var(--primary-red);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    transition: all 0.2s ease;
}

.copyright .designer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
}

.footer-bottom-links a {
    color: var(--medium-gray);
}

.footer-bottom-links a:hover {
    color: var(--primary-red);
}

/* ===================================
   FOCUS STATES (Accessibility)
=================================== */
*:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline-offset: 4px;
}

/* ===================================
   ANIMATIONS
=================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones del carrusel - Deslizamiento horizontal */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutToLeft {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%) scale(0.95);
    }
}

@keyframes slideOutToRight {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   PRODUCT CARDS
=================================== */
.products-grid,
.arrivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.5px;
}

.discount-badge {
    background: #ef4444;
    color: white;
}

.featured-badge {
    background: #f59e0b;
    color: white;
    top: 12px;
    right: auto;
    left: 12px;
}

.new-badge {
    background: #10b981;
    color: white;
    top: 52px;
    right: auto;
    left: 12px;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f8fafc;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.quick-view-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.quick-view-btn:hover {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.product-platform {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 0.875rem;
    color: #64748b;
}

.product-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    min-height: 2.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-red);
    word-break: break-word;
    line-height: 1.2;
}

.product-price-original {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
    word-break: break-word;
    line-height: 1.2;
}

.product-actions {
    margin-top: auto;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #c41530;
}

.product-stock-warning {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

/* Empty State */
.products-grid:empty::after,
.arrivals-grid:empty::after {
    content: 'Cargando productos...';
    display: block;
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.125rem;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {

    .products-grid,
    .arrivals-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.25rem;
    }
}

/* ===================================
   TOAST NOTIFICATIONS
=================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--primary-dark);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-weight: 600;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.toast.toast-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.toast.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}