/* =========================================
   PÁGINA: DETALLE DE PRODUCTO
   ========================================= */

/* --- HERO SECTION (FONDO) --- */
.producto-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Configuración del fondo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    
    overflow: hidden; 
    margin-bottom: 0;
    width: 100%;
}

.product-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondo oscuro con desenfoque para resaltar texto */
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(8px); 
    z-index: 1;
    pointer-events: none; 
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.hero-title1 {
    font-family: 'Quickpen', cursive;
    font-size: clamp(3.5rem, 6vw, 6rem);
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.hero-sublead {
    font-family: 'Marcellus', serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

/* --- CONTENEDOR PRINCIPAL --- */
.producto-image-detail {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    aspect-ratio: 3/4; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. ESTILOS COMPARTIDOS (Posición y Animación) */
.producto-image-detail img, 
.producto-image-detail video {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease-in-out, transform 0.8s ease;
    will-change: opacity, transform;
}

/* 2. ESTILO ESPECÍFICO PARA LA FOTO (Botella) */
.producto-image-detail img {
    object-fit: cover; 
    padding: 0;
    max-height: 95%;
    cursor: zoom-in;       /* Espacio para que no toque los bordes */
}

/* 3. ESTILO ESPECÍFICO PARA EL VIDEO (Zoom/Fill) */
.producto-image-detail video {
    object-fit: cover;   /* <--- AQUÍ ESTÁ LA MAGIA: Llena todo el espacio */
    padding: 0;          /* Sin márgenes, borde a borde */
    transform: scale(1.01); /* Pequeño zoom extra para asegurar bordes */
}

/* CLASES DE ESTADO (Controladas por JS) */
.media-active {
    opacity: 1;
    z-index: 10;
    transform: scale(1);
}

.media-hidden {
    opacity: 0;
    z-index: 1;
    /* Diferente comportamiento al ocultarse */
}

/* Al ocultar la imagen, se hace pequeña */
img.media-hidden {
    transform: scale(0.95); 
}

/* Al ocultar el video, se queda en su sitio (para que no haga zoom out raro) */
video.media-hidden {
    transform: scale(1.05); 
}

/* Efecto Hover sutil en el contenedor */
.producto-image-detail:hover img.media-active,
.producto-image-detail:hover video.media-active {
    transform: scale(1.03); /* Pequeño zoom al pasar el mouse */
}

/* --- MINIATURAS --- */
.producto-thumbs {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.producto-thumbs .thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.6;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.producto-thumbs .thumb:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.producto-thumbs .thumb.active {
    border-color: var(--acento-principal); /* Borde dorado */
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(196, 138, 58, 0.25);
}

/* Estilo especial para el icono de Video en miniaturas */
.thumb.video-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}
.thumb.video-trigger i {
    color: var(--color-secundario);
    transition: color 0.3s;
}
.thumb.video-trigger:hover i,
.thumb.video-trigger.active i {
    color: var(--acento-principal);
}

/* --- INFORMACIÓN DEL PRODUCTO --- */
.producto-info {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

@media (max-width: 991px) {
    .producto-info { padding-left: 0; margin-top: 3rem; }
}

.section-label {
    font-family: 'Marcellus', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: bold;
}

.producto-titulo {
    font-family: 'Marcellus', serif;
    font-size: 3.5rem; /* Título grande */
    font-weight: 400;
    color: var(--color-principal);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.producto-precio {
    font-family: 'Marcellus', cursive;
    font-size: 2.8rem;
    color: var(--acento-principal); /* Dorado */
    margin-bottom: 1.5rem;
}

.section-separator {
    width: 60px;
    height: 3px;
    background-color: var(--acento-principal);
    margin: 1.5rem 0;
    border-radius: 2px;
}

.producto-descripcion {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    font-family: 'Cambay', sans-serif;
    margin-bottom: 2.5rem;
}

/* Badges de Cócteles */
.cocteles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}

.coctel-badge {
    background: transparent;
    color: var(--color-secundario);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Marcellus', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coctel-badge:hover {
    background: var(--color-secundario);
    color: #fff;
    border-color: var(--color-secundario);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Botones de Acción */
.producto-acciones {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-solicitar-lg {
    flex: 1;
    min-width: 220px;
    padding: 16px;
    font-size: 1rem;
    background-color: var(--color-secundario);
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Marcellus', serif;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-solicitar-lg:hover {
    background-color: var(--acento-principal);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(196, 138, 58, 0.3);
    color: #fff;
}

.btn-outline-custom {
    padding: 16px 25px;
    border: 1px solid #ddd;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Marcellus', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-outline-custom:hover {
    border-color: var(--color-principal);
    color: var(--color-principal);
    background-color: #f8f9fa;
}

/* --- PRODUCTOS SIMILARES --- */
.similar-product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
    cursor: pointer;
}

.similar-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(196, 138, 58, 0.15);
}

.similar-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.similar-product-card:hover .similar-product-img {
    transform: scale(1.08);
}

.similar-product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.9); /* Overlay oscuro sólido al hover */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.similar-product-card:hover .similar-product-overlay {
    opacity: 1;
}

.similar-product-title {
    font-family: 'Quickpen', cursive;
    color: var(--acento-principal);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.similar-product-desc {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-family: 'Cambay', sans-serif;
}

/* --- ANIMACIONES UTILS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Modal Receta Styles */
#recipeModal .modal-title {
    color: var(--acento-principal);
    font-size: 2rem;
}
#recipeModal li {
    margin-bottom: 0.5rem;
}