/* --- VARIABLES --- */
:root {
    --brand-color: #A1488E;
    --brand-dark: #7a356b;
    --brand-light: #d29ec7;
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

/* --- 1. ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    padding-bottom: 0;
}

.premium-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente claro */
    background: radial-gradient(circle at 50% 10%, rgba(161, 72, 142, 0.08) 0%, #ffffff 60%);
    z-index: -1;
}

.serif {
    font-family: 'Playfair Display', serif;
}

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

.text-gray {
    color: var(--text-secondary);
}

/* --- 2. HERO Y NAVEGACIÓN --- */
.hero-cover {
    position: relative;
    height: 50vh;
    height: 50dvh; /* dvh = dynamic viewport height: no salta con la barra del navegador */
    width: 100%;
    overflow: hidden;
    z-index: 1;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-bg {
    position: absolute;
    top: -5%;         /* compensa el scale sin dejar bordes blancos */
    left: 0;
    width: 100%;
    height: 110%;     /* margen extra para el movimiento parallax en desktop */
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* GPU acceleration — evita que el browser repinte en CPU */
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1.05);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* En móvil: sin parallax JS → imagen estática centrada, sin jitter */
@media (max-width: 768px), (pointer: coarse) {
    .hero-bg {
        top: 0;
        height: 100%;
        transform: translate3d(0, 0, 0); /* GPU layer, sin scale ni desplazamiento */
        will-change: auto;               /* libera el layer GPU cuando no se usa */
    }
}

.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-header--scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
}

.nav-btn {
    width: 48px;
    height: 48px;
    /* Botones estilo cristal claro */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
    font-size: 20px;
    border: 1px solid rgba(161, 72, 142, 0.3);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-btn:hover {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(161, 72, 142, 0.3);
}

/* --- 3. PERFIL --- */
.profile-section {
    position: relative;
    margin-top: -80px;
    padding: 0 20px;
    z-index: 5;
}

.profile-container {
    max-width: 1100px;
    margin: 0 auto;
}

.logo-box {
    width: 110px;
    height: 110px;
    background: #ffffff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 4px;
    margin-bottom: 20px;
}
.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.vinicola-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Badge de marca */
.badge-brand {
    background: linear-gradient(90deg, var(--brand-color), var(--brand-dark));
    color: #fff;
    box-shadow: 0 4px 10px rgba(161, 72, 142, 0.2);
}

.badge-blue {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Badge claro */
.badge-light {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* NUEVO BADGE DE RATING */
.badge-rating {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fcd34d;
}

/* ─────────────────────────────────────────────────────────────────────────
   BLOQUE DE IDENTIDAD
   Ambos niveles comparten exactamente el mismo ancho horizontal
   ───────────────────────────────────────────────────────────────────────── */
.identity-block {
    width: 100%;
    margin: 8px 0 12px;
}

/* ─────────────────────────────────────────────────────────────────────────
   NIVEL 1 — BADGES VIP: sellos de calidad, jerarquía dominante
   ───────────────────────────────────────────────────────────────────────── */
.vip-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}
.vip-badge {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 50px;
    white-space: nowrap;
    cursor: default;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #fff;
}

.vip-badge > i {
    font-size: 0.9rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Restaurante — verde sólido */
.vip-badge--restaurante {
    background: #2bb673;
    box-shadow: 0 4px 10px rgba(43, 182, 115, 0.3);
}

/* Hospedaje — azul sólido */
.vip-badge--hospedaje {
    background: #33a3dc;
    box-shadow: 0 4px 10px rgba(51, 163, 220, 0.3);
}

/* Cervecería — amarillo sólido */
.vip-badge--cerveceria {
    background: #f2c019;
    box-shadow: 0 4px 10px rgba(242, 192, 25, 0.3);
    color: #fff;
}

.vip-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-color);
    margin: 12px 0 7px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.vip-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-color);
    opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────
   NIVEL 2 — IDEAL PARA: proporcionado, subordinado a VIP
   Mismo ancho que .vip-badges gracias al .identity-block padre
   ───────────────────────────────────────────────────────────────────────── */
.ideal-para-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-color);
    margin: 12px 0 7px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.ideal-para-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-color);
    opacity: 0.6;
}

