:root {
    --primary-color: #1EE5CE;
    --bg-color: #fdfdfd;
    --text-color: #1a1a1a;
    --text-muted: #666;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --radius-lg: 40px;
    --radius-pill: 100px;
    --transition-smooth: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 30px 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 15px 0;
}

.header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    flex: 0 0 250px;
}

.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    display: block;
}

.brand-logo:hover {
    transform: translateX(8px);
    filter: brightness(1.1);
}

.header.scrolled .brand-logo {
    height: 50px;
}

.nav-center-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-instagram-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-instagram-pill:hover {
    color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(224, 86, 36, 0.3);
    box-shadow: 0 12px 30px rgba(224, 86, 36, 0.15);
}

.nav-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    position: relative;
}

.nav-active-pill {
    position: absolute;
    height: calc(100% - 8px);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-pill);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    top: 4px;
}

.nav-links li {
    position: relative;
    z-index: 1;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.header-cta {
    flex: 0 0 200px;
    display: flex;
    justify-content: flex-end;
}

.cta-button {
    background-color: var(--text-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links li {
    position: relative;
}

.nav-links li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    z-index: 1000;
}

.dropdown-menu li {
    display: block;
    text-align: center;
}

.dropdown-menu a {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px 0;
    color: var(--text-color);
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.04);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 229, 206, 0.2);
}

/* --- Hero Slider Section --- */
.hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.hero-slider .container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 50px;
    max-width: 550px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}

.slide.active .glass-panel {
    transform: translateX(0);
    opacity: 1;
}

.glass-panel h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-color);
}

.glass-panel p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
}

.slider-btn {
    display: inline-block;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background: var(--text-color);
    color: var(--white);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* --- Sections & Reveal Effects --- */
.intro {
    padding: 120px 0;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.shape-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

/* --- Spaces Section --- */
.spaces-section {
    position: relative;
    /* La altura se controla ahora con el scroll-track */
}

.spaces-scroll-track {
    height: 180vh;
    /* Altura de desplazamiento reducida para mayor rapidez */
    position: relative;
}

.spaces-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 40px;
    overflow: hidden;
}

.spaces-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    margin-top: 0;
}

/* Centered Header for Inner Pages */
.spaces-header.centered-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 40px auto 50px;
}

.spaces-header.centered-header .spaces-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.spaces-header.centered-header h2 {
    text-align: center;
    font-size: 3.2rem;
    line-height: 1.25;
}

.spaces-header.centered-header .spaces-description {
    max-width: 650px;
    margin: 0 auto;
}

