:root {
    /* Paleta de colores - Rojo Vino y Blanco */
    --primary-color: #800020; /* Rojo Vino (Burgundy) */
    --primary-light: #a31c3a; /* Rojo vino más claro para hovers */
    --secondary-color: #ffffff; /* Blanco puro */
    --accent-color: #e5b3b3; /* Tono suave rosado/vino para fondos sutiles */
    --bg-color: #fbf9f9; /* Blanco apenas tintado para que no canse la vista */
    --text-color: #2b1d1f; /* Texto oscuro con ligero tinte cálido */
    --text-light: #ffffff;
    
    /* Gradientes y Efectos */
    --hero-gradient: linear-gradient(135deg, #ffffff 0%, #f4e9e9 100%);
    --glass-bg: rgba(128, 0, 32, 0.85); /* Fondo vino con transparencia */
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Tipografía */
    --font-main: 'Outfit', sans-serif;
}

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

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

/* Marca de agua global */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-width: 550px;
    height: 80vh;
    background-image: url('assets/images/logo.jpeg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 9999;
    pointer-events: none;
}

/* SPA Navigation System */
.page-section {
    display: none;
    animation: fadeInPage 0.4s ease-in-out;
    padding-bottom: 60px;
}

/* Controlled by data attribute on HTML tag */
html[data-active-section="hero"] #hero,
html[data-active-section="productos"] #productos,
html[data-active-section="galeria"] #galeria,
html[data-active-section="contacto"] #contacto {
    display: block;
}

/* Fallback for JS transitions */
.page-section.active {
    display: block;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    
    /* Efecto de Ola (Wave) */
    background-image: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 40%,
        #e31b4b 50%,
        #ffffff 60%,
        #ffffff 100%
    );
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: waveEffect 5s linear infinite;
}

@keyframes waveEffect {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.logo-img {
    height: 70px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.3s;
    animation: floatingLogo 3s ease-in-out infinite; /* Efecto flotante */
}

@keyframes floatingLogo {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); filter: drop-shadow(0 5px 10px rgba(128, 0, 32, 0.4)); }
    100% { transform: translateY(0); }
}

.logo-img:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 25px rgba(128, 0, 32, 0.5); /* Resplandor rojo vino */
    animation: none;
}

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

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffb3b3;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: white;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.menu-btn span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Transformación a X cuando está activo */
.menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    padding: 0 5%;
    padding-top: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    max-width: 50%;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.highlight {
    color: var(--text-color);
    position: relative;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(128, 0, 32, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
    box-shadow: 0 15px 30px rgba(128, 0, 32, 0.4);
}

.hero-image-container {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    cursor: pointer;
    transition: transform 0.3s;
}

.hero-img:hover {
    transform: scale(1.02);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Productos Section */
.productos {
    padding: 0 5% 6rem;
    background: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    margin-top: 0;
    padding-top: 120px;
    color: var(--primary-color);
    font-weight: 900;
}

.subsection-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    text-align: left;
    margin-bottom: 2.5rem;
    margin-top: 4rem;
    padding: 0 1rem;
}

.featured-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.featured-menu-text {
    display: none; /* Ocultar en móviles */
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(128, 0, 32, 0.08);
    border-left: 8px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.featured-menu-text::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.04;
}

.featured-menu-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.featured-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.menu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.menu-tag {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(128, 0, 32, 0.1);
    transition: all 0.3s ease;
}

.menu-tag:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
}

@media (min-width: 900px) {
    .featured-menu {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 3rem;
        max-width: 100%;
        margin: 0 auto 4rem auto;
    }
    .featured-menu-text {
        display: block; /* Mostrar en PC */
        text-align: left;
        flex: 0 1 550px;
    }
    .menu-tags {
        justify-content: flex-start;
    }
    .featured-menu-image-container {
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

.menu-principal-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(128, 0, 32, 0.15);
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: zoom-in;
}

.menu-principal-img:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 70px rgba(128, 0, 32, 0.35);
    cursor: zoom-in;
}

.featured-menu-image-container {
    overflow: hidden;
    border-radius: 20px;
}

/* Lightbox simple para la imagen del men\u00fa */
#menu-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2.5rem 1rem;
    animation: fadeInPage 0.25s ease;
    cursor: zoom-out;
}

#menu-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
}

#menu-lightbox-inner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    display: block;
}

#menu-lightbox-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s;
    z-index: 10000;
}

#menu-lightbox-close:hover {
    transform: scale(1.15);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: start;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(128, 0, 32, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(128, 0, 32, 0.05);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(128, 0, 32, 0.15);
}

.card-image-wrapper {
    height: 380px;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px 24px 0 0;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.product-card:hover .card-image-wrapper img {
    transform: scale(1.02);
}

.bg-vino {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
}

.text-placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.card-content {
    padding: 2.5rem 2rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-content p:last-child {
    color: #666;
    line-height: 1.7;
}

/* Galería Section */
.galeria {
    padding: 0 5% 6rem;
    background: var(--secondary-color);
}
.galeria-desc {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    align-items: center; /* Alinea verticalmente para fotos de distintos altos */
}
.galeria-grid img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
}
.galeria-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(128, 0, 32, 0.2);
    z-index: 2;
    position: relative;
}