.ideal-para-strip {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    background: transparent;
    border: none;
}
.ideal-para-icon {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 5px 9px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    transition: background 0.15s, border-color 0.15s;
}
.ideal-para-icon:hover {
    background: #f1f0f8;
    border-color: rgba(161, 72, 142, 0.2);
}
.ideal-para-icon i {
    font-size: 1.1rem;
    color: var(--brand-color);
    line-height: 1;
}
.ideal-para-icon span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #64748b;
    text-align: center;
    line-height: 1.1;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin: 4px 0 10px;
    line-height: 1.1;
    color: var(--text-main);
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffffff; /* Fondo blanco */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
    background: var(--brand-color);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--brand-color);
}

/* --- 4. AMENIDADES & INFO --- */
.amenities-card { margin-bottom: 10px; }
.amenities-wrapper-v2 { display: flex; flex-direction: column; gap: 18px; }
.amen-cat-titulo {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: #94a3b8;
    margin-bottom: 8px;
}
.amen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 4px;
    align-items: start;
}
.amen-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 7px 3px 6px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #edf0f3;
    background: #f8fafc;
    color: #6b7280;
    overflow: hidden;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.amen-pill i {
    font-size: 1rem;
    color: var(--brand-color);
    flex-shrink: 0;
    line-height: 1;
}
.amen-pill-label {
    font-size: 0.58rem;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
}
.amen-ver-mas {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 12px;
    border: none;
    background: transparent;
    color: var(--brand-color);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border-radius: 20px;
    transition: background 0.15s;
    width: fit-content;
    margin-top: 2px;
}
.amen-ver-mas:hover { background: rgba(161, 72, 142, 0.07); }

/* Bloques de categoría — solo usados por JS al re-colapsar */
.amen-cat-block--oculto { display: none; }

/* Colapso por max-height: muestra ~3 filas de pills y difumina el resto */
.amenities-wrapper-v2--colapsado {
    max-height: 210px;
    overflow: hidden;
    position: relative;
}
.amenities-wrapper-v2--colapsado::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, transparent, var(--bg-card, #fff));
    pointer-events: none;
}