.spaces-header.centered-header .spaces-description p {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.spaces-title-group h2 {
    font-size: 4rem;
    line-height: 1.1;
}

.text-highlight {
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.spaces-description {
    max-width: 400px;
}

.spaces-description p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.spaces-gallery {
    position: relative;
    width: 100%;
    /* Mantener una relación de aspecto para que el SVG no se distorsione */
    aspect-ratio: 16 / 9;
    min-height: 250px;
    max-height: 65vh;
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* La transición de scroll se maneja en el JS */
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-item:hover {
    z-index: 10;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    filter: brightness(var(--scroll-brightness, 1.5)) contrast(var(--scroll-contrast, 0.8)) saturate(var(--scroll-saturate, 0));
    opacity: var(--scroll-opacity, 0.15);
    transform: scale(var(--scroll-scale, 1.1));
    scale: 1;
}

.gallery-item:hover .gallery-img {
    scale: 1.08;
}

/* Polígonos matemáticamente exactos para brechas paralelas (Gap diagonal = 1.5% del ancho total. Gap vertical = 2% del alto total) */

/* 2 Column Diagonal Layout for Carta Barra and Bodega */
.item-barra-col-1 {
    left: 0;
    width: 56.5%;
    clip-path: polygon(0% 0%, 100% 0%, 73.45% 100%, 0% 100%);
    z-index: 1;
}

.item-barra-col-2 {
    left: 43.5%;
    width: 56.5%;
    clip-path: polygon(26.55% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 2;
}

/* 3 Column Diagonal Layout for Carta Comedor */
.item-carta-col-1 {
    left: 0;
    width: 39.5%;
    clip-path: polygon(0% 0%, 100% 0%, 62.03% 100%, 0% 100%);
    z-index: 1;
}

.item-carta-col-2 {
    left: 26%;
    width: 47%;
    clip-path: polygon(31.91% 0%, 100% 0%, 68.09% 100%, 0% 100%);
    z-index: 2;
}

.item-carta-col-3 {
    left: 59.5%;
    width: 40.5%;
    clip-path: polygon(37.04% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 3;
}

/* 4 Column Diagonal Layout for Carta */
.item-col-1 {
    left: 0;
    width: 31.375%;
    clip-path: polygon(0% 0%, 100% 0%, 52.19% 100%, 0% 100%);
    z-index: 1;
}

.item-col-2 {
    left: 17.875%;
    width: 38.875%;
    clip-path: polygon(38.58% 0%, 100% 0%, 61.41% 100%, 0% 100%);
    z-index: 2;
}

.item-col-3 {
    left: 43.25%;
    width: 38.875%;
    clip-path: polygon(38.58% 0%, 100% 0%, 61.41% 100%, 0% 100%);
    z-index: 3;
}

.item-col-4 {
    left: 68.625%;
    width: 31.375%;
    clip-path: polygon(47.81% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 4;
}

/* Index Page Diagonal Layout (1 main, 2 stacked) */
.item-main {
    left: 0;
    width: 60%;
    clip-path: polygon(0% 0%, 100% 0%, 75% 100%, 0% 100%);
    z-index: 1;
}

.item-top-right {
    left: 54.15%;
    width: 45.85%;
    top: 0;
    height: 49%;
    clip-path: polygon(16.03% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 2;
}

.item-bottom-right {
    left: 46.5%;
    width: 53.5%;
    top: 51%;
    height: 49%;
    clip-path: polygon(13.74% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 3;
}

.img-label {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    transition-delay: 0.6s;
    pointer-events: none;
}

.reveal.active .img-label {
    opacity: 1;
    transform: translateY(0);
}

/* --- Menus Section --- */
.menus-section {
    margin-top: 89px;
    padding: 90px 0;
    background-color: #eef2f5;
    /* Fondo suave para contrastar con las tarjetas blancas */
}

.menus-header {
    text-align: center;
    margin-bottom: 70px;
}

.menus-header h2 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.menus-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.menu-card {
    flex: 1;
    min-height: 480px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-card:hover {
    transform: translateY(-10px);
    z-index: 10;
}

/* Polígonos para crear el efecto de recortes diagonales paralelos */
.menu-card-1 {
    clip-path: polygon(-20px 0, 100% 0, calc(100% - 60px) 100%, -20px 100%);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.menu-card-2 {
    clip-path: polygon(60px 0, 100% 0, calc(100% - 60px) 100%, 0 100%);
    margin-left: -40px;
    /* Separación diagonal de 20px (60px slant - 40px margin) */
}

.menu-card-3 {
    clip-path: polygon(60px 0, calc(100% + 20px) 0, calc(100% + 20px) 100%, 0 100%);
    margin-left: -40px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.menu-img-container {
    height: 280px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.menu-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-card:hover .menu-img-container img {
    transform: scale(1.08);
}

.menu-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--text-color);
    color: var(--white);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2;
}

/* Desplazamos la etiqueta para que no sea cortada por el clip-path en las tarjetas 2 y 3 */
.menu-card-2 .menu-badge,
.menu-card-3 .menu-badge {
    left: 85px;
}

.menu-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Elegant Wine List (Carta de Vinos) --- */
.cellar-intro {
    max-width: 800px;
    margin: 40px auto 80px;
    text-align: center;
    padding: 0 20px;
}

.cellar-intro .eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.cellar-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

.cellar-intro p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.wine-list-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding: 60px 20px;
}

.wine-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.wine-filter-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.wine-filter-btn.active,
.wine-filter-btn:hover {
    background: var(--text-color);
    color: var(--white);
    border-color: var(--text-color);
}

/* Destacado editorial independiente del filtro seleccionado. */
.wine-filter-btn.wine-filter-btn-featured {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color);
    font-weight: 600;
}

.wine-filter-btn.wine-filter-btn-featured:hover,
.wine-filter-btn.wine-filter-btn-featured.active {
    background: var(--primary-color);
    color: var(--text-color);
    border-color: var(--text-color);
    box-shadow: inset 0 0 0 1px var(--text-color);
}

.wine-filter-btn:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 3px;
}

.wine-category {
    margin-bottom: 60px;
    display: none;
}

.wine-category.active {
    display: block;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-header {
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.group-header h2 {
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin: 0;
    text-transform: uppercase;
    color: var(--text-color);
}

.group-content {
    column-count: 1;
}

.wine-subgroup {
    margin-bottom: 50px;
}

.highlight-subgroup {
    border: 2px solid #72cac7;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 60px;
    background: rgba(114, 202, 199, 0.05);
}

.wine-subgroup h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #555555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.price-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    clear: both;
}

.wine-table {
    width: 100%;
    border-collapse: collapse;
}

.wine-table td {
    padding: 10px 0;
    vertical-align: baseline;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.15);
}

.w-name {
    width: auto;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-color);
}

.w-grape {
    width: 1%;
    white-space: nowrap;
    padding-left: 15px !important;
    font-size: 0.85rem;
    font-style: italic;
    color: #999;
    text-align: right;
}

.w-price {
    width: 1%;
    white-space: nowrap;
    padding-left: 20px !important;
    text-align: right;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color);
}

/* --- Reserva de la Familia Premium Theme --- */
#vinos-reserva-de-la-familia {
    background-color: #1a1a1a;
    padding: 60px 50px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    border: 1px solid #333;
}

#vinos-reserva-de-la-familia .group-header {
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

#vinos-reserva-de-la-familia .group-header h2 {
    color: #d4af37;
    /* Elegante tono dorado */
}

#vinos-reserva-de-la-familia .wine-subgroup h3 {
    color: #d4af37;
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

#vinos-reserva-de-la-familia .wine-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

#vinos-reserva-de-la-familia .w-name {
    color: #fdfdfd;
}

#vinos-reserva-de-la-familia .w-grape {
    color: rgba(255, 255, 255, 0.5);
}

#vinos-reserva-de-la-familia .w-price {
    color: #d4af37;
}

