/* Variables del tema claro */
:root {
    /* Colores principales */
    --primary-color: #8B0000;
    --secondary-color: #D4AF37;
    --accent-color: #E8C8A9;
    
    /* Colores de fondo */
    --bg-color: #FFFFFF;
    --surface-color: #F8F9FA;
    --cream-color: #FFF5E9;
    
    /* Colores de texto */
    --text-color: #2C1810;
    --text-light: #6C757D;
    --text-dark: #1A0F0F;
    
    /* Colores de acento */
    --gold: #D4AF37;
    --burgundy: #8B0000;
    --burgundy-light: #A4343A;
    
    /* Colores de utilidad */
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.05);

    /* Tema Claro */
    --light-primary: #B76E79;
    --light-secondary: #D4AF37;
    --light-accent: #E8C8A9;
    --light-text: #4A4A4A;
    --light-surface: #FFFFFF;
    --light-border: rgba(183, 110, 121, 0.1);
    --light-shadow: rgba(0, 0, 0, 0.05);

    /* Tema Oscuro - lo mantenemos por compatibilidad pero no se usará */
    --dark-primary: #B76E79;
    --dark-secondary: #D4AF37;
    --dark-accent: #E8C8A9;
    --dark-text: #4A4A4A;
    --dark-surface: #FFFFFF;

    /* Paletas de Color */
    --forest-primary: #2C5530;
    --forest-secondary: #3E7B44;
    --forest-accent: #A8C545;

    --navy-primary: #1B3C68;
    --navy-secondary: #2B5CA1;
    --navy-accent: #64A5D9;

    --purple-primary: #4A2C64;
    --purple-secondary: #6B3F91;
    --purple-accent: #B784E0;
}

/* Estilos base */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    padding-top: 0 !important;
}

/* Jumbotron personalizado */
.jumbotron {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.jumbotron .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Navbar estática (no sticky/fixed) */
.navbar {
    position: static !important;
    top: auto;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar-brand, .nav-link {
    color: var(--text-dark) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1.5rem !important;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--burgundy);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

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

/* Estilos para las cards de empresa */
.empresa-card {
    background: #FFFFFF;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.empresa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.empresa-card .card-header {
    background: var(--primary-color);
    color: #FFFFFF;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem;
    border: none;
}

.empresa-card .card-body {
    position: relative;
    min-height: 300px;
    padding: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.empresa-logo-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.empresa-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: white;
}

.empresa-info {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.empresa-info p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.empresa-info i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

.card-footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.card-footer .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Estilos para la página de empresa */
.empresa-logo-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    background: white;
}

.empresa-logo-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f4d7c8 0%, #e9c7b3 28%, #d8e6cf 62%, #f6eadf 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-dark);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.55) 0, rgba(255,255,255,0) 28%), radial-gradient(circle at 82% 18%, rgba(255,255,255,0.38) 0, rgba(255,255,255,0) 24%), radial-gradient(circle at 50% 85%, rgba(139, 0, 0, 0.08) 0, rgba(139, 0, 0, 0) 30%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 100px;
}

/* Botones */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

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

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

/* Formularios */
.form-control, .form-select {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.1);
}

/* Modal */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 1rem 1rem 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Alertas */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .empresa-card {
        margin-bottom: 1rem;
    }
    
    .empresa-logo {
        height: 150px;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    body {
        padding-top: 0 !important;
    }
}

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

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

/* Estilos de la navbar */
.navbar {
    background-color: var(--surface-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--text-color) !important;
}

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

.company-logo {
    height: 40px;
    margin-right: 10px;
}

/* Header de empresa */
.company-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.company-stats .stat-item {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
    color: white;
}

.stat-item i {
    margin-right: 0.5rem;
}

/* Estilos para el formulario */
.form-label {
    font-weight: 500;
}

