:root {
    --color-primary: #C5A059; /* Golden tone from logo */
    --color-primary-dark: #A68343;
    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-text: #2D2D2D;
    --color-text-light: #666666;
    --color-wood: #543E2E; /* Wood tone from door */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-wood);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.about-text:hover h2::after {
    width: 100%;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-wood);
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transform: scale(2.5);
    transform-origin: left center;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Visible on hero */
}

.navbar.scrolled .logo img {
    height: 40px;
    transform: scale(2.2);
    transform-origin: left center;
    filter: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.navbar.scrolled .nav-links a {
    color: var(--color-text);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

.navbar.scrolled .bar {
    background-color: var(--color-text);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero p {
    color: #f0f0f0;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.6);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap; /* in case screen is too small */
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--color-text);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* About Section */
.about {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Specific styling to reduce height for 'Un Rincón Especial' */
.rincon-especial-container {
    margin-top: 0;
    margin-bottom: 0;
}

.rincon-especial-container .about-image {
    max-height: 700px;
}

.rincon-especial-container .about-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.about-container.reverse {
    flex-direction: row-reverse;
}

.mt-lg {
    margin-top: 8rem;
}

.about-text {
    flex: 1;
    padding: 2rem;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image .carousel {
    max-width: none;
    height: 600px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .about-image .carousel {
        height: 400px;
    }
}

/* Platos Estrella highlighted section */
.platos {
    background-color: #1a1816; /* Dark warm brownish-gray */
    color: #ffffff;
    padding: 6rem 5%;
}

.platos h2 {
    color: var(--color-primary);
}

.platos p {
    color: #cccccc;
}

/* When about-image is also a collage, override overflow restriction */
.about-image.collage-grid {
    overflow: visible;
    border-radius: 0;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
}

/* No pseudo border on collage or carousel */
.about-image.collage-grid::before,
.platos .about-image::before {
    display: none;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.about-container:hover .about-image img {
    transform: scale(1.03);
}

/* Info Section */
.info {
    position: relative;
    padding: 8rem 5%;
    background-color: var(--color-wood);
    color: #fff;
    overflow: hidden;
}

/* Pseudo element for background with mix blend mode for a rich look */
.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/interior_tables.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    mix-blend-mode: multiply;
}

.info-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.info-section h3 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.info-section a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.info-section a:hover {
    color: #fff;
}

.schedule {
    list-style: none;
}

.schedule li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
}

.schedule li:last-child {
    border-bottom: none;
}

.schedule small {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-align: right;
}

.social-links {
    margin-top: 2rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: #fff !important;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Section Eyebrow (shared) */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Galeria Platos Section */
.galeria-platos {
    padding: 8rem 0;
    background: var(--color-bg);
    overflow: hidden;
}

.galeria-wrapper {
    max-width: 100%;
    margin: 0;
}

.galeria-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 5%;
}

.galeria-header h2 {
    display: block;
    margin-bottom: 1rem;
}

.galeria-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.galeria-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

/* Carousel track - Auto Scroll */
.galeria-carousel {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 10px 0;
}

.galeria-inner {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 20px;
}


.galeria-item {
    width: 420px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.galeria-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 50px rgba(0,0,0,0.25);
    z-index: 10;
}

.galeria-item img,
.galeria-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.8s ease;
}

.galeria-item:hover img,
.galeria-item:hover video {
    transform: scale(1.08);
}

@media (max-width: 992px) {
    .galeria-item { width: 280px; }
}

@media (max-width: 600px) {
    .galeria-item { width: 260px; }
}

/* Video Section */
.video-section {
    padding: 8rem 5%;
    background: #f5ede0;
    text-align: center;
}

.video-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.video-wrapper h2 {
    display: block;
    margin-bottom: 3rem;
}

.video-wrapper h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.video-wrapper .section-eyebrow {
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}

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

/* Lazy-load video thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 22px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.04);
}

/* Dark overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease;
    border-radius: 22px;
}

.video-thumbnail:hover .video-overlay {
    background: rgba(0, 0, 0, 0.25);
}

/* Play button */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.3s ease,
                box-shadow 0.3s ease;
    z-index: 2;
}

.video-thumbnail:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--color-primary);
    box-shadow: 0 14px 48px rgba(197, 160, 89, 0.55);
}

.video-play-btn svg {
    margin-left: 5px; /* optical centering for play icon */
}




