/* Google Fonts - Carga centralizada */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

/* Reset y Variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c2c2c;
    --secondary-color: #C0C0C0;
    --accent-color: #A8A8A8;
    --text-color: #333;
    --light-text: #666;
    --background-light: #f8f8f8;
    --white: #ffffff;
    --black: #000000;
    --gray-banner: #999999;
    --gradient-primary: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    
    --font-primary: 'Crimson Text', serif;
    --font-secondary: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--white);
    background: var(--gradient-primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    position: relative;
    gap: 30px; /* Add space between logo and navigation */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-img {
    width: 210px;
    height: 72px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    position: relative;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

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

.nav-arrow {
    font-size: 10px;
    color: var(--light-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 2px;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Ensure all dropdown links in navigation are white */
.nav .dropdown-menu .dropdown-link,
.nav .dropdown-menu a {
    color: #ffffff !important;
}

.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color) !important;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
}

.category-name {
    font-weight: 500;
}

.category-count {
    font-size: 12px;
    color: var(--white);
    background-color: var(--secondary-color);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.dropdown-loading,
.dropdown-error,
.dropdown-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    color: var(--light-text);
    font-size: 13px;
}

.dropdown-loading i {
    color: var(--secondary-color);
}

.dropdown-error i {
    color: #e74c3c;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language toggle spacing */
.header-icons .language-selector-container {
    margin-right: 20px; /* Push language toggle more to the right */
}

.header-icon {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.header-icon:hover {
    color: var(--secondary-color);
}

/* Cart icon specific styling - ensure visibility on light backgrounds */
.cart-icon {
    color: #2c2c2c !important;
}

.cart-icon:hover {
    color: #C0C0C0 !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section - Redesigned */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    color: var(--white);
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    max-width: 400px;
}

.hero-product {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.hero-brand {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-logo {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    max-width: 350px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* No filter needed - logo is already white */
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-logo-img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(192, 192, 192, 0.8));
}

.hero-tagline {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-style: italic;
    margin-top: 30px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Carousel Styles */
.hero-carousel {
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--secondary-color);
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    padding: 25px 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.promo-icon {
    font-size: 2.5rem;
    color: var(--white);
    animation: bounce 2s infinite;
}

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

.promo-info {
    flex-grow: 1;
    text-align: left;
}

.promo-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.promo-description {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 10px;
    opacity: 0.95;
}

.promo-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.promo-code,
.promo-expiry {
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.promo-cta {
    flex-shrink: 0;
}

.promo-btn {
    display: inline-block;
    background: var(--white);
    color: #A0A0A0;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Categories Section - Enhanced */
.categories-section {
    padding: 60px 0 80px;
    background: linear-gradient(to bottom, #1a1a1a 0%, var(--black) 100%);
    position: relative;
}

/* Section Header - Enhanced */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Home Categories Grid - Enhanced */
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Category Card for Homepage - Enhanced */
.home-category-card {
    position: relative;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3;
    cursor: pointer;
    transform: translateY(0);
}

.home-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Category Image - Enhanced */
.home-category-image {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
}

.home-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.home-category-card:hover .home-category-image img {
    transform: scale(1.05);
}

/* Category Info for Homepage - Enhanced */
.home-category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
    backdrop-filter: blur(2px);
}

.home-category-name {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.home-category-count {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Category Badge for Homepage - Enhanced */
.home-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Section Footer */
.section-footer {
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.view-all-btn i {
    transition: var(--transition);
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* Loading State for Homepage */
.categories-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 15px;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

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

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 10px 0;
    }
    
    .logo-img {
        width: 150px;
        height: 55px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.mobile-active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin-top: 10px;
        padding: 10px;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .hero {
        min-height: 60vh;
        padding: 100px 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-logo-img {
        max-width: 250px;
        max-height: 100px;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .categories-section {
        padding: 40px 0 60px;
    }
    
    .home-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-image {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        width: 120px;
        height: 45px;
    }
    
    .hero {
        min-height: 50vh;
        padding: 90px 0 30px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-logo-img {
        max-width: 200px;
        max-height: 80px;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-top: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .home-categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .home-category-name {
        font-size: 1.2rem;
    }
    
    .promo-text {
        font-size: 1rem;
    }
    
    .carousel-slide img {
        height: 250px;
    }
}