/* Botón toggle de sección */
.amen-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}
.amen-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    border: 1.5px solid var(--brand-color);
    background: #fff;
    color: var(--brand-color);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.3px;
}
.amen-toggle-btn:hover {
    background: var(--brand-color);
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────
   ACCORDION — Servicios & Amenidades / Historia
   Técnica: grid-template-rows 0fr → 1fr (sin el jank del max-height)
   ───────────────────────────────────────────────────────────────────────── */

/* Botón de encabezado acordeón: hereda tipografía de .card-title */
.acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-weight: inherit;
}
.acc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Tipografía idéntica a .card-title */
.acc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brand-color);
    line-height: 1.2;
}
.acc-header > .acc-header-left > i {
    color: var(--brand-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}
/* Pastilla numérica junto al título */
.acc-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    color: var(--brand-color);
    background: rgba(161, 72, 142, 0.10);
    border-radius: 20px;
    padding: 2px 9px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
/* Chevron — rota 180° cuando está abierto */
.acc-chevron {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-card.is-open .acc-chevron {
    transform: rotate(180deg);
}
/* Wrapper colapsable con grid trick
   overflow:hidden siempre en .acc-body para evitar reflows durante la transición */
.acc-body {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    will-change: grid-template-rows;
    transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-card.is-open .acc-body {
    grid-template-rows: 1fr;
    overflow: visible; /* permite el ::after gradient de amenidades cuando está abierto */
}
/* Inner: min-height:0 para que el 0fr colapse a cero.
   Opacity GPU-composited — hace la apertura perceptiblemente más fluida.
   Delay 50ms: el grid empieza primero, luego aparece el contenido. */
.acc-body-inner {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateZ(0);   /* promueve a compositor layer */
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
                padding-top 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-card.is-open .acc-body-inner {
    overflow: visible;
    padding-top: 14px;
    opacity: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brand-color);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list li {
    display: flex;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 15px;
}

.info-list i {
    color: var(--brand-color);
    width: 20px;
    margin-top: 3px;
}

.team-row {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* --- 5. VINOS (PREMIUM CARD) --- */
.wines-section {
    margin-top: 40px;
}

.wines-carousel-wrapper {
    position: relative;
}

.wines-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--bg-page, #f8f9fa));
    pointer-events: none;
    border-radius: 0 16px 16px 0;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--brand-color);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev { left: -14px; }
.carousel-btn-next { right: -14px; }

.carousel-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.wines-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.wines-grid::-webkit-scrollbar {
    display: none;
}

.wine-card-premium {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
    min-width: 160px;
    max-width: 160px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.wine-card-premium:active {
    transform: scale(0.98);
}

.wine-card-premium:hover {
    border-color: var(--brand-color);
    box-shadow: 0 10px 20px rgba(161, 72, 142, 0.1);
}

.wine-badge-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* Badges claros */
.badge-tinto {
    background-color: #fce7f3;
    color: #be185d;
}

.badge-blanco {
    background-color: #fef9c3;
    color: #a16207;
}

.badge-rosado {
    background-color: #ffe4e6;
    color: #be123c;
}

.badge-postre {
    background-color: #ffedd5;
    color: #c2410c;
}

.wine-photo-area {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Fondo sutil */
    background: radial-gradient(circle, #f1f5f9 0%, transparent 70%);
}

.wine-photo-area img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: none;
}

.wine-details {
    text-align: center;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.winery-label {
    color: var(--brand-color);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 10px;
}

.wine-title {
    font-family: 'Playfair Display';
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 2px 0;
    text-transform: uppercase;
}

.wine-price-tag {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
}

/* --- 6. RESEÑAS (NUEVO) --- */
.reviews-scroll {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.reviews-scroll::-webkit-scrollbar {
    width: 4px;
}

.reviews-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.review-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #A1488E, #7a356b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.review-stars-display {
    color: #fbbf24;
    font-size: 12px;
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
}

.review-date {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 5px;
    text-align: right;
}


/* --- GALERÍA & VIDEO --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px;
    gap: 10px;
    border-radius: 24px;
    overflow: hidden;
}

.bento-item {
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
    cursor: pointer;
}

.bento-item img, .bento-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item:nth-child(n+2) {
    grid-column: span 1;
    grid-row: span 1;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(161, 72, 142, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.video-360-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(161, 72, 142, 0.3);
    background: #000;
}

.video-360-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        overflow-x: auto;
        height: 280px;
        scroll-snap-type: x mandatory;
        gap: 15px;
    }

    .bento-item {
        min-width: 85%;
        scroll-snap-align: center;
        border-radius: 16px;
    }

    .wines-grid {
        gap: 10px;
    }
}

/* ─── FOTOS GRID (acordeón de fotos) ─────────────────────────────────────── */
.fotos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.foto-item {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.foto-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── VIDEO GRID (acordeón de videos) ────────────────────────────────────── */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.video-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    background: #000;
}

/* Wrapper 16:9 para YouTube iframes */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video nativo responsivo */
.video-player {
    width: 100%;
    display: block;
    max-height: 480px;
    background: #000;
}

/* Card destacada para el Tour 360° */
.video-card--featured {
    position: relative;
    box-shadow: 0 6px 28px rgba(107, 45, 94, 0.20);
    border: 1.5px solid rgba(161, 72, 142, 0.30);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* touch-action:none evita que Safari (iPhone) intercepte el gesto de arrastre
   para hacer scroll de página, permitiendo que el drag 360° llegue al iframe */
.video-responsive--360 {
    touch-action: none;
}

/* Botones de acción bajo el video 360 (giroscopio / abrir en YouTube) */
.btn-360-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    margin-top: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
}
.btn-360-gyro {
    background: rgba(107, 45, 94, 0.10);
    color: #6B2D5E;
    border: 1px solid rgba(107, 45, 94, 0.25);
}
.btn-360-yt {
    background: rgba(200, 0, 0, 0.07);
    color: #c4302b;
    border: 1px solid rgba(200, 0, 0, 0.20);
}

.video-360-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #6B2D5E 0%, #A1488E 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(107,45,94,0.35);
    pointer-events: none;
}

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

/* --- FOOTER FLOTANTE --- */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 20px 30px;
    border-top: 1px solid var(--border-color);
    z-index: 150;
    display: flex;
    gap: 12px;
    justify-content: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .sticky-footer {
        bottom: 62px;
        padding: 10px 16px 12px;
    }

    /* Más espacio al final del contenido para que no quede tapado */
    body {
        padding-bottom: 145px !important;
    }

    /* Botón principal más compacto en mobile */
    .btn-main {
        padding: 10px 16px;
        font-size: 0.82rem;
        letter-spacing: 0.5px;
    }
}

.btn-main {
    flex: 1;
    max-width: 500px;
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-dark) 100%);
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(161, 72, 142, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-whatsapp {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    flex-shrink: 0;
}

/* --- BOTÓN VER CATÁLOGO --- */
.view-all-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-bottom: 10px;
}

.btn-brand-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(161, 72, 142, 0.05);
    border: 1px solid rgba(161, 72, 142, 0.5);
    color: var(--brand-color);
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.btn-brand-outline:hover {
    background: rgba(161, 72, 142, 0.1);
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

/* --- MODALES --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(5px);
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal-content {
    background: #ffffff; /* Fondo blanco */
    width: 100%;
    max-width: 550px;
    border-radius: 30px 30px 0 0;
    border: none;
    padding: 0;
    position: relative;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.35s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .modal-content {
        border-radius: 24px;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-scroll-area {
    overflow-y: auto;
    flex: 1;
    width: 100%;
    scrollbar-width: none;
}

/* ESTILOS MODAL VINO */
.modal-wine-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    border-radius: 30px 30px 0 0;
}

.modal-wine-img {
    width: 100%;
    height: 350px;
    margin-bottom: 25px;
    background-color: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(161, 72, 142, 0.1);
}

.modal-wine-img img {
    height: 90%;
    width: auto;
    object-fit: contain;
}

.modal-info-container {
    padding: 0 30px 30px;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.detail-item {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 2px;
}

.wine-gallery-preview {
    width: 100%;
    height: 200px;
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.wine-gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expand-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.gallery-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--brand-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(161, 72, 142, 0.2);
}

/* ESTILOS MODAL EVALUAR */
.rating-header {
    padding: 30px 20px 10px;
    text-align: center;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.star-label {
    font-size: 35px;
    color: #e2e8f0;
    cursor: pointer;
    transition: 0.2s;
}

.star-label:hover, .star-label.active {
    color: #fbbf24;
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.rating-input-area {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    resize: none;
    min-height: 120px;
    font-size: 15px;
    outline: none;
}

.rating-input-area:focus {
    border-color: var(--brand-color);
    background: #ffffff;
}

/* LIGHTBOX */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
}

.lb-prev {
    left: 10px;
    z-index: 999;
}

.lb-next {
    right: 10px;
    z-index: 999;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* PROTECCIÓN DE IMÁGENES */
.protected-image {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}
.image-protected-wrapper {
    position: relative;
    display: block;
    line-height: 0;
    width: 100%;
    -webkit-touch-callout: none;
    user-select: none;
}
.image-protected-wrapper::after {
    content: '© Vinitácora';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, 0.25);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    letter-spacing: 4px;
}
.image-shield {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    background: transparent;
    cursor: default;
    -webkit-touch-callout: none;
    user-select: none;
}

/* Bento grid: las imágenes protegidas heredan 100%x100% del bento-item */
.bento-item .protected-image {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

#lightbox-content {
    width: 95%;
    max-width: 900px;
    max-height: 80vh;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Botón Favoritos en Modal de Vino */
.wine-fav-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--brand-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
    border: 1px solid #e2e8f0;
}

.wine-fav-btn:active {
    transform: scale(0.9);
}

.wine-fav-btn i.fas {
    color: #ef4444;
}

/* ── Botón "Evaluar / Agregar Experiencia" ── */
.btn-main.btn-experiencia {
    flex-direction:  column !important;
    gap:             2px !important;
    padding:         10px 20px;
    font-size:       0.88rem;
    line-height:     1.2;
    /* Anula los estilos "anchos" de .btn-main solo para este botón */
    text-transform:  none !important;
    letter-spacing:  0.3px !important;
    font-weight:     700 !important;
}

/* Fila: icono + texto principal siempre en horizontal */
.btn-exp-label {
    display:     flex;
    align-items: center;
    gap:         6px;
}

/* Sub-texto "(Tienes X notas)" siempre en segunda línea */
.btn-sub-count {
    display:        block !important;
    font-size:      0.68rem;
    font-weight:    400;
    opacity:        0.82;
    text-transform: none;
    letter-spacing: 0;
    margin-top:     1px;
}

/* Variante línea única: sin notas previas — fila compacta */
.btn-main.btn-exp-single {
    flex-direction: row !important;
    gap:            8px !important;
    padding:        10px 24px !important;
    align-items:    center !important;
    justify-content: center !important;
    font-size:      0.9rem !important;
}

/* Mobile First: versión compacta */
@media (max-width: 480px) {
    .btn-main.btn-experiencia {
        padding:   8px 14px !important;
        font-size: 0.8rem !important;
    }
    .btn-sub-count {
        font-size: 0.63rem;
    }
    .btn-main.btn-exp-single {
        padding:   9px 18px !important;
        font-size: 0.85rem !important;
    }
}

/* ══════════════════════════════════════════════════════════
   STICKY HEADER — overlay, drawer y transición scroll
   ══════════════════════════════════════════════════════════ */

/* ── Overlay de fondo al abrir el drawer ── */
#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 20, 0.45);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#menu-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Drawer deslizante desde la derecha ── */
#menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100dvh;
    background: #ffffff;
    z-index: 400;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 40px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

#menu-drawer.is-open {
    transform: translateX(0);
}

/* ── Cabecera del drawer ── */
.menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.menu-drawer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-color);
    letter-spacing: -0.01em;
}

.menu-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.menu-drawer-close:hover {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
}

/* ── Links del drawer ── */
.menu-drawer-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.menu-drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.menu-drawer-item:hover,
.menu-drawer-item:active {
    background: rgba(161, 72, 142, 0.06);
    color: var(--brand-color);
    border-left-color: var(--brand-color);
}

.menu-drawer-item i {
    width: 20px;
    text-align: center;
    color: var(--brand-color);
    font-size: 1rem;
    opacity: 0.85;
}

/* ── Pie del drawer (logout) ── */
.menu-drawer-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.menu-drawer-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #ef4444;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.menu-drawer-logout:hover {
    opacity: 0.75;
}

.menu-drawer-logout i {
    width: 20px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════════════════════════════ */

.site-footer {
    background: #000000;
    color: rgba(255, 255, 255, 0.8);
    padding: 52px 24px 120px;
    margin-top: 40px;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

/* ── Bloque genérico ── */
.footer-block {
    display: flex;
    flex-direction: column;
}

/* ── Identidad ── */
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
    margin-bottom: 16px;
}

.footer-home-link {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--brand-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(209, 158, 199, 0.35);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
    width: fit-content;
}

.footer-home-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Títulos de bloque ── */
.footer-block-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 16px;
}

/* ── Redes sociales ── */
.footer-social-row {
    display: flex;
    gap: 10px;
}

.footer-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.footer-social-btn:hover {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Soporte ── */
.footer-support-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 18px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.83rem;
    line-height: 1.5;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.footer-support-btn:hover {
    background: rgba(161, 72, 142, 0.22);
    border-color: rgba(161, 72, 142, 0.5);
    color: #fff;
}

.footer-support-btn > i {
    font-size: 1.15rem;
    color: var(--brand-light);
    flex-shrink: 0;
    transition: color 0.25s;
}

.footer-support-btn:hover > i {
    color: #fff;
}

.footer-support-btn strong {
    color: #fff;
    font-weight: 700;
}

/* ── Copyright ── */
.footer-copyright {
    max-width: 1100px;
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    letter-spacing: 0.4px;
}

/* ── Responsivo: apilado centrado en móvil ── */
@media (max-width: 768px) {
    .site-footer {
        display: none;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-social-row {
        justify-content: center;
    }

    .footer-home-link {
        margin: 0 auto;
    }

    .footer-support-btn {
        text-align: left;
    }
}