/* Map */
.map-container {
    margin-top: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Footer */


footer {
    background-color: #1a1510;
    color: rgba(255,255,255,0.6);
    padding: 3rem 5%;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    flex-wrap: wrap;
}

.footer-logo {
    height: 130px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    max-width: 220px;
    object-fit: contain;
}

.footer-sponsor-logo {
    height: 95px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.footer-sponsor-logo:hover {
    opacity: 1;
}

.footer-sponsor-logo.logo-destacado {
    height: 125px;       
    max-width: none;     
    transform: scale(1.1); 
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive animations */
@media(prefers-reduced-motion: reduce) {
    .fade-in-up, .slide-in-left, .slide-in-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-container, .about-container.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .info-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--color-text);
        font-size: 1.5rem;
        text-shadow: none;
    }
    
    .navbar .bar {
        background-color: #fff;
    }
    
    .navbar.scrolled .bar {
        background-color: var(--color-text);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-text);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-text);
    }

    h1 {
        font-size: 2.5rem;
    }
    
    .schedule li {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .schedule li span:last-child {
        font-weight: 500;
        color: #fff;
    }
    .schedule small {
        text-align: left;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .reservation-form {
        padding: 2rem 1.5rem;
    }
}
/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-wood);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo {
    height: 80px;
    filter: brightness(0) invert(1);
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--color-primary);
    animation: loading 1.5s infinite ease-in-out;
}

/* Carousel Styles - Professional Edition */
.carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 550px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

.carousel-inner {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* Ken Burns effect on active carousel image */
.carousel-item img,
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s ease-out, filter 1.2s ease;
}

.carousel-item.active img {
    animation: kenburns 10s ease-in-out forwards;
}

@keyframes kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1%, -1%); }
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-control:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator.active {
    width: 50px;
    background: var(--color-primary);
}

@media (max-width: 768px) {
    .carousel {
        height: 420px;
        max-width: 100%;
        border-radius: 18px;
    }
    .carousel-control {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .carousel-control.prev { left: 12px; }
    .carousel-control.next { right: 12px; }
    .caption-title {
        font-size: 1.5rem;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}


.animate-spin {
    animation: rotate 1s linear infinite;
}


@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* Collage Grid - Professional Editorial Style */
.collage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
    padding: 0;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    width: 100%;
}

.collage-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 1;
    transition: box-shadow 0.3s ease;
}

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

.collage-item.item-1 {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 260px;
}

.collage-item.item-2 {
    grid-column: 2;
    grid-row: 1;
    min-height: 124px;
}

.collage-item.item-3 {
    grid-column: 2;
    grid-row: 2;
    min-height: 124px;
}

.collage-item.item-4 {
    grid-column: 1;
    grid-row: 3;
    min-height: 170px;
}

.collage-item.item-5 {
    grid-column: 2;
    grid-row: 3;
    min-height: 170px;
}

.collage-item:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.32);
}

@media (max-width: 768px) {
    .collage-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .collage-item.item-1 { min-height: 160px; }
    .collage-item.item-2 { min-height: 76px; }
    .collage-item.item-3 { min-height: 76px; }
    .collage-item.item-4 { min-height: 110px; }
}

@media (max-width: 480px) {
    .collage-grid {
        grid-template-columns: 1fr;
    }
    .collage-item.item-1,
    .collage-item.item-2,
    .collage-item.item-3,
    .collage-item.item-4 {
        grid-column: 1;
        grid-row: auto;
        min-height: 180px;
    }
}

/* ══════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — Comprehensive
   ══════════════════════════════════════════════════════════ */

