/* ==================== VARIABLES Y ESTILOS GLOBALES ==================== */

:root {
    --primary-color: #FF8C00;
    --primary-dark: #FF7700;
    --secondary-color: #FF9500;
    --dark-bg: #0F172A;
    --light-bg: #F8FAFC;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --border-color: #E2E8F0;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ==================== NAVBAR ==================== */

.navbar {
    background-color: var(--dark-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.nav-link {
    color: #E2E8F0 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-outline-light {
    border-color: #E2E8F0;
    color: #E2E8F0;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ==================== HERO SECTION ==================== */

.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* ==================== CATEGORÍAS ==================== */

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    height: 300px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(236, 72, 153, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.category-overlay h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ==================== PRODUCTOS ==================== */

.filter-btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: var(--light-bg);
}

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

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.product-category {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.product-rating .stars {
    color: #FCD34D;
}

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

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

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

.product-actions .btn {
    flex: 1;
    border-radius: 0.5rem;
    font-weight: 600;
}

.btn-favorite {
    background-color: var(--light-bg);
    border: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

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

/* ==================== BANNER PROMOCIONAL ==================== */

.promo-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ==================== SECCIÓN NOSOTROS ==================== */

.stat-box {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-box h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--text-light);
    margin: 0;
}

/* ==================== FORMULARIO CONTACTO ==================== */

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.contact-info {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 0.75rem;
}

.contact-info h5 {
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-light);
    margin: 0;
}

/* ==================== FOOTER ==================== */

footer {
    background-color: var(--dark-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    transition: color 0.3s ease;
}

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

/* ==================== BOTONES ==================== */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* ==================== OFFCANVAS CARRITO ==================== */

.offcanvas {
    width: 400px;
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-title {
    font-weight: 700;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .offcanvas {
        width: 100% !important;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

/* ==================== ANIMACIONES ==================== */

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

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* ==================== SCROLLBAR ==================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