/* Estilos para mensajes de error y éxito */
.alert {
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .empresa-card {
        margin-bottom: 15px;
    }
    
    .modal-dialog {
        margin: 10px;
    }

    .company-header {
        text-align: center;
        padding: 1rem 0;
    }

    .company-stats {
        margin-top: 1rem;
        text-align: center;
    }

    .filters-section {
        padding: 0.5rem;
    }

    .producto-card {
        margin-bottom: 1rem;
    }

    .carousel-item img {
        height: 200px;
    }
} 

/* Filtros */
.filters-section {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
}

/* Modal personalizado */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    color: white;
}

/* Carousel de imágenes */
.carousel {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-item img {
    height: 300px;
    object-fit: cover;
}

/* Características del producto */
.caracteristica-item {
    background-color: var(--light-surface);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

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

.producto-card {
    animation: fadeIn 0.3s ease-out;
}

/* Tarjetas de producto */
.producto-card {
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

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

.producto-imagen {
    height: 200px;
    object-fit: cover;
}

.producto-card .card-body {
    padding: 1.5rem;
}

.producto-precio {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: bold;
}

.producto-stock {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.btn-wine {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

.btn-outline-wine {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-wine:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-title {
    color: #fffdf8;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 8px 24px rgba(107, 54, 36, 0.18);
}

.hero-subtitle {
    color: #6f3f3f;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: none;
    background: rgba(255, 250, 244, 0.58);
    border: 1px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    box-shadow: 0 12px 30px rgba(130, 84, 62, 0.08);
}

.hero-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border: 1px solid rgba(111, 63, 63, 0.18);
    color: #6f3f3f;
    background: rgba(255,255,255,0.74);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 14px 30px rgba(130, 84, 62, 0.12);
}

.hero-btn:hover {
    background: #ffffff;
    color: #54764d;
    transform: translateY(-2px);
}

.wine-features {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    max-width: 300px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.product-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 2rem;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .wine-features {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1.5rem;
    }
} 

/* Secciones principales */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background-color: var(--cream-color);
}

.section:nth-child(even) {
    background-color: var(--surface-color);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--burgundy), var(--gold));
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
}

/* Estilos para la sección Historia */
.historia-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
    position: relative;
}

.historia-moderna {
    position: relative;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.historia-moderna-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--burgundy), var(--gold));
    transform: translateX(-50%);
}

.historia-moderna-item {
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
}

.historia-moderna-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.moderna-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    width: calc(50% - 50px);
    margin-left: auto;
}

.moderna-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--burgundy);
    border-radius: 50%;
    transform: translateY(-50%);
}

.historia-moderna-item.left .moderna-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

.historia-moderna-item.right .moderna-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.historia-moderna-item.left .moderna-content::before {
    right: -60px;
}

.historia-moderna-item.right .moderna-content::before {
    left: -60px;
}

.moderna-year {
    position: absolute;
    top: -15px;
    background: var(--burgundy);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.historia-moderna-item.left .moderna-year {
    right: 20px;
}

.historia-moderna-item.right .moderna-year {
    left: 20px;
}

.moderna-title {
    font-size: 1.5rem;
    color: var(--burgundy);
    margin: 1.5rem 0 1rem;
    font-family: 'Playfair Display', serif;
}

.moderna-text {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .historia-moderna-line {
        left: 30px;
    }

    .moderna-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
    }

    .moderna-content::before {
        left: -40px !important;
        right: auto !important;
    }

    .moderna-year {
        left: 20px !important;
        right: auto !important;
    }
}

/* Certificaciones Section */
.certificaciones-section {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 5rem 0;
}

.certificacion-card {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    height: 100%;
}

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

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

.certificacion-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Sección de Procedencia */
.procedencia-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.procedencia-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.procedencia-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--burgundy), var(--burgundy-light));
}

.vineyard-description {
    color: var(--text-dark);
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
    font-family: 'Poppins', sans-serif;
}

.location-info {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.info-item i {
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.technical-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.data-item {
    text-align: center;
}

.data-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--burgundy);
}

.data-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Timeline cards */
.timeline-card {
    transition: all 0.3s ease;
}

[data-theme="dark"] .timeline-card {
    background: var(--surface-color) !important;
}