/* Promociones Section */
.promociones {
    padding: 6rem 5%;
    background-image: url('assets/images/mangoneada.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.promociones::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
}

.glass-effect {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.glass-effect h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.glass-effect p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.promo-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    transition: transform 0.3s, box-shadow 0.3s;
}

.promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Contacto e Instalaciones */
.contacto-section {
    background: #fdfdfd;
    padding-left: 5%;
    padding-right: 5%;
}

/* Mapa de ubicaci\u00f3n */
.mapa-container {
    margin-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
}

.mapa-titulo {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.mapa-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(128, 0, 32, 0.12);
    border: 3px solid rgba(128, 0, 32, 0.1);
    margin-bottom: 1.5rem;
}

.mapa-wrapper iframe {
    display: block;
    width: 100%;
}

.mapa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-color);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(128, 0, 32, 0.3);
}

.mapa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(128, 0, 32, 0.4);
    background: #6b001a;
}

.contacto-subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    font-style: italic;
    background: #fff0f3;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    animation: pulseWhatsApp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulseWhatsApp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Shape Dividers */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(132% + 1.3px);
    height: 86px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #fbf9f9; /* Same as body bg to blend into the next section */
}

/* Gallery Filters */
.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    font-family: var(--font-main);
}

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

.filterable-gallery img {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.filterable-gallery img.hide {
    display: none;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-texto h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contacto-texto p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.info-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-item span {
    color: #444;
    font-size: 1.1rem;
}

.social-links-big {
    margin-top: 3rem;
}

.social-btn {
    display: inline-block;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(220, 39, 67, 0.4);
}

.contacto-imagen img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(128, 0, 32, 0.15);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 5%;
    text-align: center;
}

.developer-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.dev-link {
    color: #ffb3b3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.dev-link:hover {
    color: white;
    text-decoration: underline;
}

/* Modal (Lightbox) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background-color: var(--secondary-color);
    margin: auto;
    padding: 2rem;
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.modal.active .modal-content {
    transform: scale(1);
}
.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}
.close-btn:hover {
    color: var(--primary-color);
}
.modal-body {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.modal-img-container {
    flex: 1;
    max-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    border-radius: 15px;
    padding: 1rem;
}
.modal-img-container img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
.modal-info {
    flex: 1;
}
.modal-info h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.modal-info .price {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.modal-info p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.modal-btn {
    width: 100%;
    text-align: center;
}
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        gap: 1rem;
    }
    .modal-content {
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-img-container img {
        max-height: 25vh;
    }
    .modal-info h3 {
        font-size: 1.7rem;
        margin-bottom: 0.5rem;
    }
    .modal-info .price {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .modal-info p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Responsividad General */
@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    .contacto-imagen {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-btn {
        display: flex;
    }
    .navbar {
        padding: 0.5rem 5%;
    }
    .logo-img {
        height: 50px;
    }
    .logo-text {
        font-size: 1.4rem;
    }
    .hero-slide {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: flex-end;
        padding-top: 90px;
        padding-bottom: 50px;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    .hero-image-container {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }
    .hero-img {
        max-height: 35vh;
    }

    /* 2-Column Product Grid for Mobile */
    .cards-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .product-card {
        border-radius: 15px;
    }
    .card-image-wrapper {
        height: 180px;
    }
    .card-image-wrapper img {
        border-radius: 15px 15px 0 0;
    }
    .card-content {
        padding: 1rem 0.5rem;
    }
    .card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    .price {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    .card-content p:last-child {
        font-size: 0.8rem;
        line-height: 1.3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4; /* Limit description to 4 lines to avoid super tall cards */
        -webkit-box-orient: vertical;
    }
    
    .subsection-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        margin-top: 2.5rem;
        text-align: left;
        padding: 0;
    }
    .menu-principal-img {
        max-width: 85%;
        border-radius: 12px;
    }
    .featured-menu {
        margin-bottom: 2rem;
    }
    
    /* 2-Column Gallery Grid for Mobile */
    .galeria-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .galeria-grid img {
        height: 140px;
        border-radius: 12px;
    }

    /* Contacto y Footer Mobile Fixes */
    .contacto-texto h2 {
        font-size: 2rem;
    }
    .contacto-title-mobile {
        font-size: clamp(1.5rem, 7vw, 2.5rem) !important;
        white-space: nowrap;
    }
    .contacto-section {
        padding-bottom: 90px;
    }
    .footer {
        padding-bottom: 90px;
    }
    .social-btn {
        font-size: 1rem;
        padding: 1rem;
        text-align: center;
        width: 100%;
    }
    .contacto-imagen img {
        max-width: 85%;
        margin: 0 auto;
        display: block;
        border-radius: 20px;
    }
}

/* --- ANIMACIONES DE SCROLL (REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Efectos escalonados suaves para las tarjetas de productos y galería */
.cards-container .product-card:nth-child(1) { transition-delay: 0.1s; }
.cards-container .product-card:nth-child(2) { transition-delay: 0.25s; }
.galeria-grid img.reveal { transition-delay: 0.1s; }