@media (max-width: 768px) {
    #vinos-reserva-de-la-familia {
        padding: 40px 20px;
    }
}

/* --- Sugerencias de Óscar Featured Theme (Gris Clarito) --- */
.wine-category-sugerencias-oscar,
#vinos-sugerencias-de-oscar,
#vinos-sugerencias-de-scar,
#vinos-las-sugerencias-de-oscar,
#vinos-las-sugerencias-de-scar,
[id*="sugerencias"][id*="oscar"],
[id*="sugerencias"][id*="scar"] {
    background-color: #f4f6f8;
    padding: 60px 50px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    border: 1px solid #e2e8f0;
}

.wine-category-sugerencias-oscar .group-header,
#vinos-sugerencias-de-oscar .group-header,
#vinos-sugerencias-de-scar .group-header,
#vinos-las-sugerencias-de-oscar .group-header,
#vinos-las-sugerencias-de-scar .group-header,
[id*="sugerencias"][id*="oscar"] .group-header,
[id*="sugerencias"][id*="scar"] .group-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.wine-category-sugerencias-oscar .group-header h2,
#vinos-sugerencias-de-oscar .group-header h2,
#vinos-sugerencias-de-scar .group-header h2,
#vinos-las-sugerencias-de-oscar .group-header h2,
#vinos-las-sugerencias-de-scar .group-header h2,
[id*="sugerencias"][id*="oscar"] .group-header h2,
[id*="sugerencias"][id*="scar"] .group-header h2 {
    color: var(--text-color);
}

.wine-category-sugerencias-oscar .wine-subgroup h3,
#vinos-sugerencias-de-oscar .wine-subgroup h3,
#vinos-sugerencias-de-scar .wine-subgroup h3,
#vinos-las-sugerencias-de-oscar .wine-subgroup h3,
#vinos-las-sugerencias-de-scar .wine-subgroup h3,
[id*="sugerencias"][id*="oscar"] .wine-subgroup h3,
[id*="sugerencias"][id*="scar"] .wine-subgroup h3 {
    color: #334155;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.wine-category-sugerencias-oscar .wine-table td,
#vinos-sugerencias-de-oscar .wine-table td,
#vinos-sugerencias-de-scar .wine-table td,
#vinos-las-sugerencias-de-oscar .wine-table td,
#vinos-las-sugerencias-de-scar .wine-table td,
[id*="sugerencias"][id*="oscar"] .wine-table td,
[id*="sugerencias"][id*="scar"] .wine-table td {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.wine-category-sugerencias-oscar .w-name,
#vinos-sugerencias-de-oscar .w-name,
#vinos-sugerencias-de-scar .w-name,
#vinos-las-sugerencias-de-oscar .w-name,
#vinos-las-sugerencias-de-scar .w-name,
[id*="sugerencias"][id*="oscar"] .w-name,
[id*="sugerencias"][id*="scar"] .w-name {
    color: var(--text-color);
}

.wine-category-sugerencias-oscar .w-grape,
#vinos-sugerencias-de-oscar .w-grape,
#vinos-sugerencias-de-scar .w-grape,
#vinos-las-sugerencias-de-oscar .w-grape,
#vinos-las-sugerencias-de-scar .w-grape,
[id*="sugerencias"][id*="oscar"] .w-grape,
[id*="sugerencias"][id*="scar"] .w-grape {
    color: var(--text-muted);
}

.wine-category-sugerencias-oscar .w-price,
#vinos-sugerencias-de-oscar .w-price,
#vinos-sugerencias-de-scar .w-price,
#vinos-las-sugerencias-de-oscar .w-price,
#vinos-las-sugerencias-de-scar .w-price,
[id*="sugerencias"][id*="oscar"] .w-price,
[id*="sugerencias"][id*="scar"] .w-price {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .wine-category-sugerencias-oscar,
    #vinos-sugerencias-de-oscar,
    #vinos-sugerencias-de-scar,
    #vinos-las-sugerencias-de-oscar,
    #vinos-las-sugerencias-de-scar,
    [id*="sugerencias"][id*="oscar"],
    [id*="sugerencias"][id*="scar"] {
        padding: 40px 20px;
    }
}

/* --- Group Menus Section --- */
.group-menus-wrapper {
    margin-top: 80px;
    padding: 60px 40px;
    background: #222;
    border-radius: 16px;
    color: #fff;
    text-align: center;
}

.group-menus-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #d4af37;
}

.group-menus-header p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
}

