/* Tienda Deportiva - Estilos Principales */

:root {
    --primary: #FF3B30;
    --primary-dark: #D32F2F;
    --secondary: #1A1A1A;
    --accent: #FFD700;
    --bg-light: #F8F9FA;
    --text-dark: #0A0A0A;
    --text-light: #666666;
    --border: #E0E0E0;
    --success: #34C759;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Header Principal */
.main-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #2C2C2C 100%);
    box-shadow: 0 2px 20px var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    text-align: center;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

/* Navegación */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Dropdown */
.main-nav li {
    position: relative;
}

.main-nav li .dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 999;
    overflow: hidden;
    padding: 0.4rem 0;
}

.main-nav li:hover .dropdown {
    display: block;
}

.main-nav .dropdown a {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
    transition: background 0.15s;
}

.main-nav .dropdown a::after {
    display: none;
}

.main-nav .dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.main-nav .has-dropdown > a::before {
    content: ' ▾';
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border-radius: 50px;
    width: 250px;
    transition: all 0.3s;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    width: 300px;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-icon {
    position: relative;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Menu Hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--primary);
}

/* Menú lateral móvil */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary) 0%, #2C2C2C 100%);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 2.5rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.menu-close:hover {
    color: var(--primary);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(26,26,26,0.25) 0%, rgba(44,44,44,0.25) 100%), url('../images/fondo-home.webp') center 20% / cover no-repeat;
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    display: none;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-banner p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.3);
}

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

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sección de Categorías */
.categories-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px var(--shadow-lg);
}

.category-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem;
    text-align: center;
    font-size: 4rem;
}

.category-info {
    padding: 1.5rem;
    text-align: center;
}

.category-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.category-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Productos Grid */
.products-section {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.product-badge.nuevo {
    background: var(--success);
}

.product-badge.oferta {
    background: var(--accent);
    color: var(--text-dark);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: var(--bg-light);
}


.product-info {
    padding: 1.5rem;
}

.product-team {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    min-height: 3rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.price-old {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

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

/* Responsive - Desktop/Tablet */
@media (min-width: 969px) {
    /* Ocultar menú móvil en desktop/tablet */
    .mobile-menu {
        display: none !important;
    }

    .menu-overlay {
        display: none !important;
    }
}

/* Responsive - Tablet */
@media (max-width: 968px) and (min-width: 641px) {
    .header-content {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        position: static;
        display: flex;
        background: none;
        border: none;
        padding: 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }

    .main-nav li {
        border: none;
    }

    .main-nav a {
        padding: 0;
        font-size: 1.05rem;
    }

    .main-nav a::after {
        display: block;
    }

    .search-box input {
        width: 200px;
    }

    .search-box input:focus {
        width: 220px;
    }

    .hero-banner h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    /* Header móvil */
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        gap: 0.8rem;
    }

    .search-box {
        display: none;
    }

    .cart-icon {
        font-size: 1.3rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}