/* Fix background-attachment:fixed on iOS (causes zoom/flicker) */
@supports (-webkit-touch-callout: none) {
    .hero-bg,
    .info::before {
        background-attachment: scroll !important;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .platos { padding: 5rem 5%; }
    .platos .about-container { flex-direction: column; gap: 2rem; }

    .galeria-platos { padding: 5rem 5%; }
    .video-section { padding: 5rem 5%; }
    .info { padding: 5rem 5%; }

    .footer-logo { height: 80px; }
    .footer-sponsor-logo.tall-logo { height: 80px; }
    .footer-sponsor-logo.clm-logo { height: 100px; }
}

/* Phone landscape / small tablet */
@media (max-width: 768px) {
    /* Hero */
    .hero { min-height: 100svh; }
    .hero-bg { background-attachment: scroll; }
    .hero-content { padding: 0 1.5rem; }
    .hero p { font-size: 1rem; margin-bottom: 2rem; }
    .hero-buttons { gap: 1rem; }
    .btn { padding: 0.85rem 2rem; font-size: 0.95rem; }

    /* Platos estrella */
    .platos { padding: 4rem 5%; }
    .platos .about-text { padding: 0; }

    /* Galería */
    .galeria-platos { padding: 4rem 4%; }
    .galeria-header p { font-size: 1rem; }

    /* Video */
    .video-section { padding: 4rem 4%; }
    .video-container { border-radius: 16px; }

    /* Info / Contact */
    .info { padding: 4rem 4%; }
    .info-card { padding: 2rem 1.5rem; border-radius: 18px; gap: 2rem; }
    .info-section h3 { font-size: 1.5rem; }

    /* Footer */
    footer { padding: 4rem 4%; }
    .footer-logos {
        flex-direction: column;
        gap: 4.5rem;
        align-items: center;
    }
    .footer-logo { height: 130px; max-width: 320px; }
    .footer-sponsor-logo { height: 95px; max-width: 280px; }
    .footer-sponsor-logo.logo-destacado { height: 160px; } /* Castilla La Mancha */
    .footer-sponsor-logo[src*="fecatur.png"] { height: 145px; } /* Fercatur */
}

/* Phone portrait */
@media (max-width: 480px) {
    h2 { font-size: 1.75rem; }

    /* About */
    .about { padding: 4rem 4%; }
    .about-text { padding: 0.5rem; }
    .about-text p { font-size: 1rem; }
    .mt-lg { margin-top: 4rem; }

    /* Platos */
    .platos { padding: 3rem 4%; }

    /* Galería */
    .galeria-platos { padding: 3rem 3%; }
    .galeria-header { margin-bottom: 2rem; }
    .galeria-carousel { margin: 0 -3%; }
    .galeria-inner { padding-left: 3%; gap: 12px; }
    .galeria-item { flex: 0 0 80%; border-radius: 14px; }

    /* Video */
    .video-section { padding: 3rem 3%; }
    .video-container { border-radius: 12px; }
    .video-wrapper h2 { margin-bottom: 2rem; }

    /* Info */
    .info { padding: 3rem 3%; }
    .info-card { padding: 1.5rem 1.2rem; border-radius: 14px; }
    .map-container { border-radius: 12px; }

    /* El footer hereda de la versión 768px (tamaño escritorio y columnas) */
}

/* Small phones */
@media (max-width: 360px) {
    h1 { font-size: 2rem; }
    .phone-cta-number { font-size: 1.8rem; letter-spacing: 2px; }
    .btn-call { padding: 0.8rem 1.5rem; }
    .hero-buttons { flex-direction: column; gap: 0.8rem; }
}

/* Touch devices — disable hover transforms that feel janky */
@media (hover: none) {
    .galeria-item:hover { transform: none; }
    .galeria-item:hover img,
    .galeria-item:hover video { transform: none; }
    .about-container:hover .about-image img { transform: none; }
    .collage-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
}

/* Safe area insets for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
    .nav-links { padding-bottom: env(safe-area-inset-bottom); }
}



/* ══════════════════════════════════════════════════════════
   COOKIE BANNER (RGPD)
   ══════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(26, 21, 16, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    padding: 1.3rem 5%;
    animation: cookie-slide-up 0.5s ease-out;
}

@keyframes cookie-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: var(--color-primary);
    color: #fff;
}

.cookie-btn.accept:hover {
    background: var(--color-primary-dark);
}

.cookie-btn.reject {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
}

.cookie-btn.reject:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cookie-buttons { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   REVIEWS / TESTIMONIALS SECTION
   ══════════════════════════════════════════════════════════ */
.reviews-section {
    padding: 7rem 5%;
    background: var(--color-bg);
    overflow: hidden;
}

.reviews-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.reviews-header h2 {
    display: block;
    margin-bottom: 1rem;
}

.reviews-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.reviews-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.review-stars {
    display: flex;
    gap: 3px;
    color: #F59E0B;
    font-size: 1.1rem;
}

.review-text {
    font-size: 0.98rem;
    color: var(--color-text-light);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-author-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.review-source {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

@media (max-width: 992px) {
    .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .reviews-section { padding: 4rem 4%; }
    .reviews-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .review-card { padding: 1.8rem; }
}


/* Custom Corzo Footprint Cursor */
@media (pointer: fine) {
    html, body, nav, .navbar, a, button, input, select, .btn, .hamburger, .nav-links, .logo {
        cursor: url('assets/images/cursor_corzo.svg') 12 10,
               url('assets/images/cursor_corzo.png') 12 10, auto !important;
    }

    a:hover, button:hover, select:hover, .btn:hover, .hamburger:hover, .logo:hover, .nav-links a:hover {
        cursor: url('assets/images/cursor_corzo.svg') 12 10,
               url('assets/images/cursor_corzo.png') 12 10, pointer !important;
    }
}