/* Valor cards */
.valor-card {
    transition: all 0.3s ease;
}

[data-theme="dark"] .valor-card {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .valor-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Modal dark mode */
[data-theme="dark"] .modal-content {
    background: var(--surface-color);
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .modal-header {
    background: var(--burgundy) !important;
}

[data-theme="dark"] .modal-footer {
    background: var(--surface-color);
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .modal-body {
    background: var(--surface-color);
}

[data-theme="dark"] .modal-title {
    color: #FFFFFF;
}

[data-theme="dark"] .form-label {
    color: #F1F5F9;
}

[data-theme="dark"] .text-muted {
    color: #94A3B8 !important;
}

[data-theme="dark"] .alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86EFAC;
}

[data-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

[data-theme="dark"] .alert-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93C5FD;
}

[data-theme="dark"] .btn-close {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] small {
    color: #94A3B8 !important;
}

.terroir-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.terroir-info h3 {
    color: var(--burgundy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.terroir-info p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.terroir-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.map-container {
    height: 100%;
    min-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-controls .form-select {
    border: none;
    font-size: 0.9rem;
    padding: 0.4rem 2rem 0.4rem 0.8rem;
    cursor: pointer;
    background-color: transparent;
}

.map-controls .form-select:focus {
    box-shadow: none;
    border-color: transparent;
}

@media (max-width: 992px) {
    .technical-data {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .procedencia-title {
        font-size: 2.5rem;
    }
    .technical-data {
        grid-template-columns: 1fr;
    }
    .map-container {
        margin-top: 2rem;
        min-height: 400px !important;
    }
    .terroir-tags {
        justify-content: center;
    }
}

/* Ajustes de color para el tema claro */
.feature-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.feature-icon {
    color: var(--gold);
}

.feature-title {
    color: var(--burgundy);
}

.feature-description {
    color: var(--text-dark);
}

/* Variables del tema oscuro - Slate moderno */
[data-theme="dark"] {
    --primary-color: #8B0000;
    --secondary-color: #D4AF37;
    --accent-color: #E8C8A9;
    --text-color: #F1F5F9;
    --bg-color: #0F172A;
    --surface-color: #1E293B;
    --cream-color: #334155;
    --text-light: #94A3B8;
    --text-dark: #F1F5F9;
    --gold: #F59E0B;
    --burgundy: #DC2626;
    --burgundy-light: #EF4444;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #1E293B 100%);
    color: #F8FAFC;
}

[data-theme="dark"] .hero-subtitle {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(245, 158, 11, 0.3);
    color: #CBD5E1;
}

[data-theme="dark"] .navbar {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    color: #F1F5F9 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link {
    color: #F1F5F9 !important;
}

[data-theme="dark"] .nav-link:hover {
    color: var(--gold) !important;
}

[data-theme="dark"] .vinos-section,
[data-theme="dark"] .productos-section {
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .feature-section {
    background: var(--surface-color);
    color: var(--text-color);
}

[data-theme="dark"] .procedencia-section {
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .certificaciones-section {
    background: var(--surface-color);
    color: #F8FAFC;
}

[data-theme="dark"] .certificacion-card {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .feedback-section {
    background: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .feedback-card {
    background: var(--surface-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .feedback-text {
    color: #94A3B8;
}

[data-theme="dark"] .footer {
    background: #0A0F1A;
    color: #F1F5F9;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .footer-title {
    color: var(--gold);
}

[data-theme="dark"] .footer-links a {
    color: #94A3B8;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--gold);
}

[data-theme="dark"] .section-title {
    color: #F8FAFC;
}

[data-theme="dark"] .section-title::after {
    background: linear-gradient(to right, var(--gold), var(--burgundy));
}

[data-theme="dark"] .hero-title {
    color: #F8FAFC;
}

[data-theme="dark"] .hero-btn {
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid var(--gold);
    color: var(--gold);
}

[data-theme="dark"] .hero-btn:hover {
    background: var(--gold);
    color: #0F172A;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--surface-color);
    border-color: rgba(255,255,255,0.1);
    color: #F1F5F9;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--surface-color);
    border-color: var(--gold);
    color: #F1F5F9;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .filters-container {
    background: var(--surface-color);
}

[data-theme="dark"] .vino-card {
    background: var(--surface-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .vino-title {
    color: #F8FAFC;
}

[data-theme="dark"] .vino-description {
    color: #94A3B8;
}

[data-theme="dark"] .vino-meta {
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .productos-container .row .col-md-4 {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 20px;
}

[data-theme="dark"] .location-info {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 30px;
}

[data-theme="dark"] .info-label {
    color: var(--gold);
}

[data-theme="dark"] .info-value {
    color: #F1F5F9;
}

[data-theme="dark"] .map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .client-name {
    color: var(--gold);
}

[data-theme="dark"] .client-title {
    color: #94A3B8;
}

/* Selector de tema moderno - toggle switch */
.theme-selector {
    display: flex;
    align-items: center;
    padding: 0;
    margin-top: 0;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #F59E0B;
    border-radius: 50px;
    background: transparent;
    color: #F59E0B;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.theme-toggle:hover {
    background: #F59E0B;
    color: #0F172A;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.theme-toggle.active {
    background: #F59E0B;
    color: #0F172A;
}

.theme-toggle.active:hover {
    background: #FCD34D;
    border-color: #FCD34D;
}

.theme-toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(20deg);
}

.theme-toggle-text {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* Transición suave para el tema */
body, .navbar, .hero-section, .footer, section {
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Botones en modo oscuro */
[data-theme="dark"] .btn {
    background: #F59E0B;
    color: #0F172A !important;
    border-color: #F59E0B;
}

[data-theme="dark"] .btn:hover {
    background: #FCD34D;
    border-color: #FCD34D;
}

/* Toggle en modo oscuro */
[data-theme="dark"] .theme-toggle {
    border-color: #F59E0B;
    color: #F59E0B;
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .theme-toggle.active {
    background: #F59E0B;
    color: #0F172A;
}

[data-theme="dark"] .theme-toggle.active:hover {
    background: #FCD34D;
    border-color: #FCD34D;
}

/* Espaciados y responsividad mejorados para el selector */
@media (max-width: 768px) {
    .theme-selector {
        margin-right: 8px;
    }
    .theme-toggle {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .theme-toggle-text {
        display: none;
    }
    .theme-toggle {
        padding: 8px;
        border-radius: 50%;
    }
    .theme-toggle-text {
        display: inline;
    }
}

/* Estilos para el formulario de empresa */
.empresa-form {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(183, 110, 121, 0.1);
}

/* Estilos para la previsualización de imágenes */
.image-preview {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Estilos para las cards */
.card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

.card-header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 15px 15px 0 0 !important;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
}

.footer-title {
    color: var(--burgundy);
}

.footer-links a {
    color: var(--text-color);
}

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

.social-links a {
    background: var(--cream-color);
    color: var(--burgundy);
}

.social-links a:hover {
    background: var(--burgundy);
    color: white;
}

/* Secciones de Feedback */
.feedback-section {
    background-color: var(--cream-color);
}

.feedback-card {
    background: var(--bg-color);
}

.feature-section {
    padding: 60px 0;
    background-color: var(--cream-color);
}

.feature-item {
    background: var(--burgundy);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.2);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--gold);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gold);
    box-shadow: 0 0 20px var(--gold);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 3rem;
    color: var(--gold);
    transition: all 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.8);
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(212, 175, 55, 0.8);
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--gold);
}

.feature-item h4 {
    color: var(--gold);
    font-size: 2.4rem;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
}

.feature-description {
    color: white;
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-value {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-top: 20px;
    padding: 15px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .feature-section {
        padding: 40px 0;
    }
    
    .feature-item {
        padding: 30px 25px;
        margin-bottom: 25px;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }

    .feature-icon i {
        font-size: 2.5rem;
    }

    .feature-item h4 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .feature-description {
        font-size: 1.1rem;
    }

    .feature-value {
        font-size: 1.8rem;
        margin-top: 15px;
    }
}

.historia-hitos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.hito {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--burgundy);
}

.hito:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.hito-year {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy);
    min-width: 120px;
    text-align: center;
    line-height: 1;
    padding: 1rem;
    background: rgba(128, 0, 32, 0.05);
    border-radius: 8px;
}

.hito-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    flex: 1;
}

@media (max-width: 768px) {
    .hito {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }

    .hito-year {
        font-size: 2rem;
        min-width: auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hito-text {
        font-size: 1rem;
    }
}

/* Fin de tema oscuro personalizado */

/* Dark mode para secciones dinámicas */
[data-theme="dark"] .nosotros-title {
    color: #F8FAFC !important;
}

[data-theme="dark"] .nosotros-contenido {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .feedback-card .feedback-text {
    color: #E2E8F0;
}

[data-theme="dark"] .feedback-icon {
    color: #F59E0B;
}

[data-theme="dark"] .testimonio-stars {
    color: #F59E0B;
}

[data-theme="dark"] .certificacion-card h3 {
    color: #F8FAFC;
}

[data-theme="dark"] .certificacion-icon {
    color: #F59E0B;
}

[data-theme="dark"] .vino-card {
    background: var(--surface-color);
}

[data-theme="dark"] .vino-title {
    color: #F8FAFC;
}

[data-theme="dark"] .vino-description {
    color: #CBD5E1;
}

[data-theme="dark"] .vino-vintage {
    color: #94A3B8;
}

[data-theme="dark"] .vino-tasting-note {
    color: #94A3B8;
}

[data-theme="dark"] .vino-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

[data-theme="dark"] .precio {
    color: #F59E0B;
}

[data-theme="dark"] .precio-label {
    color: #94A3B8;
}

[data-theme="dark"] .vino-meta {
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .caracteristica-item {
    background: rgba(255,255,255,0.05);
    color: #CBD5E1;
}

[data-theme="dark"] .procedencia-section .vineyard-description {
    color: #CBD5E1;
}

[data-theme="dark"] .procedencia-title {
    color: #F8FAFC;
}

[data-theme="dark"] .info-value {
    color: #F1F5F9;
}

[data-theme="dark"] .tag {
    background: var(--surface-color);
    color: #CBD5E1;
}

[data-theme="dark"] .terroir-info {
    background: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .terroir-info h3 {
    color: #F8FAFC;
}

[data-theme="dark"] .terroir-info p {
    color: #CBD5E1;
}

[data-theme="dark"] .location-info {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .feature-section {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .feature-section .section-title {
    color: #F8FAFC;
}

[data-theme="dark"] .productos-section {
    background: var(--bg-color) !important;
}

[data-theme="dark"] .productos-section .section-title {
    color: #F8FAFC;
}

[data-theme="dark"] .filters-container {
    background: var(--surface-color) !important;
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .input-group-text {
    background: var(--surface-color);
    border-color: rgba(255,255,255,0.1);
    color: #94A3B8;
}

[data-theme="dark"] .timeline-item .moderna-content {
    background: var(--surface-color);
    border-left-color: var(--gold);
}

[data-theme="dark"] .timeline-item .moderna-year {
    background: var(--burgundy);
}

[data-theme="dark"] .timeline-item .moderna-title {
    color: #F8FAFC;
}

[data-theme="dark"] .timeline-item .moderna-text {
    color: #CBD5E1;
}

[data-theme="dark"] .hito {
    background: var(--surface-color);
    border-left-color: var(--gold);
}

[data-theme="dark"] .hito-year {
    color: #F8FAFC;
    background: rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .hito-text {
    color: #CBD5E1;
}

[data-theme="dark"] .valor-card {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .valor-card h4 {
    color: #F8FAFC !important;
}

[data-theme="dark"] .valor-card p {
    color: #CBD5E1 !important;
}
