:root {
    --color-wine: #8B2332;
    --color-wine-dark: #6B1825;
    --color-gold: #D4AF37;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Utilidades de Color */
.text-wine { color: var(--color-wine) !important; }
.text-gold { color: var(--color-gold) !important; }
.bg-wine { background-color: var(--color-wine) !important; }
.border-wine { border-color: var(--color-wine) !important; }

/* Navbar Link Hover - El cambio solicitado */
.nav-link {
    transition: color 0.3s ease;
    color: #333;
}
.nav-link:hover {
    color: var(--color-wine) !important;
}
.nav-link.active {
    color: var(--color-wine) !important;
    font-weight: 700;
}

/* Botones */
.btn-wine {
    background-color: var(--color-wine);
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.btn-wine:hover {
    background-color: var(--color-wine-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 35, 50, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    position: relative;
}

/* Tarjetas de Producto */
.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}
/* --- TARJETA DE PRODUCTO GRANDE (ESTILO E-COMMERCE) --- */

.product-card-lg {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden; /* Para que nada se salga de los bordes redondeados */
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%; /* Para que todas tengan la misma altura */
    display: flex;
    flex-direction: column;
}

.product-card-lg:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--color-wine);
}

/* CONTENEDOR DE LA IMAGEN (La parte "Grande") */
.product-image-lg {
    height: 260px; /* Altura fija para que se vea GRANDE */
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Necesario para el efecto de brillo */
    overflow: hidden;   /* Para cortar el brillo */
}

/* El Ícono (Emoji) */
.product-icon-size {
    font-size: 4rem; /* Emoji gigante */
    transition: transform 0.3s ease;
}

.product-card-lg:hover .product-icon-size {
    transform: scale(1.1); /* Zoom sutil al ícono */
}

/* --- TU EFECTO DE BRILLO (SHINE) --- */
.product-image-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Empieza fuera a la izquierda */
    width: 100%;
    height: 100%;
    /* Gradiente blanco/transparente para el brillo */
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent
    );
    transition: left 0.6s ease; /* Velocidad del brillo */
    z-index: 1;
}

.product-card-lg:hover .product-image-lg::before {
    left: 100%; /* Se mueve a la derecha al hacer hover */
}

/* INFORMACIÓN DEL PRODUCTO */
.product-info-lg {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(139, 35, 50, 0.1) !important;
    border-color: var(--color-wine) !important;
}

/* Galería */
.gallery-item {
    transition: all 0.3s ease;
}
.gallery-overlay {
    background: linear-gradient(to top, rgba(139, 35, 50, 0.95) 0%, rgba(139, 35, 50, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--color-wine) !important;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
/* --- ESTILOS DEL MODAL PREMIUM --- */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background-color: #fff;
    border-bottom: none; /* Quitamos la línea fea */
    padding: 1rem 1.5rem 0; /* Ajuste de padding */
}

/* El Icono grande arriba */
.modal-product-icon {
    font-size: 3rem;
    background: #fff0f3; /* Fondo vino muy suave */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    color: var(--color-wine);
}

/* Etiquetas pequeñas (TIPO, COLOR, ETC) */
.form-label-custom {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    /* color: #999; */
    margin-bottom: 0.8rem;
    display: block;
}

/* --- BOTONES DE SELECCIÓN (CHIPS) --- */
.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Ocultamos el radio button real feo */
.option-input {
    display: none; 
}

/* El diseño del botón */
.option-label {
    padding: 8px 18px;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #555;
    background: #fff;
    user-select: none;
}

.option-label:hover {
    border-color: var(--color-wine);
    background: #fff;
    color: var(--color-wine);
}

/* Cuando se selecciona el botón */
.option-input:checked + .option-label {
    background-color: var(--color-wine);
    color: white;
    border-color: var(--color-wine);
    box-shadow: 0 4px 12px rgba(139, 35, 50, 0.25);
    transform: translateY(-1px);
}

/* Selector de Cantidad Estilizado */
.quantity-wrapper {
    background: #f1f3f5;
    border-radius: 12px;
    padding: 5px;
    display: inline-flex;
    align-items: center;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    background: white;
    color: var(--color-wine);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active { transform: scale(0.95); }

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
}
.qty-input:focus { outline: none; }

/* --- ANIMACIÓN CARD PREMIUM (Suavizada) --- */
.hover-up {
    /* "all" asegura que el borde, la sombra y el movimiento se animen juntos */
    /* cubic-bezier hace que empiece rápido y frene suavemente */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent; /* Evita saltos al poner el borde de color */
    backface-visibility: hidden; /* Mejora rendimiento en renderizado */
}

.hover-up:hover {
    transform: translateY(-8px); /* Elevación sutil */
    box-shadow: 0 15px 30px rgba(139, 35, 50, 0.15) !important; /* Sombra difusa color vino */
    border-color: var(--color-wine) !important;
}