/* styles.css - Versión FINAL: Reviews estilo Imagen Original + Hero Manual */

body { 
    margin: 0; 
    font-family: 'PT Sans Caption', sans-serif; 
    background-color: #fcfbf9; 
    color: #222165; 
    padding-top: 70px; 
    overflow-x: hidden; 
}

/* HEADER */
#main-header { position: fixed; top: 0; left: 0; width: 100%; height: 70px; background-color: #222165; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.header-left { flex: 1; display: flex; justify-content: flex-start; }
.header-center { flex: 1; display: flex; justify-content: center; }
.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; }
.nav-logo-img { height: 40px !important; width: auto; object-fit: contain; display: block; }
.header-btn { background: none; border: none; cursor: pointer; color: white; font-size: 1.3rem; padding: 5px; transition: color 0.3s; position: relative; }
.header-btn:hover { color: #c09f58; }
.cart-badge { position: absolute; top: -5px; right: -8px; background-color: #dc2626; color: white; font-size: 0.7rem; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }

/* BUSCADOR RESPONSIVE */
.desktop-search-container { display: none; position: relative; margin-right: 1rem; }
.mobile-search-trigger { display: block; margin-right: 0.5rem; }

/* Reglas para Desktop */
@media (min-width: 768px) {
    .desktop-search-container { display: block; width: auto; }
    .mobile-search-trigger { display: none; }
}

/* MENU MÓVIL */
#mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1001; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }
#mobile-menu-sidebar { 
    position: fixed; top: 0; left: 0; width: 280px; height: 100%; 
    background: white; z-index: 1002; 
    transform: translateX(-100%); transition: transform 0.3s ease; 
    display: flex; flex-direction: column; 
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}
#mobile-menu-sidebar.active { transform: translateX(0); }
.sidebar-header { background: #222165; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.sidebar-links-container { display: flex; flex-direction: column; padding: 1rem 0; overflow-y: auto; }
.sidebar-link { display: block; padding: 1rem 1.5rem; border-bottom: 1px solid #f0f0f0; color: #333; text-decoration: none; font-size: 1.1rem; transition: background 0.2s; }
.sidebar-link:hover { background-color: #f9f7f2; color: #222165; }

/* TARJETAS VISUALES */
.catalogo-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; max-width: 1200px; margin: 0 auto; padding: 1rem; }
@media (min-width: 640px) { .catalogo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalogo-grid { grid-template-columns: repeat(3, 1fr); } }

.visual-card { 
    position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; 
    aspect-ratio: 3/4; background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    transition: transform 0.3s; 
}
.visual-card:hover { transform: translateY(-5px); }
.visual-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.visual-card:hover img { transform: scale(1.05); }
.visual-card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem 1rem 1rem; background: linear-gradient(to top, rgba(34,33,101,0.85), transparent); color: white; text-align: center; pointer-events: none; }
.visual-card-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin: 0; font-weight: bold; }
.visual-card-subtitle { font-size: 0.8rem; opacity: 0.9; }

/* BANNERS FAMILIAS */
.familia-banda { border-radius: 12px; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); cursor: pointer; background: white; }
.familia-banda-visible-content { display: flex; height: 130px; }
.familia-banda-descripcion-oculta { max-height: 0; overflow: hidden; transition: max-height 0.4s; background: #fdfbf7; }

/* BOTONES ESPECIALES */
.special-btn { background-color: white; transition: all 0.3s; }
.special-btn:hover { transform: translateY(-2px); }
.special-btn.active { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.special-btn.active-primavera { background-color: #fbbf24; color: white; border-color: #fbbf24; }
.special-btn.active-top5 { background-color: #ef4444; color: white; border-color: #ef4444; }

/* MODAL PRODUCTO */
.expand-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(34, 33, 101, 0.6); backdrop-filter: blur(5px); 
    z-index: 4000; 
    opacity: 0; pointer-events: none; transition: opacity 0.3s; 
    display: flex; align-items: center; justify-content: center; 
}
.expand-overlay.active { opacity: 1; pointer-events: auto; }
.expand-card { background: white; width: 95%; max-width: 950px; height: 85vh; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; position: relative; transform: translateY(50px); transition: transform 0.3s; }
.expand-overlay.active .expand-card { transform: translateY(0); }
.expand-content { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }
@media (min-width: 768px) { .expand-content { flex-direction: row; } .expand-image-col { flex: 1; min-height: 100%; } .expand-info-col { flex: 1; overflow-y: auto; } }
.expand-image-col img { width: 100%; height: 100%; object-fit: cover; }
.expand-info-col { padding: 2.5rem; display: flex; flex-direction: column; }
.modal-badge { background: #f3f4f6; color: #222165; padding: 6px 16px; border-radius: 50px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; display: inline-block; border: 1px solid #e5e7eb; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; line-height: 1; color: #222165; margin-bottom: 0.5rem; }
.modal-inspiration { font-size: 0.9rem; color: #9ca3af; font-style: italic; margin-bottom: 1.5rem; }
.modal-desc { font-size: 1rem; line-height: 1.7; color: #4b5563; margin-bottom: 2rem; text-align: justify; }
.modal-actions { margin-top: auto; }
.expand-close { position: absolute; top: 20px; right: 20px; z-index: 50; background: rgba(255,255,255,0.9); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); cursor: pointer; color: #222165; }

/* Botón Share Flotante en Modal */
.modal-floating-share {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 100 !important; 
    color: #222165;
    transition: all 0.3s ease;
    border: none;
}
.modal-floating-share:hover { transform: scale(1.1); background: #fff; color: #c09f58; }

/* --- FICHA SENSORIAL --- */
.sensorial-container { margin-top: 1.5rem; margin-bottom: 2rem; padding: 1.5rem; background-color: #fff; border: 1px solid #f0f0f0; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.sensorial-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: #222165; margin-bottom: 1rem; border-bottom: 1px solid #f0f0f0; padding-bottom: 0.5rem; }
.performance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.perf-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; margin-bottom: 0.5rem; display: flex; justify-content: space-between; }
.progress-track { width: 100%; height: 6px; background-color: #f3f4f6; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #c09f58 0%, #e6ce91 100%); border-radius: 10px; width: 0; transition: width 1s ease-out; }
.occasion-grid { display: flex; justify-content: space-around; margin-bottom: 2rem; padding: 1rem 0; border-top: 1px dashed #f0f0f0; border-bottom: 1px dashed #f0f0f0; }
.occasion-item { text-align: center; opacity: 0.3; transform: scale(0.9); transition: all 0.3s; }
.occasion-item.active { opacity: 1; transform: scale(1.1); color: #c09f58; }
.occasion-item i { font-size: 1.5rem; margin-bottom: 0.3rem; }
.occasion-item span { display: block; font-size: 0.65rem; text-transform: uppercase; font-weight: bold; }
.pyramid-container { position: relative; padding-left: 20px; }
.pyramid-level { position: relative; padding-bottom: 1.5rem; padding-left: 1.5rem; border-left: 2px solid #e5e7eb; }
.pyramid-level:last-child { border-left: 2px solid transparent; padding-bottom: 0; }
.pyramid-level::before { content: ''; position: absolute; left: -6px; top: 0; width: 10px; height: 10px; border-radius: 50%; background-color: #fff; border: 2px solid #c09f58; }
.pyramid-title { font-size: 0.7rem; text-transform: uppercase; color: #c09f58; font-weight: bold; margin-bottom: 0.2rem; }
.pyramid-notes { font-family: 'Playfair Display', serif; font-size: 1rem; color: #222165; line-height: 1.2; }
@media (max-width: 640px) { .performance-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* FORMULARIO CARRITO */
.modern-form-container { margin-top: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 700; color: #6b7280; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input, .form-select { width: 100%; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid #e5e7eb; background-color: #f9fafb; color: #1f2937; font-size: 0.9rem; transition: all 0.2s; }
.form-input:focus, .form-select:focus { outline: none; border-color: #222165; background-color: #fff; box-shadow: 0 0 0 3px rgba(34, 33, 101, 0.1); }
.shipping-details-box { background-color: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem; margin-top: 0.8rem; }
.important-note { background: #fff8e1; border-left: 4px solid #c09f58; padding: 0.8rem; border-radius: 6px; font-size: 0.8rem; color: #856404; margin-bottom: 1.5rem; margin-top: 1rem; }
.btn-checkout { background: linear-gradient(135deg, #222165 0%, #363585 100%); color: white; width: 100%; padding: 1rem; border-radius: 10px; font-weight: bold; font-size: 1rem; border: none; cursor: pointer; box-shadow: 0 4px 6px rgba(34, 33, 101, 0.2); transition: transform 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 12px rgba(34, 33, 101, 0.3); }

/* LÓGICA DE TRANSICIÓN MODALES */
#cart-modal, #wishlist-modal { z-index: 3100; transition: opacity 0.3s ease; }
#cart-modal.active, #wishlist-modal.active { opacity: 1; pointer-events: auto; }
#cart-modal > div, #wishlist-modal > div { transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#cart-modal.active > div, #wishlist-modal.active > div { transform: translateX(0); }
.hidden { display: none !important; }

/* MICRO-INTERACCIONES Y BOTONES DE TARJETA */
@keyframes cartPop { 0% { transform: scale(1); } 50% { transform: scale(1.3); color: #c09f58; } 100% { transform: scale(1); color: white; } }
.animate-cart-pop { animation: cartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-added-success { background-color: #10b981 !important; border-color: #10b981 !important; transform: scale(0.98); }

.card-wishlist-btn { position: absolute; top: 10px; right: 10px; z-index: 20; background: rgba(255, 255, 255, 0.9); border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: all 0.3s ease; border: none; color: #ccc; }
.card-wishlist-btn:hover { transform: scale(1.1); color: #ef4444; }
.card-wishlist-btn.active { color: #ef4444; }
.card-wishlist-btn.active i { font-weight: 900; animation: heartBeat 0.4s; }

/* Botón Compartir (Catalogo) */
.card-share-btn { position: absolute; top: 10px; left: 10px; z-index: 20; background: rgba(255, 255, 255, 0.9); border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: all 0.3s ease; border: none; color: #222165; }
.card-share-btn:hover { transform: scale(1.1); color: #c09f58; background: #fff; }

.expand-image-col { position: relative; }

@media (max-width: 768px) { .expand-info-col { padding: 1.5rem !important; } .expand-image-col { min-height: 250px; } }

/* TOAST */
.toast-notification { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); color: white; padding: 12px 24px; border-radius: 50px; font-weight: bold; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(0,0,0,0.2); opacity: 0; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); z-index: 5000 !important; pointer-events: none; white-space: nowrap; }
.toast-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* FOOTER & DEV SIGNATURE */
.developer-signature-container { display: inline-flex; align-items: center; justify-content: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem; margin-top: 0.5rem; width: 200px; margin-left: auto; margin-right: auto; }
.developer-link { font-family: 'PT Sans Caption', sans-serif; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: all 0.3s ease; font-weight: 400; letter-spacing: 0.5px; position: relative; }
.developer-link:hover { color: #c09f58; transform: translateY(-1px); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.developer-link::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; background-color: #c09f58; transition: width 0.3s; }
.developer-link:hover::after { width: 100%; }

/* ESTILOS DEL ASISTENTE OLFATIVO */
.quiz-option-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; cursor: pointer; transition: all 0.3s ease; background: white; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.quiz-option-card:hover { border-color: #c09f58; background-color: #fffbf0; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(192, 159, 88, 0.15); }
.quiz-icon { font-size: 2rem; color: #222165; margin-bottom: 0.5rem; }
.quiz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; max-width: 500px; }
@keyframes bounceSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.animate-bounce-slow { animation: bounceSlow 3s infinite ease-in-out; }
@media (max-width: 640px) { .quiz-grid { grid-template-columns: 1fr; } }

/* --- FIX SOMMELIER MOBILE --- */
#quiz-modal { align-items: center; padding: 1rem; }
#quiz-card-inner { max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; width: 100%; margin: 0 auto; }
.quiz-results-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .quiz-results-grid { grid-template-columns: repeat(3, 1fr); } }

/* Botón secundario Carrito */
.btn-secondary-outline {
    width: 100%; background-color: transparent; border: 1px solid #e5e7eb; color: #6b7280;
    padding: 12px; border-radius: 12px; font-family: 'PT Sans Caption', sans-serif;
    font-weight: bold; font-size: 0.9rem; transition: all 0.3s ease;
    margin-top: 0.8rem; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 0.5rem;
}
.btn-secondary-outline:hover { border-color: #222165; color: #222165; background-color: #f9f7f2; }

/* --- HERO CAROUSEL STYLES (LIMPIO) --- */
.hero-slide.active { opacity: 1 !important; z-index: 1; }
.hero-slide img { animation: zoomEffect 25s infinite alternate; }
@keyframes zoomEffect { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }
.carousel-dot.active { background-color: #fff; transform: scale(1.2); box-shadow: 0 0 8px rgba(255,255,255,0.5); }

/* --- HERO ARROWS (Navegación Manual) --- */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30; /* Por encima de las imágenes (z-1) y puntos (z-20) */
    background-color: rgba(255, 255, 255, 0.2); /* Sutil y elegante */
    backdrop-filter: blur(2px); /* Efecto cristal */
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #222165; /* Azul Baires Scent */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-arrow:hover {
    background-color: #fff;
    color: #c09f58; /* Dorado al hover */
    transform: translateY(-50%) scale(1.1); /* Efecto "pop" suave */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-prev { left: 20px; padding-right: 3px; }
.hero-next { right: 20px; padding-left: 3px; }

@media (max-width: 768px) {
    .hero-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background-color: rgba(255, 255, 255, 0.4); 
    }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
}

/* --- ESTILO DE REVIEWS (Carrusel Horizontal - Borde Azul) --- */
.reviews-carousel-container {
    -webkit-overflow-scrolling: touch; 
}
.reviews-carousel-container::-webkit-scrollbar {
    display: none;
}

.review-card-baires {
    background-color: #fdfbf7; /* Tono crema suave igual a la imagen */
    border-left: 4px solid #222165; /* El borde azul característico */
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    border-radius: 4px; /* Bordes sutilmente redondeados en las esquinas derechas */
}

.review-card-baires:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.review-text-content {
    font-family: 'PT Sans Caption', sans-serif;
    font-style: italic;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .review-card-baires {
        min-height: 220px; 
    }
}

/* --- FLECHAS CARRUSEL DE REVIEWS (Solo Desktop) --- */
.review-nav-container {
    position: relative; /* Para contener las flechas absolutas */
}

.review-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #222165;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    opacity: 0; /* Ocultas por defecto */
}

/* Mostrar flechas solo cuando el mouse entra en la sección */
.review-nav-container:hover .review-arrow {
    opacity: 1;
}

.review-arrow:hover {
    background-color: #222165;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.review-prev { left: -20px; }
.review-next { right: -20px; }

/* En móviles ocultamos las flechas porque usan el dedo */
@media (max-width: 768px) {
    .review-arrow { display: none !important; }
}