.group-menus-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.group-menu-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 18px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-align: left;
}

.group-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #d4af37;
    color: #d4af37;
    padding-left: 40px;
}

@media (max-width: 768px) {
    .group-menus-wrapper {
        padding: 40px 20px;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* --- Footer Social Icons --- */
.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--text-color);
    transform: translateY(-3px);
}

.social-icon:hover img {
    filter: brightness(0) !important;
}

.site-footer {
    width: 100%;
}

.new-footer {
    background: #000;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    margin-top: 0px;
}

.footer-cta-section {
    display: flex;
    height: 250px;
    background: #75C9C5;
    position: relative;
    overflow: hidden;
}

.footer-cta-image {
    width: 45%;
    height: 100%;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    z-index: 2;
}

.footer-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-cta-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 60px 0 100px;
    margin-left: -5%;
    z-index: 1;
}

.footer-cta-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
    max-width: 500px;
}

.btn-newsletter {
    display: inline-block;
    border: 1px solid #1a1a1a;
    border-radius: 50px;
    padding: 10px 25px;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-newsletter i {
    margin-left: 8px;
}

.btn-newsletter:hover {
    background: #1a1a1a;
    color: #fff;
}

.footer-main-section {
    padding: 80px 0;
    background: #000;
}

.footer-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-logo-col {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-col a {
    display: block;
    margin-bottom: 0;
}

.footer-new-logo {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.footer-seals {
    margin-top: 25px;
}

.footer-seal-img {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
}

.footer-links-grid {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-col h4 {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: transform 0.3s;
    text-decoration: none;
}

.social-circle:hover {
    transform: scale(1.1);
    color: #000 !important;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .footer-cta-section {
        flex-direction: column;
        height: auto;
    }

    .footer-cta-image {
        width: 100%;
        height: 200px;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }

    .footer-cta-content {
        width: 100%;
        padding: 40px 20px;
        margin-left: 0;
    }

    .footer-main-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-col {
        flex: 0 0 auto;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links-grid {
        flex-wrap: wrap;
        width: 100%;
    }

    .footer-col {
        min-width: 150px;
        margin-bottom: 30px;
    }
}

/* --- Cookie Banner RGPD --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #cbd5e1;
}

.btn-outline:hover {
    border-color: var(--text-color);
    background-color: #f8fafc;
}

/* --- Cookie Modal --- */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-content h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cookie-option-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.cookie-option-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:disabled+.slider {
    background-color: #94a3b8;
    cursor: not-allowed;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.cookie-modal-buttons {
    margin-top: 30px;
    text-align: right;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .header {
        padding: 20px 0;
    }

    .header-inner {
        padding: 0 20px;
    }

    .logo-wrapper {
        flex: 0 0 auto;
    }

    .header-cta {
        display: none;
    }

    /* Espacios: Evitar solapamiento con la cabecera en móvil y ajustar altura */
    .spaces-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: 100px;
        margin-bottom: 30px;
    }

    .spaces-gallery {
        min-height: 350px;
        margin-top: 20px;
    }

    /* Cartas: Apilar las tarjetas en móvil en lugar de usar recortes diagonales */
    .menus-grid {
        flex-direction: column;
        gap: 30px;
    }

    .menu-card-1,
    .menu-card-2,
    .menu-card-3 {
        clip-path: none;
        margin-left: 0;
        border-radius: 20px;
    }

    .menu-card-2 .menu-badge,
    .menu-card-3 .menu-badge {
        left: 25px;
    }

    /* Footer responsive */
    .footer-brands {
        flex-direction: column;
        gap: 50px;
    }

    .footer-brand-divider {
        width: 80px;
        height: 1px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    /* Cookies RGPD responsive */
    .cookie-banner {
        flex-direction: column;
        padding: 25px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cookie-modal-content {
        padding: 30px 20px;
    }
}

/* --- Mobile Menu Styles --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 2001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow-y: auto;
    padding-top: 100px;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0 40px;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links a {
    text-decoration: none;
    font-size: 2rem;
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    display: block;
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 15px;
    display: none;
}

.mobile-has-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu a {
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.mobile-cta-wrapper {
    padding: 20px 40px;
    margin-top: 20px;
}

.mobile-cta-wrapper .cta-button {
    display: inline-block;
    width: auto;
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 768px) {

    /* --- Corrección de Tablas de Menú y Bodega en Móvil --- */
    .wine-table,
    .wine-table tbody {
        display: block;
        width: 100%;
    }

    .wine-table tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 0;
        border-bottom: 1px dotted rgba(0, 0, 0, 0.15);
    }

    .wine-table td {
        display: block;
        border-bottom: none !important;
        /* Eliminar el borde del td, ya que ahora lo tiene el tr */
        padding: 0 !important;
    }

    .w-name {
        width: calc(100% - 90px);
        /* Deja espacio para el precio */
    }

    .w-price {
        width: 90px;
        text-align: right;
    }

    /* La descripción de Bodega (.w-grape) ocupa todo el ancho y se va abajo */
    .w-grape {
        width: 100%;
        text-align: left;
        white-space: normal !important;
        /* Anula el nowrap que rompía el nombre */
        margin-top: 6px;
        order: 3;
        /* Lo manda al fondo del flex (name y price son 1 y 2 implícitamente) */
        font-size: 0.85rem;
    }

    /* Opcional: asegurarnos de que la descripción de las Cartas también baje bien */
    .w-name span {
        display: block;
        margin-top: 4px;
        line-height: 1.4;
    }

    /* Optimizar el espacio de los menús destacados (Sugerencias/Especiales) en móvil */
    .highlight-subgroup {
        padding: 20px 15px !important;
        /* Reducimos el padding lateral drásticamente para dar espacio al contenido */
        margin-bottom: 30px !important;
    }
}

/* --- Spaces Showcase Section (About Us Page) --- */
.spaces-showcase-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 40px;
}

.space-row {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.space-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.space-row.reverse {
    flex-direction: row-reverse;
}

.space-image-container {
    flex: 1.2;
    height: 420px;
    overflow: hidden;
    position: relative;
}

.space-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.space-row:hover .space-showcase-img {
    scale: 1.05;
}

.space-info-container {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.space-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.space-info-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.space-info-container p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.space-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.space-link i {
    transition: transform 0.3s ease;
}

.space-link:hover {
    color: var(--primary-color);
}

.space-link:hover i {
    transform: translateX(5px);
}

/* Responsividad */
@media (max-width: 992px) {
    .spaces-showcase-section {
        gap: 40px;
    }
    
    .space-row, .space-row.reverse {
        flex-direction: column;
        gap: 0;
    }
    
    .space-image-container {
        width: 100%;
        height: 300px;
        flex: none;
    }
    
    .space-info-container {
        width: 100%;
        padding: 40px;
        flex: none;
    }
}


/* =============================================
   LEGAL PAGES (Aviso Legal, Privacidad, Cookies)
   ============================================= */

.legal-page {
    padding-top: 130px;
    padding-bottom: 100px;
    min-height: 80vh;
}

.legal-container {
    max-width: 900px;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.legal-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--text-color);
    margin-top: 12px;
    margin-bottom: 16px;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

.legal-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
}

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.legal-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 14px;
}

.legal-section p {
    margin-bottom: 16px;
    color: #444;
    font-weight: 300;
}

.legal-section ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-section ul li {
    margin-bottom: 10px;
    color: #444;
    font-weight: 300;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-section a:hover {
    color: #17c4b0;
    border-bottom-color: #17c4b0;
}

/* Info card for legal data */
.legal-info-card {
    background: linear-gradient(135deg, rgba(30, 229, 206, 0.04), rgba(30, 229, 206, 0.02));
    border: 1px solid rgba(30, 229, 206, 0.15);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 20px 0;
}

.legal-data-list {
    list-style: none;
    padding-left: 0 !important;
}

.legal-data-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-weight: 300 !important;
}

.legal-data-list li:last-child {
    border-bottom: none;
}

.legal-data-list li strong {
    font-weight: 500;
    color: var(--text-color);
    min-width: 180px;
    display: inline-block;
}

/* Legal tables */
.legal-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.legal-table thead {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.legal-table th {
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #444;
    font-weight: 300;
    vertical-align: top;
}

.legal-table tbody tr:last-child td {
    border-bottom: none;
}

.legal-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

.legal-table tbody tr:hover {
    background: rgba(30, 229, 206, 0.03);
}

.legal-table code {
    background: rgba(30, 229, 206, 0.08);
    color: var(--text-color);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Menlo', 'Consolas', monospace;
    white-space: nowrap;
}

/* Navigation links between legal pages */
.legal-nav-links {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.legal-nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.legal-nav-links a:hover {
    background: var(--text-color);
    color: var(--white);
    border-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.legal-nav-links a i {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.legal-nav-links a:hover i {
    color: var(--primary-color);
}

/* Obfuscated email display */
.legal-email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-email a:hover {
    color: #17c4b0;
}

/* Responsive legal pages */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2.4rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-info-card {
        padding: 20px;
    }

    .legal-data-list li strong {
        display: block;
        min-width: auto;
        margin-bottom: 2px;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .legal-nav-links {
        flex-direction: column;
    }

    .legal-nav-links a {
        min-width: unset;
    }

    .legal-container {
        padding: 0 24px;
    }
}
/* Galería de inicio: mosaico a sangre junto al fondo de las cartas. */
.home-photo-gallery { width: 100%; margin: 0; padding: 0; background: #eef2f5; }
.home-photo-gallery[hidden] { display: none; }
.home-photo-gallery:not([hidden]) + .menus-section { margin-top: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(var(--photo-columns, 5), minmax(0, 1fr)); gap: 2px; }
.photo-tile { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #eef2f5; cursor: zoom-in; }
.photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .25s ease; }
.photo-tile:hover img { transform: scale(1.035); }
.photo-tile:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
/* Visor: controles independientes y superficie para deslizar. */
.photo-modal { position:fixed; inset:0; margin:0; width:100vw; height:100dvh; max-width:none; max-height:none; padding:0; border:0; background:transparent; overflow:hidden; }
.photo-modal::backdrop { background:rgb(0 0 0 / 90%); }
.photo-modal-stage { width:100%; height:100%; display:flex; align-items:center; justify-content:center; padding:72px 76px; touch-action:pan-y pinch-zoom; user-select:none; cursor:grab; }
.photo-modal-stage.is-swiping { cursor:grabbing; }
.photo-modal img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; pointer-events:none; user-select:none; }
.photo-modal button { position:absolute; z-index:2; display:grid; place-items:center; width:48px; height:48px; padding:10px; border:0; border-radius:50%; background:transparent; color:#fff; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.photo-modal button[hidden] { display:none; }
.photo-modal button svg { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.photo-modal button:focus:not(:focus-visible) { outline:none; }
.photo-modal button:focus-visible { outline:2px solid var(--primary-color); outline-offset:3px; }
.photo-modal button:hover { color:var(--primary-color); }
.photo-modal .photo-modal-close { top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); }
.photo-modal .photo-modal-arrow { top:50%; transform:translateY(-50%); background:rgb(0 0 0 / 30%); }
.photo-modal-prev { left:max(12px,env(safe-area-inset-left)); }
.photo-modal-next { right:max(12px,env(safe-area-inset-right)); }
.photo-modal-counter { position:absolute; bottom:max(18px,env(safe-area-inset-bottom)); left:0; width:100%; margin:0; text-align:center; color:#fff; font:14px/1.5 system-ui,sans-serif; pointer-events:none; }
@media(max-width:600px) {
    .photo-modal-stage { padding:68px 12px; }
    .photo-modal-prev { left:4px; }
    .photo-modal-next { right:4px; }
}
@media (max-width: 600px) {
    .photo-grid { grid-template-columns: repeat(var(--photo-mobile-columns, 3), minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .photo-tile img { transition: none; }
}
