/*
Vinery Pro - Archivo CSS Principal
Colores: #3f111c (vino oscuro) y #9d0bd7 (morado vibrante)
*/

/* Variables CSS */
:root {
    --wine-dark: #3f111c;
    --purple-vibrant: #5a113e;
    --wine-light: rgba(63, 17, 28, 0.1);
    --purple-light: rgba(157, 11, 215, 0.1);
    --text-dark: #2c1810;
    --text-light: #6c5b7b;
    --bg-light: #faf9fb;
    --white: #ffffff;
    --border: rgba(63, 17, 28, 0.15);
    --shadow: 0 4px 20px rgba(63, 17, 28, 0.1);
    --shadow-hover: 0 8px 30px rgba(157, 11, 215, 0.2);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
    font-weight: 700;
    color: var(--wine-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--purple-vibrant);
}

.navbar-brand {
    font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wine-dark) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

/* Logo Styles */
.site-logo {
    height: 45px !important;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.1) brightness(1.05);
    border-radius: 8px;
}

.navbar-brand:hover .site-logo {
    transform: scale(1.05);
    filter: contrast(1.15) brightness(1.1);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.8rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #8B0000 !important;
    background: rgba(139, 0, 0, 0.08);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: 2px solid var(--wine-dark);
    padding: 0.5rem 0.8rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(63, 17, 28, 0.25);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--purple-light);
    color: var(--wine-dark);
    padding-left: 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--wine-dark) 0%, var(--purple-vibrant) 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 75vh;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-hero {
    background: var(--white);
    color: var(--wine-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background: var(--wine-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(157, 11, 215, 0.4);
}

/* Buttons */
.btn-wine {
    background: var(--wine-dark);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-wine:hover {
    background: var(--purple-vibrant);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-wine {
    background: transparent;
    color: var(--wine-dark);
    border: 2px solid var(--wine-dark);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-wine:hover {
    background: var(--wine-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--wine-dark), var(--purple-vibrant));
    color: var(--white);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--wine-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 320px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f5f0 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 15px;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--purple-vibrant);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wine-dark);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--wine-dark);
    margin-bottom: 1rem;
}

.product-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wine-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.feature-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--wine-dark), var(--text-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
}
a {
    color: rgba(var(--wine-dark));
    text-decoration: none;
}
.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wine-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Forms */
.form-control {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--purple-vibrant);
    box-shadow: 0 0 0 0.2rem rgba(157, 11, 215, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--wine-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.site-footer {
    background: var(--wine-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--purple-vibrant);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Utilities */
.text-wine { color: var(--wine-dark) !important; }
.text-purple { color: var(--purple-vibrant) !important; }
.bg-wine { background: var(--wine-dark) !important; }
.bg-purple { background: var(--purple-vibrant) !important; }
.bg-gradient { background: linear-gradient(135deg, var(--wine-dark), var(--purple-vibrant)) !important; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .site-logo {
        height: 40px !important;
    }
    
    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .product-image {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .site-logo {
        height: 35px !important;
    }
    
    .product-image {
        height: 260px;
    }
    
    .product-image img {
        padding: 10px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--wine-light);
    border-top: 4px solid var(--purple-vibrant);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert-wine {
    background: var(--wine-light);
    border: 1px solid var(--wine-dark);
    color: var(--wine-dark);
    border-radius: 8px;
    padding: 1rem;
}

.alert-purple {
    background: var(--purple-light);
    border: 1px solid var(--purple-vibrant);
    color: var(--wine-dark);
    border-radius: 8px;
    padding: 1rem;
}