/* ========================================
   Variables CSS Globales
   Paleta de colores, fuentes y sombras
   ======================================== */
:root {
    /* Paleta de colores cálidos */
    --color-primary: #8B4513;        /* Marrón saddle */
    --color-secondary: #D2691E;      /* Chocolate */
    --color-accent: #ffd900;         /* Dorado */
    --color-beige: #F5E6D3;          /* Beige claro */
    --color-dark-beige: #E5D4B1;     /* Beige oscuro */
    --color-text: #3A2317;           /* Marrón oscuro para texto */
    --color-light: #FFF8F0;          /* Blanco crema */
    
    /* Fuentes */
    --font-primary: 'Georgia', serif;
    --font-secondary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Sombras */
    --shadow-light: 0 2px 10px rgba(139, 69, 19, 0.2);
    --shadow-medium: 0 4px 15px rgba(139, 69, 19, 0.3);
    --shadow-heavy: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* ========================================
   Estilos Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

/* ========================================
   Navegación Principal
   ======================================== */
nav {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, var(--color-beige), var(--color-dark-beige));
    box-shadow: var(--shadow-light);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--color-secondary);
}

.logo-negro {
    color: #5a3826;
}

.logo-oro {
    color: #e0a21e;
}

.logo:hover {
    transform: scale(1.05);
}

/* O si prefieres que cambien de opacidad */
.logo:hover .logo-negro,
.logo:hover .logo-oro {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;  /* Centra los enlaces */
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 625;
    font-size: 1.15rem;
    padding: 0.5rem 1rem;
    display: inline-block;  /* AÑADIR ESTA LÍNEA - permite que transform funcione */
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    /*transform: scale(1.05);  Reducido de 1.45 a 1.1 para que sea más sutil */
    color: #e0a21e;
}

.nav-menu a.active {
    color: #e0a21e;
    font-weight: 625;
}

/* ========================================
   Redes Sociales
   ======================================== */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    height: 23px;  /* Fijamos solo la altura */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin: 0 0.5rem;  /* Espaciado entre iconos */
}

.social-links a img {
    height: 100%;  /* La imagen ocupa el 100% de la altura */
    width: auto;   /* El ancho se ajusta proporcionalmente */
    object-fit: contain;
}

.social-links a:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* ========================================
   Menú Móvil
   ======================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* ========================================
   Secciones Principales
   ======================================== */
section {
    padding: 2rem;
    min-height: 100vh;
    max-width: 1200px;
    margin: 1rem auto;
}

/* Sección Inicio - sin restricción de ancho */
#inicio {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Ajuste específico para la sección tiendas */
#tiendas {
    padding-top: 100px; /* Espacio suficiente para que el navbar no se sobreponga al título */
    max-width: 100%; /* Ancho completo para el mapa */
}

#tiendas .tiendas-content {
    max-width: 1200px;
    margin: 0 auto;
}
/* ========================================
   Tipografía
   ======================================== */
h1, h2 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
}

/* Contenedor para centrar los títulos H1 en secciones */
section h1 {
    font-size: 2.3rem;
    position: relative;
    display: table;
    margin: 0 auto 2rem auto;
    text-align: center;
}

/* Contenedor para centrar los títulos H2 */
section h2 {
    font-size: 2rem;
    position: relative;
    display: table;  /* Permite que el ancho se ajuste al contenido */
    margin: 0 auto 2rem auto;  /* Centra horizontalmente */
    text-align: center;
}

.underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;  /* Ahora ocupará el 100% del h2, que se ajusta al texto */
    height: 3px;
    background: linear-gradient(to right, var(--color-accent), var(--color-secondary));
    border-radius: 2px;
}

/* ========================================
   Sección: Quiénes Somos
   ======================================== */
.about-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

/* ========================================
   Galería de imágenes - Sobre Nosotros
   ======================================== */

/* Conjunto 1: Galería primera (imágenes 1, 2, 3) */
.gallery-first {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    flex-wrap: nowrap;
}

.gallery-first img {
    height: 200px;
    width: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gallery-first img:hover {
    transform: scale(1.05);
}

.gallery-large {
    aspect-ratio: 3 / 2;  /* Más ancha */
}

/* Conjunto 2: Galería segunda (imágenes 4, 5, 6) */
.gallery {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    flex-wrap: nowrap;
}

.gallery img {
    height: 300px;
    width: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gallery img:hover {
    transform: scale(1.05);
}

.gallery-medium {
    aspect-ratio: 1 / 1;   /* Cuadrada */
}

.gallery-small {
    aspect-ratio: 2 / 3;   /* Vertical */
}

/* ========================================
   MEDIA QUERIES RESPONSIVE - Galería
   ======================================== */

/* 900px < ancho <= 1000px: Ajuste gradual de tamaño */
@media (max-width: 1000px) and (min-width: 901px) {
    /* Conjunto 1: Galería primera (imágenes 1, 2, 3) */
    .gallery-first {
        gap: 1rem;
    }

    .gallery-first img {
        height: auto;
        width: 32%;
        flex-shrink: 1;
    }

    /* Conjunto 2: Galería segunda (imágenes 4, 5, 6) */
    .gallery {
        gap: 1rem;
    }

    .gallery img {
        height: auto;
        width: 28.8%;
        flex-shrink: 1;
    }

    /* Imagen 5 (central) - proporción 1/1 */
    .gallery img.gallery-medium {
        aspect-ratio: 1 / 1 !important;
    }

    /* Imágenes 4 y 6 (laterales) - proporción 2/3 */
    .gallery img.gallery-small {
        aspect-ratio: 2 / 3 !important;
    }
}

/* 770px < ancho <= 900px: Ajuste adicional */
@media (max-width: 900px) and (min-width: 771px) {
    /* Conjunto 1: Galería primera - Ocultar imagen 2 */
    .gallery-first {
        gap: 1rem;
    }

    .gallery-first img {
        height: auto;
        width: 48%;
        flex-shrink: 1;
    }

    .gallery-first img:nth-child(2) {
        display: none;
    }

    /* Conjunto 2: Galería segunda - Reducir 15% adicional */
    .gallery {
        gap: 1rem;
    }

    .gallery img {
        height: auto;
        width: 24.48%;
        flex-shrink: 1;
    }

    /* Imagen 5 (central) - proporción 1/1 */
    .gallery img.gallery-medium {
        aspect-ratio: 1 / 1 !important;
    }

    /* Imágenes 4 y 6 (laterales) - proporción 2/3 */
    .gallery img.gallery-small {
        aspect-ratio: 2 / 3 !important;
    }
}

/* 600px < ancho <= 770px: Ocultar imagen 6 del conjunto 2 */
@media (max-width: 770px) and (min-width: 601px) {
    /* Conjunto 1: Galería primera - Solo imágenes 1 y 3 */
    .gallery-first {
        gap: 1rem;
    }

    .gallery-first img {
        height: auto;
        width: 48%;
        flex-shrink: 1;
    }

    .gallery-first img:nth-child(2) {
        display: none;
    }

    /* Conjunto 2: Galería segunda - Ocultar imagen 6 y reducir 20% */
    .gallery {
        gap: 1rem;
    }

    .gallery img {
        height: auto;
        width: 38.4%;
        flex-shrink: 1;
    }

    .gallery img:nth-child(3) {
        display: none;
    }
}

/* ancho <= 600px: Conjunto 1 en vertical */
@media (max-width: 600px) {
    /* Conjunto 1: Galería primera - Imágenes 1 y 3 en vertical reducidas 15% */
    .gallery-first {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .gallery-first img {
        height: auto;
        width: 59.5%;
        flex-shrink: 1;
    }

    .gallery-first img:nth-child(2) {
        display: none;
    }
}

/* 470px < ancho <= 600px: Conjunto 2 con imágenes 4 y 5 */
@media (max-width: 600px) and (min-width: 471px) {
    /* Conjunto 2: Galería segunda - Ocultar imagen 6 y reducir 20% */
    .gallery {
        gap: 1rem;
    }

    .gallery img {
        height: auto;
        width: 38.4%;
        flex-shrink: 1;
    }

    .gallery img:nth-child(3) {
        display: none;
    }
}

/* ancho <= 470px: Conjunto 1 solo imagen 1, Conjunto 2 solo imagen 5 */
@media (max-width: 470px) {
    /* Conjunto 1: Galería primera - Solo mostrar imagen 1 */
    .gallery-first {
        justify-content: center;
    }

    .gallery-first img {
        width: 60%;
    }

    .gallery-first img:nth-child(3) {
        display: none;
    }

    /* Conjunto 2: Galería segunda - Solo mostrar imagen 5 */
    .gallery {
        justify-content: center;
        gap: 1rem;
    }

    .gallery img {
        height: auto;
        width: 60%;
        flex-shrink: 1;
    }

    .gallery img:nth-child(1),
    .gallery img:nth-child(3) {
        display: none;
    }
}

/* ========================================
   Sección: Contacto en Inicio
   ======================================== */
.contacto-info-inicio {
    margin: 4rem 0 0 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--color-beige), var(--color-light));
}

.contacto-info-inicio h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contacto-info-grid-inicio {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    gap: 6rem;
}

.contacto-info-grid-inicio .contacto-info-item {
    flex: 1;
    text-align: center;
    padding: 2rem 0;
}

/* ========================================
   Sección: Contacto - Información
   ======================================== */
.contacto-info-grid {
    display: flex;
    justify-content: space-evenly;
    max-width: 100%;
    margin: 3rem auto;
    padding: 0;
    gap: 12rem;
}

.contacto-info-item {
    flex: 1;
    text-align: center;
    padding: 2rem 0;
}

.contacto-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: sepia(100%) saturate(300%) brightness(70%) hue-rotate(5deg);
}

.contacto-info-item h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contacto-info-item h2 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contacto-info-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Sección: Contacto - Formulario
   ======================================== */
.contact-form {
    max-width: 800px;  /* Más ancho en pantallas grandes */
    width: 90%;        /* Ocupa el 90% del ancho disponible */
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-light), var(--color-beige));
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    width: 100%;
}

.form-group.centered {
    width: 100%;
    margin: 0 0 1.5rem 0;
}

input, 
select, 
textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--color-dark-beige);
    border-radius: 12px;
    font-size: 1rem;
    background-color: white;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    box-sizing: border-box;
}

input::placeholder,
select option:first-child,
textarea::placeholder {
    color: #999;
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
    background-color: #FFFEF9;
}

textarea {
    resize: vertical;
    min-height: 180px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: white;
    padding: 14px 50px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    box-shadow: var(--shadow-medium);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* ========================================
   Animaciones
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Media Queries - Diseño Responsive
   ======================================== */

/* Tablet horizontal y pantallas medianas - Menú Hamburguesa */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-beige);
        flex-direction: column;
        padding: 1rem 1rem 2rem 1rem;  /* Más padding-bottom para espacio inferior */
        display: none;
        box-shadow: var(--shadow-light);
        max-height: calc(100vh - 80px);  /* Altura máxima menos la altura del navbar */
        overflow-y: auto;  /* Permite scroll vertical */
    }

    /* Estilos personalizados para la barra de scroll del menú móvil */
    .nav-links::-webkit-scrollbar {
        width: 8px;
    }

    .nav-links::-webkit-scrollbar-track {
        background: var(--color-dark-beige);
        border-radius: 10px;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 10px;
    }

    .nav-links::-webkit-scrollbar-thumb:hover {
        background: var(--color-secondary);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    /* Datos de contacto en columna para tablets y móviles horizontales */
    .contacto-info-grid {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .contacto-info-grid-inicio {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .contacto-info-item {
        padding: 1.5rem 1rem;
    }

    .contact-form {
        width: 85%;
        padding: 1.8rem;
    }
}

/* Tablet y móviles grandes */
@media (max-width: 768px) {

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

    .form-group.centered {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 2rem 1rem;
    }
    .contact-form {
        width: 95%;
        padding: 1.5rem;
    }
    .social-links a {
        width: 23px;
        height: 23px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px 20px;
    }
    .contact-form {
        width: 100%;
        border-radius: 12px;  /* Mantener esquinas redondeadas en móvil */
        padding: 1.2rem;
    }
}

/* Impresión */
@media print {
    nav {
        position: relative;
    }
    
    .social-links,
    .menu-toggle {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ========================================
   Sistema de navegación por secciones
   ======================================== */
   
/* Secciones visibles (arquitectura multi-página) */
main section {
    display: block;
    position: relative;
    animation: fadeIn 0.5s ease;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Asegurar que cada sección ocupe el espacio correcto */
section {
    min-height: calc(100vh - 80px); /* Ajusta según la altura de tu navbar */
    padding-top: 2rem;
}

/* ========================================
   Sección Tiendas - Mapa y Listados
   ======================================== */

/* Contenedor del mapa */
.map-container {
    width: 80%;
    aspect-ratio: 40 / 15;
    margin: 2rem auto 3rem auto;
    box-shadow: var(--shadow-medium);
    border-radius: 20px;
}

/* Contenido de tiendas */
.tiendas-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Lista de tiendas */
.tiendas-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Item individual de tienda */
.tienda-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    align-items: stretch;
    background: linear-gradient(135deg, var(--color-light), var(--color-beige));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem 1.5rem 1.5rem 30px;
}

/* Imagen de la tienda */
.tienda-item img:first-child {
    width: 280px;
    height: 173px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
    align-self: center;
}

/* Información de la tienda */
.tienda-info {
    padding: 0.5rem 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tienda-info h3 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Filas de información con iconos */
.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 0.5rem;
}

/* Fila de productos con estilo destacado */
.info-row.productos {
    background: linear-gradient(135deg, rgba(224, 162, 30, 0.08), rgba(212, 148, 26, 0.08));
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
    margin-bottom: 1rem;
}

.info-row.productos span {
    font-weight: 500;
    color: var(--color-primary);
}

.info-icon {
    display: none;
}

/* Emoticonos para todas las resoluciones */
.info-row.home::before {
    content: "🏠 ";
}

.info-row.phone::before {
    content: "📞 ";
}

.info-row.clock::before {
    content: "⏰ ";
}

.info-row span {
    color: var(--color-text);
    line-height: 1.5;
}

/* Líneas de horario */
.horario-lines {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.horario-lines span {
    display: block;
    color: var(--color-text);
    line-height: 1.4;
}

/* Botón de Google Business Profile */
.gbp-btn {
    display: inline-block;
    background: linear-gradient(135deg, #D2691E, #8B4513);
    color: white;
    padding: 0.7rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
    text-align: center;
    max-width: 240px;
}

.gbp-btn:hover {
    background: linear-gradient(135deg, #c55a18, #6d3410);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

/* Mapa proporción 2:1 cuando ancho >900px y <1200px */
@media (min-width: 901px) and (max-width: 1199px) {
    .map-container {
        width: 75%;
        aspect-ratio: 2 / 1;
        border-radius: 15px;
        margin: 2rem auto 3rem auto;
    }
}

/* Mapa proporción 3:2 cuando ancho entre 671px-900px */
@media (min-width: 671px) and (max-width: 900px) {
    .map-container {
        width: 80%;
        aspect-ratio: 3 / 2;
        border-radius: 12px;
        margin: 2rem auto 3rem auto;
    }
}

/* Mapa cuadrado (1:1) para todas las resoluciones ≤670px */
@media (max-width: 670px) {
    .map-container {
        width: 85%;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        margin: 2rem auto 3rem auto;
    }
}

/* Responsive para tiendas - Layout columna para ancho ≤ 900px */
@media (max-width: 900px) {

    .tienda-item {
        grid-template-columns: 1fr;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tienda-item img:first-child {
        width: 60% !important;
        height: auto;
        aspect-ratio: 280 / 173;
        margin-right: 0;
        margin-bottom: 15px;
        order: 2;
    }

    .tienda-info {
        display: contents;
    }

    .tienda-info h3 {
        font-size: 1.2rem;
        text-align: center;
        order: 1;
        margin-bottom: 1rem;
        width: 100%;
    }

    .info-row,
    .gbp-btn {
        order: 3;
        width: 100%;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .tiendas-content {
        padding: 0 1rem;
    }

    .tienda-item {
        padding: 8px;
    }

    .tienda-item img:first-child {
        width: 60%;
        height: auto;
        aspect-ratio: 280 / 173;
    }
}


/* Nuevo diseño en columna para cartas de tiendas en resoluciones 1,2,3,4 (solo vertical) */
@media (max-width: 430px) and (orientation: portrait) {
    .tienda-item {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 1rem;
        align-items: center;
    }

    .tienda-info {
        display: contents;
    }

    .tienda-info h3 {
        order: 1;
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 1.3rem;
        width: 100%;
    }

    .tienda-item img:first-child {
        order: 2;
        width: 60%;
        height: auto;
        aspect-ratio: 280 / 173;
        margin: 0 0 1.5rem 0;
        border-radius: 10px;
    }

    .info-row {
        order: 3;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100%;
        margin-bottom: 0.8rem;
        gap: 0.5rem;
    }


    .info-row > span,
    .info-row > .horario-lines {
        order: 1 !important;
        flex: 1;
    }

    .gbp-btn {
        order: 4;
        margin-top: 1rem;
        max-width: 100%;
        width: 100%;
    }
}

/* Mantener proporción de imágenes en resoluciones horizontales */
@media (max-width: 1200px) and (orientation: landscape) {
    .tienda-item img:first-child {
        width: 100%;
        height: auto;
        aspect-ratio: 280 / 173;
    }
}

/* Diseño para resoluciones 1i,2i,3i (móviles horizontales) - DESHABILITADO */
/* Las tarjetas ahora se ajustan automáticamente a su contenido */

/* ========================================
   Sección Productos
   Grid responsive, búsqueda, filtros y modal
   ======================================== */

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

/* Barra de búsqueda */
.search-bar-container {
    position: relative;
    max-width: 340px;
    margin: 1.5rem auto;
}

/* Filtros de categorías - Estilo tags con borde */
.categoria-filtros {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

/* Selector desplegable de categorías - Oculto por defecto */
.categoria-dropdown-container {
    display: none;
    max-width: 340px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.categoria-dropdown-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--color-dark-beige);
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: var(--font-secondary);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
    font-weight: 500;
}

.categoria-dropdown-btn:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.15);
}

.categoria-dropdown-btn.active {
    border-color: var(--color-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.categoria-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.categoria-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--color-primary);
    border-top: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
}

.categoria-dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--color-text);
}

.dropdown-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.dropdown-item:hover {
    background: #f9f9f9;
}

.dropdown-item.active {
    background: var(--color-light-beige);
    color: var(--color-primary);
    font-weight: 600;
}

.search-input {
    width: 100%;
    padding: 0.7rem 2.8rem 0.7rem 1rem;
    border: 2px solid var(--color-dark-beige);
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: var(--font-secondary);
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.15);
}

.search-input::placeholder {
    color: #999;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: var(--color-dark-beige);
    transform: translateY(-50%) scale(1.1);
}

.filtro-tag {
    background: var(--color-beige);
    color: var(--color-primary);
    border: 2px solid var(--color-dark-beige);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.filtro-tag:hover {
    background: var(--color-dark-beige);
    transform: translateY(-2px);
}

.filtro-tag.active {
    background: var(--color-dark-beige);
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(199, 184, 99, 0.3);
}

/* Grid de productos - 4 columnas en desktop */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4.5rem;
    margin-bottom: 2rem;
}

/* Títulos de categoría dentro del grid */
.categoria-titulo {
    display: none;  /* Escondidos visualmente pero mantienen la jerarquía SEO */
    grid-column: 1 / -1;  /* Ocupa todas las columnas del grid */
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.categoria-titulo:first-child {
    margin-top: 0;  /* Primera categoría sin margen superior */
}

/* Card de producto simplificada - MÁS PEQUEÑA */
.producto-card {
    display: block;          /* Para que <a> funcione como bloque */
    text-decoration: none;   /* Eliminar subrayado de enlace */
    color: inherit;          /* Heredar color del padre */
    overflow: hidden;
    background: var(--color-light); /* Mismo color que el fondo de la sección */
    box-shadow: none; /* Sin sombreado */
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
}

.producto-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Imagen con proporción 1:1 */
.producto-imagen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Proporción 1:1 */
    border-radius: 12px;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.15);
}

/* Info del producto con padding reducido */
.producto-info {
    padding: 0.5rem;
    text-align: center;
}

/* Nombre del producto - estilo simple */
.producto-info h3 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.producto-info h4 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Ocultar categorías vacías */
.categoria-seccion:empty,
.categoria-seccion.hidden {
    display: none;
}

/* ========================================
   Grid de Productos - Responsive
   ======================================== */

/* Tablet portrait específico: 3 columnas con gap mejorado */
/* Cubre dispositivos altos (altura >= 768) con ancho 431-767 en portrait */
/* Incluye iPads y tablets similares que necesitan mejor spacing */
@media (min-width: 431px) and (max-width: 767px) and (min-height: 768px) and (orientation: portrait) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }
}

/* Tablet landscape específico: 3 columnas con gap mejorado */
/* Cubre resoluciones con altura 431-767 y ancho 768-1023 en landscape */
/* Evita anchos muy grandes que deberían mostrar 4 columnas */
@media (min-height: 431px) and (max-height: 767px) and (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }
}

/* Tablet: 3 columnas */
@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Móvil vertical: 2 columnas */
@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .producto-info h3,
    .producto-info h4 {
        font-size: 0.95rem;
        font-weight: 600;
    }
}

/* Móvil horizontal: 2 columnas */
@media (max-width: 932px) and (max-height: 430px) and (orientation: landscape) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Modal de Producto
   Diseño responsive con carousel y zoom
   ======================================== */

/* Contenedor del modal */
.modal-producto {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-producto.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-contenido {
    background: var(--color-light);
    border-radius: 20px;
    max-width: 1300px;
    width: 95%;
    max-height: 95vh;
    margin: 2.5vh auto;
    overflow-y: auto;
    position: relative;
}

.cerrar-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cerrar-modal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cerrar-modal:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    overflow: hidden;
}

/* Título del modal - posicionado en desktop */
.modal-titulo {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Carrusel - posicionado en desktop */
.modal-carousel {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Info - posicionado en desktop */
.modal-info {
    grid-column: 2;
    grid-row: 2;
}

/* Carousel */
.modal-carousel {
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: min(620px, 43vw);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border-radius: 15px;
    overflow: hidden;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-imagen {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: inherit;
}

.carousel-imagen.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-dark-beige);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

/* Información del modal - NUEVA ESTRUCTURA */
.modal-info {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: min(620px, 43vw);
    max-height: min(620px, 43vw);
    padding-right: 0.5rem;
}

/* Estilos personalizados para la barra de scroll */
.modal-info::-webkit-scrollbar {
    width: 8px;
}

.modal-info::-webkit-scrollbar-track {
    background: var(--color-beige);
    border-radius: 10px;
}

.modal-info::-webkit-scrollbar-thumb {
    background: var(--color-dark-beige);
    border-radius: 10px;
}

.modal-info::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Descripción */
#modalDescripcion {
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 2rem;
}

/* Ingredientes y Alérgenos - SIMPLIFICADOS */
.producto-detalles {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.detalle-item {
    display: flex;
    margin-bottom: 0.8rem;
}

.detalle-item:last-child {
    margin-bottom: 0;
}

.detalle-item strong {
    color: var(--color-secondary);
    margin-right: 0.5rem;
    min-width: 100px;
}

/* Productos Destacados */
.productos-relacionados {
    margin-top: 2rem;
}

.productos-relacionados h3 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

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

.producto-relacionado {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-relacionado:hover {
    transform: translateY(-5px);
}

.producto-relacionado img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.producto-relacionado h4 {
    padding: 0.8rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 570;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

/* ========================================
   Modal - Controles Responsive
   Escala de botones según altura de viewport
   ======================================== */
@media (max-height: 800px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn.prev {
        left: 8px;
    }

    .carousel-btn.next {
        right: 8px;
    }

    .carousel-dots {
        bottom: 12px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-height: 600px) {
    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-btn.prev {
        left: 8px;
    }

    .carousel-btn.next {
        right: 8px;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 6px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

/* ========================================
   Modal - Media Queries
   ======================================== */

/* Tablet landscape intermedio: Forzar layout columna */
/* Para dispositivos con altura limitada (431-767) y ancho mediano (768-900) en landscape */
@media (min-height: 431px) and (max-height: 767px) and (min-width: 768px) and (max-width: 900px) and (orientation: landscape) {
    .modal-contenido {
        overflow-y: auto;
        max-height: 90vh;
    }

    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        overflow: visible;
        padding: 1.5rem;
    }

    .modal-titulo {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        margin: 0 auto 1rem auto;
        width: 100%;
    }

    .modal-carousel {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-container {
        max-width: 80%;
        width: 80%;
        margin: 0 auto;
    }

    .modal-info {
        grid-column: 1;
        grid-row: 3;
        overflow-y: visible;
        max-height: none;
        padding-right: 0;
    }

    .modal-producto .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: Layout en columna */
@media (max-width: 768px) {
    .modal-contenido {
        overflow-y: auto;
    }

    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        overflow: visible;
    }

    /* Resetear posiciones del grid para layout en columna */
    .modal-titulo {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        margin: 0 auto 1.5rem auto;
        width: 100%;
    }

    .modal-carousel {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .modal-carousel .carousel-container {
        max-width: 80%;
        width: 80%;
        margin: 0 auto;
    }

    .modal-info {
        grid-column: 1;
        grid-row: 3;
        overflow-y: visible;
        max-height: none;
        padding-right: 0;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .modal-producto .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .productos-relacionados {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* Móvil: Ajustes de espaciado */
@media (max-width: 480px) {
    .modal-contenido {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .producto-detalles {
        padding: 1rem;
    }

    .modal-producto .relacionados-grid {
        grid-template-columns: 1fr;
    }

    .search-bar-container {
        margin: 1.5rem auto;
    }

    .search-input {
        padding: 0.8rem 2.5rem 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .detalle-item {
        flex-direction: column;
    }
    
    .detalle-item strong {
        margin-bottom: 0.3rem;
    }
}

/* Móviles pequeños vertical (iPhone SE, etc): Layout columna */
@media (max-width: 430px) and (orientation: portrait) {
    .modal-contenido {
        max-height: 90vh;
        width: calc(100% - 1.5rem);
        margin: 0 0.75rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 1.5rem 1rem;
        gap: 0;
    }

    /* Título - primera fila */
    .modal-titulo {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    /* Carrusel - segunda fila */
    .modal-carousel {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 1.5rem;
    }

    .carousel-container {
        max-width: 100%;
        width: calc(100% - 2rem);
        margin: 0 auto;
    }

    /* Info - tercera fila */
    .modal-info {
        grid-column: 1;
        grid-row: 3;
        overflow-y: visible;
        max-height: none;
        height: auto;
        padding-right: 0;
    }

    /* Descripción con separación del carrusel */
    #modalDescripcion {
        margin-bottom: 1.5rem;
    }

    /* Detalles de ingredientes y alérgenos */
    .producto-detalles {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    /* Productos Destacados - grid 2x2 - SOLO PARA MODAL */
    .productos-relacionados h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .modal-producto .relacionados-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    .modal-producto .producto-relacionado h4 {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Móviles pequeños horizontal: Mantener layout desktop en 2 columnas */
@media (max-height: 430px) and (orientation: landscape) {
    .modal-contenido {
        max-height: calc(100vh - 1.5rem);
        width: calc(100% - 1.5rem);
        margin: 0.75rem;
        overflow: hidden;
    }

    /* Mantener diseño de desktop: carrusel izquierda, info derecha */
    .modal-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        height: calc(100vh - 1.5rem - 3rem);
        overflow: hidden;
    }

    /* Ocultar el título original (se moverá dentro de modal-info) */
    .modal-titulo {
        display: none !important;
    }

    /* Carrusel a la izquierda - resetear grid-row del desktop */
    .modal-carousel {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 100%;
        position: relative;
    }

    .carousel-container {
        width: calc(100vh - 1.5rem - 3rem - 3rem) !important;
        height: calc(100vh - 1.5rem - 3rem - 3rem) !important;
        max-width: calc(100vh - 1.5rem - 3rem - 3rem) !important;
        max-height: calc(100vh - 1.5rem - 3rem - 3rem) !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 15px;
        overflow: hidden;
        position: relative;
    }

    .carousel-imagen {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .carousel-imagen.active {
        opacity: 1;
    }

    /* Info a la derecha con scroll y título incluido */
    .modal-info {
        grid-column: 2 !important;
        grid-row: 1 !important;
        overflow-y: auto;
        height: 100%;
        max-height: 100%;
        padding-right: 0.5rem;
        display: flex;
        flex-direction: column;
    }

    /* Crear un pseudo-título dentro de modal-info - CENTRADO */
    .modal-info::before {
        content: attr(data-titulo);
        display: block;
        font-family: var(--font-primary);
        color: var(--color-primary);
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 1rem;
        flex-shrink: 0;
        text-align: center;
        width: 100%;
    }

    /* Ajustar productos relacionados a 2 columnas - SOLO PARA MODAL */
    .modal-producto .relacionados-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    .modal-producto .producto-relacionado h4 {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Tablets vertical (iPad, etc): Layout columna similar a móviles */
@media (min-width: 768px) and (max-width: 900px) and (orientation: portrait) {
    .modal-contenido {
        max-height: 90vh;
        width: calc(100% - 3rem);
        margin: 0 1.5rem;
        overflow-y: auto;
    }

    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 2rem 1.5rem;
        gap: 0;
    }

    /* Título - primera fila */
    .modal-titulo {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    /* Carrusel - segunda fila */
    .modal-carousel {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 2rem;
    }

    .carousel-container {
        max-width: 100%;
        width: calc(100% - 3rem);
        margin: 0 auto;
    }

    /* Info - tercera fila */
    .modal-info {
        grid-column: 1;
        grid-row: 3;
        overflow-y: visible;
        max-height: none;
        height: auto;
        padding-right: 0;
    }

    /* Descripción con separación del carrusel */
    #modalDescripcion {
        margin-bottom: 1.5rem;
    }

    /* Detalles de ingredientes y alérgenos */
    .producto-detalles {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }

    /* Productos Destacados - grid 3 columnas - SOLO PARA MODAL */
    .productos-relacionados h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .modal-producto .relacionados-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }

    .modal-producto .producto-relacionado h4 {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* Aplicar mismo tamaño de productos relacionados que <431px al rango 431-900px - SOLO PARA MODAL */
@media (min-width: 431px) and (max-width: 900px) {
    .productos-relacionados h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .modal-producto .relacionados-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    .modal-producto .producto-relacionado h4 {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* ========================================
   SECCIÓN INICIO - HERO VISUAL
   ======================================== */

.hero-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 4rem;
    border-radius: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding-top: 80px;
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #f5f5f5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-heavy);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.5);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* ========================================
   CARRUSEL DE NOVEDADES
   ======================================== */

.novedades-section {
    margin: 4rem auto 3rem auto;
    max-width: 1500px;
    padding: 0 2rem;
}

.carousel-novedades {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    aspect-ratio: 760 / 450;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.novedad-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

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

.novedad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.novedad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.novedad-slide:hover .novedad-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

.novedad-overlay h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.novedad-overlay p {
    font-size: 1.1rem;
    margin: 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 60px;
    height: 70px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.carousel-control img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-control:hover {
    transform: translateY(-50%) scale(1.15);
    opacity: 0.8;
}

.prev-novedad {
    left: 20px;
}

.next-novedad {
    right: 20px;
}

/* Reducir tamaño del carrusel en landscape manteniendo proporción */
@media (orientation: landscape) {
    .carousel-novedades {
        max-width: 650px;
    }
}

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

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

.indicator.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

/* ========================================
   INTRO DEL NEGOCIO
   ======================================== */

.intro-section {
    max-width: 900px;
    margin: 5rem auto;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--color-light), var(--color-beige));
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.intro-text strong {
    color: var(--color-secondary);
    font-weight: 700;
}

.intro-btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.intro-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* ========================================
   PRODUCTOS DESTACADOS
   ======================================== */

.destacados-section {
    margin: 5rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

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

.producto-destacado {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.producto-destacado:hover {
    transform: translateY(-10px);
}

.destacado-imagen {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-medium);
}

.destacado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-destacado:hover .destacado-imagen img {
    transform: scale(1.15);
}

.producto-destacado h3 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.producto-destacado p {
    color: var(--color-text);
    font-size: 0.95rem;
    opacity: 0.8;
}

.ver-todos-btn {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.ver-todos-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   MAPA INICIO
   ======================================== */

.mapa-section {
    margin: 5rem auto;
    max-width: 950px;
    padding: 0 2rem;
    text-align: center;
}

.mapa-descripcion {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    text-align: center;
}

.map-inicio-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    margin: 2rem 0;
}

.mapa-btn {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.mapa-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* ========================================
   CTA MAYORISTAS
   ======================================== */

.cta-mayoristas {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 5rem auto 2rem;
    max-width: 950px;
    box-shadow: var(--shadow-heavy);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-mayoristas-btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-mayoristas-btn:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ========================================
   CTA Tiendas - Encuéntranos
   ======================================== */

.cta-tiendas {
    background: linear-gradient(135deg, #f5e6d3, #e8d4bc);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 5rem auto 2rem;
    max-width: 950px;
    box-shadow: var(--shadow-heavy);
}

.cta-tiendas .cta-content {
    color: var(--color-primary);
}

.cta-tiendas .cta-content h2 {
    color: var(--color-primary);
}

.cta-tiendas .cta-content p {
    color: #5c3a12;
}

.cta-tiendas-btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-tiendas-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Sección Inicio - Media Queries
   ======================================== */

/* Tablet grande: Ajustes de tamaño */
@media (max-width: 900px) and (min-width: 769px) {
    .hero-section {
        height: 65vh;
        min-height: 450px;
    }

    .hero-content {
        width: 85%;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Tablet: Ajustes de tamaño */
@media (max-width: 768px) and (min-width: 481px) {
    .hero-section {
        height: 55vh;
        min-height: 400px;
        margin-top: 0;
    }

    .hero-content {
        width: 90%;
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        padding: 0.9rem 2rem;
        font-size: 1.05rem;
    }

    .novedad-overlay h3 {
        font-size: 1.5rem;
    }

    .intro-section {
        margin: 3rem auto;
        padding: 2rem 1.5rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .map-inicio-container {
        height: 350px;
        border-radius: 10px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-mayoristas,
    .cta-tiendas {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .intro-section {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Productos destacados - 2 columnas cuando < 740px */
@media (max-width: 740px) {
    .destacados-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Productos destacados - Mayor separación entre 570px y 740px (sobrescribe el anterior) */
@media (min-width: 570px) and (max-width: 740px) {
    .destacados-grid {
        gap: 4rem !important;
    }
}

/* Móvil: Hero más pequeño y ajustes generales */
@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
        min-height: 320px;
        max-height: 450px;
        margin-top: 0;
    }

    .hero-content {
        width: 92%;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.35;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-cta {
        padding: 0.75rem 1.6rem;
        font-size: 0.95rem;
    }

    .novedad-overlay {
        padding: 1.5rem;
    }

    .novedad-overlay h3 {
        font-size: 1.2rem;
    }

    .novedad-overlay p {
        font-size: 0.9rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control img {
        width: 20px;
        height: 20px;
    }

    .prev-novedad {
        left: 10px;
    }

    .next-novedad {
        right: 10px;
    }

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

    .producto-destacado h3 {
        font-size: 1.1rem;
    }

    .producto-destacado p {
        font-size: 0.85rem;
    }

    .intro-section {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .map-inicio-container {
        height: 300px;
        border-radius: 10px;
    }

    .cta-mayoristas,
    .cta-tiendas {
        padding: 2rem 1rem;
        border-radius: 15px;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .cta-mayoristas-btn,
    .cta-tiendas-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Móviles muy pequeños: Evitar solapamiento con navbar */
@media (max-width: 380px) {
    .hero-content {
        top: 50%;
        transform: translate(-50%, -50%);
        padding-top: 0;
    }
}

/* Móviles pequeños vertical: Reducción global de tipografía */
@media (max-width: 430px) {
    /* Ajuste hero section para móviles pequeños */
    .hero-section {
        height: 48vh;
        min-height: 300px;
        max-height: 400px;
    }

    .hero-content {
        width: 94%;
        padding: 0 0.8rem;
    }

    /* Ajuste global h1 */
    h1 {
        font-size: 1.4rem !important;
    }

    /* Ajuste global h2 */
    h2 {
        font-size: 1.42rem !important;
    }

    /* Ajuste texto general */
    body, p, span, li {
        font-size: 0.9rem;
    }

    /* Mantener tamaño del logo */
    .logo {
        font-size: 1.5rem !important;
    }

    .logo span, .logo-negro, .logo-oro {
        font-size: inherit !important;
    }

    .hero-content h1 {
        font-size: 1.4rem !important;
        margin-bottom: 0.9rem;
        line-height: 1.4;
    }

    .cta-content h2 {
        font-size: 1.35rem;
    }

    .novedad-overlay h3 {
        font-size: 1.1rem;
    }

    /* Sección Inicio: Ajuste de párrafos */
    #inicio p {
        font-size: 0.95rem !important;
    }

    #inicio .hero-cta {
        padding: 0.65rem 1.4rem;
        font-size: 0.88rem;
    }
}

/* Móviles pequeños horizontal: Reducción de tipografía similar a vertical */
@media (max-height: 430px) and (orientation: landscape) {
    /* Ajuste hero section para landscape */
    .hero-section {
        height: 85vh;
        min-height: 350px;
        max-height: 430px;
    }

    .hero-content {
        width: 90%;
        padding: 0 1.5rem;
    }

    /* Ajuste global h1 */
    h1 {
        font-size: 1.35rem !important;
    }

    /* Ajuste global h2 */
    h2 {
        font-size: 1.42rem !important;
    }

    /* Ajuste texto general */
    body, p, span, li {
        font-size: 0.9rem;
    }

    /* Mantener tamaño del logo */
    .logo {
        font-size: 1.5rem !important;
    }

    .logo span, .logo-negro, .logo-oro {
        font-size: inherit !important;
    }

    .hero-content h1 {
        font-size: 1.35rem !important;
        margin-bottom: 0.8rem;
        line-height: 1.35;
    }

    .cta-content h2 {
        font-size: 1.35rem;
    }

    .novedad-overlay h3 {
        font-size: 1.1rem;
    }

    /* Sección Inicio: Ajuste de párrafos */
    #inicio p {
        font-size: 0.95rem !important;
    }

    #inicio .hero-cta {
        padding: 0.65rem 1.4rem;
        font-size: 0.88rem;
    }
}

/* Móviles horizontal: Ajuste de márgenes laterales y centrado */
@media (max-height: 430px) and (orientation: landscape) {
    .cta-mayoristas,
    .cta-tiendas {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .intro-section {
        margin-left: auto;
        margin-right: auto;
        max-width: 900px;
    }

    /* Reducir tamaño del nav para maximizar espacio del menú */
    nav {
        padding: 0.4rem 0.8rem !important;
    }

    .logo {
        font-size: 1.3rem !important;
    }

    .menu-toggle {
        font-size: 1.2rem;
    }

    /* Ajustar menú desplegable para pantallas de altura limitada */
    .nav-links {
        max-height: calc(100vh - 50px) !important;
        padding: 0.5rem 0.8rem 0.8rem 0.8rem !important;
        overflow-y: auto !important;
        top: 100% !important;
    }

    .nav-menu {
        width: 100%;
        gap: 0.2rem !important;
    }

    .nav-menu li {
        display: block !important;
        margin: 0 !important;
    }

    .nav-menu a {
        display: block !important;
        padding: 0.3rem 0.8rem !important;
        font-size: 0.9rem !important;
    }

    .social-links {
        margin-top: 0.3rem !important;
        padding-top: 0.3rem !important;
        gap: 0.5rem !important;
    }

    .social-links a {
        height: 18px !important;
    }
}

/* Rango específico 600-1020px: Mantener layout horizontal con tipografía reducida */
@media (min-width: 600px) and (max-width: 1020px) {
    .contacto-info-inicio h2 {
        font-size: 1.6rem;
    }

    .contacto-info-grid-inicio {
        flex-direction: row !important;
        gap: 2rem;
        padding: 0 1.5rem;
        justify-content: space-between;
    }

    .contacto-info-item {
        flex: 1;
        padding: 1rem 0.5rem;
    }

    .contacto-info-item h3 {
        font-size: 1.1rem;
    }

    .contacto-info-item p {
        font-size: 0.9rem;
    }

    .contacto-icon {
        width: 25px;
        height: 25px;
    }
}

/* Tablets vertical: Márgenes para intro-section */
@media (min-width: 769px) and (max-width: 900px) {
    .intro-section {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}

/* Tablets y pantallas medianas: Márgenes para CTA */
@media (min-width: 769px) and (max-width: 1200px) {
    .cta-mayoristas,
    .cta-tiendas {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}

/* ========================================
   RESEÑAS DE CLIENTES
   ======================================== */

.resenas-section {
    margin: 5rem auto 3rem;
    max-width: 1200px;
    padding: 0 2rem;
}

.resenas-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.resenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resena-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-left: 4px solid var(--color-accent);
}

.resena-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.resena-estrellas {
    margin-bottom: 1rem;
}

.estrella {
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-right: 2px;
}

.resena-texto {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.resena-autor {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.resena-autor strong {
    color: var(--color-primary);
    font-size: 1rem;
}

.resena-fecha {
    color: var(--color-text);
    font-size: 0.85rem;
    opacity: 0.7;
}

.resenas-btn {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.resenas-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Reseñas - Tablet y móvil */
@media (max-width: 768px) {
    .resenas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resena-card {
        padding: 1.5rem;
    }

    .resenas-intro {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .resena-card {
        padding: 1.2rem;
    }

    .estrella {
        font-size: 1.1rem;
    }

    .resena-texto {
        font-size: 0.95rem;
    }

    .resenas-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--color-primary);
    color: white;
    padding: 1.5rem 2rem;
    margin-top: 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive - Footer */
@media (max-width: 768px) {
    .footer {
        padding: 1.25rem 1.5rem;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1rem;
        margin-top: 2rem;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* ========================================
   Mensajes del Formulario de Contacto
   ======================================== */

/* Mensaje de error */
.form-error {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.95rem;
    border-left: 4px solid #d32f2f;
    display: none;
    animation: slideDown 0.3s ease;
}

/* Mensaje de éxito */
.form-success {
    color: #2e7d32;
    background-color: #e8f5e9;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.95rem;
    border-left: 4px solid #2e7d32;
    display: none;
    animation: slideDown 0.3s ease;
}

/* Mensaje de límite alcanzado */
.form-limit-message {
    background: linear-gradient(135deg, #fff3cd, #fff8e1);
    border: 2px solid var(--color-accent);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    box-shadow: var(--shadow-medium);
}

.form-limit-message h3 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.form-limit-message p {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.form-limit-message ul {
    list-style: none;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    margin-top: 1.5rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-limit-message ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-beige);
    color: var(--color-text);
    font-size: 1rem;
}

.form-limit-message ul li:last-child {
    border-bottom: none;
}

.form-limit-message ul li strong {
    color: var(--color-primary);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Animación slide down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón deshabilitado */
.submit-btn:disabled {
    background: linear-gradient(135deg, #ccc, #999);
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-medium);
}

/* Responsive */
@media (max-width: 768px) {
    .form-limit-message {
        padding: 2rem 1.5rem;
    }

    .form-limit-message h3 {
        font-size: 1.5rem;
    }

    .form-limit-message p {
        font-size: 1rem;
    }

    .form-limit-message ul {
        padding: 1rem;
    }

    .form-limit-message ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .form-limit-message {
        padding: 1.5rem 1rem;
        width: 95%;
    }

    .form-limit-message h3 {
        font-size: 1.3rem;
    }

    .form-limit-message p {
        font-size: 0.95rem;
    }

    .form-error,
    .form-success {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}
/* ========================================
   Dropdown de Categorías - Visibilidad
   Mostrar/ocultar según resolución
   ======================================== */

/* Mostrar dropdown en móviles y tablets (≤900px) */
@media (max-width: 900px) {
    .categoria-dropdown-container {
        display: block;
    }

    .categoria-filtros {
        display: none;
    }
}

/* ========================================
   Grid de Productos - Ajustes por Resolución
   ======================================== */

/* Móviles verticales: 2 columnas */
@media (max-width: 430px) and (orientation: portrait) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }
}

/* Móviles horizontales: 3 columnas */
@media (max-height: 430px) and (orientation: landscape) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }
}

/* Tablets verticales: 3 columnas */
@media (min-width: 768px) and (max-width: 900px) and (orientation: portrait) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }
}

/* Tablets horizontales: 4 columnas */
@media (min-width: 1024px) and (max-width: 1194px) and (orientation: landscape) and (max-height: 834px) {
    .productos-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 2rem;
    }
}

/* Móviles específicos horizontal: 4 columnas */
/* iPhone 14 Pro Max horizontal (844x390) */
@media (min-width: 844px) and (max-height: 390px) and (orientation: landscape) {
    .productos-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem;
    }
}

/* iPhone 14 Pro Max / 15 Pro Max horizontal (932x430) */
@media (min-width: 932px) and (max-height: 430px) and (orientation: landscape) {
    .productos-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem;
    }
}

/* ========================================
   Página Individual de Producto
   ======================================== */

/* Contenedor principal */
.producto-individual-section {
    padding: 2rem;
}

.producto-individual-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Grid de producto */
.producto-individual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* Títulos */
.producto-titulo-mobile {
    display: none;
    font-family: Georgia, serif;
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.producto-titulo-desktop {
    font-family: Georgia, serif;
    color: #8B4513;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Carousel */
.producto-carousel-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.producto-carousel {
    position: relative;
    width: 100%;
    max-width: 660px;
}

.producto-carousel .carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
    width: 100%;
}

.producto-carousel .carousel-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    transform: none !important;
    transform-origin: center center !important;
}

.producto-carousel .carousel-imagen.active {
    opacity: 1;
    pointer-events: auto;
}

/* Prevenir zoom en carousel de páginas individuales */
.producto-carousel .carousel-container {
    cursor: pointer !important;
}

.producto-carousel .carousel-container.zoomed {
    cursor: pointer !important;
}

.producto-carousel .carousel-container.zoomed .carousel-imagen.active {
    transform: none !important;
}

.producto-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

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

.producto-carousel .carousel-btn.prev {
    left: 10px;
}

.producto-carousel .carousel-btn.next {
    right: 10px;
}

.producto-carousel .carousel-btn img {
    width: 50px;
    height: 50px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

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

.producto-carousel .dot.active {
    background: white;
    transform: scale(1.2);
}

/* Información */
.producto-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.producto-descripcion {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5c3a12ff;
    margin-bottom: 2rem;
    width: 100%;
    text-align: left;
}

.producto-info-wrapper .producto-detalles {
    background: #f0e6d6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.producto-info-wrapper .detalle-item {
    margin-bottom: 1rem;
}

.producto-info-wrapper .detalle-item:last-child {
    margin-bottom: 0;
}

.producto-info-wrapper .detalle-item strong {
    color: #8B4513;
    display: block;
    margin-bottom: 0.3rem;
}

/* Productos Relacionados */
.productos-relacionados-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0e6d6;
}

.productos-relacionados-section h2 {
    font-family: Georgia, serif;
    color: #8B4513;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-decoration: none;
    border-bottom: none;
}

/* Grid: 4 columnas en desktop (EXACTAMENTE igual que productos destacados de inicio) */
.productos-relacionados-section .relacionados-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.producto-relacionado {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.producto-relacionado:hover {
    transform: translateY(-5px) scale(1.02);
}

.producto-relacionado .producto-imagen-relacionada {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}

.producto-relacionado .producto-imagen-relacionada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-relacionado:hover .producto-imagen-relacionada img {
    transform: scale(1.15);
}

.producto-relacionado .producto-info-relacionada {
    padding: 0.25rem 0.5rem 0.5rem 0.5rem;
    text-align: center;
}

.producto-relacionado .producto-info-relacionada h4 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ========================================
   RESPONSIVE: Página Individual de Producto
   ======================================== */

/* Productos relacionados - 2 columnas cuando < 740px (igual que destacados) */
@media (max-width: 740px) {
    .productos-relacionados-section .relacionados-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Productos relacionados - Mayor separación entre 570px y 740px (sobrescribe el anterior) */
@media (min-width: 570px) and (max-width: 740px) {
    .productos-relacionados-section .relacionados-grid {
        gap: 4rem !important;
    }
}

/* Móvil: Layout en columna única (768px y menor) */
@media (max-width: 768px) {
    /* Grid en columna única */
    .producto-individual-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Título móvil centrado */
    .producto-titulo-mobile {
        display: block;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Ocultar título desktop */
    .producto-titulo-desktop {
        display: none;
    }

    /* Carrusel: mismo ancho que descripción, centrado */
    .producto-carousel-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
        max-width: none !important;
    }

    .producto-carousel,
    .producto-carousel-wrapper .producto-carousel {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
    }

    .producto-carousel .carousel-container {
        width: 100% !important;
        max-width: none !important;
    }

    /* Descripción e ingredientes/alérgenos */
    .producto-info-wrapper {
        width: 100%;
        align-items: stretch !important;
    }

    .producto-descripcion {
        text-align: left;
        width: 100%;
    }

    .producto-info-wrapper .producto-detalles {
        width: 100%;
    }
}

/* Móvil pequeño (480px y menor) */
@media (max-width: 480px) {
    .producto-individual-section {
        padding: 1rem;
    }

    .producto-titulo-mobile {
        font-size: 1.5rem;
        text-align: center !important;
    }

    /* Carrusel: mismo ancho que descripción */
    .producto-carousel-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
        max-width: none !important;
    }

    .producto-carousel,
    .producto-carousel-wrapper .producto-carousel {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
    }

    .producto-carousel .carousel-container {
        width: 100% !important;
        max-width: none !important;
    }

    /* Descripción e ingredientes */
    .producto-info-wrapper {
        align-items: stretch !important;
    }

    .producto-descripcion {
        font-size: 1rem;
    }

    /* Productos relacionados - EXACTAMENTE igual que productos destacados */
    .productos-relacionados-section .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .producto-relacionado h4 {
        font-size: 1.1rem;
    }

    .producto-relacionado p {
        font-size: 0.85rem;
    }
}

/* ========================================
   MODAL DE IMAGEN DEL CARRUSEL
   ======================================== */

.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.image-modal-img.zoomed {
    cursor: zoom-out;
    transform: scale(3);
    transform-origin: var(--zoom-x, center) var(--zoom-y, center);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
}

.image-modal-close img {
    width: 30px;
    height: 30px;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive: 900px-1000px */
@media (max-width: 1000px) and (min-width: 901px) {
    .image-modal-content {
        width: 85%;
        height: 85%;
    }

    .image-modal-img.zoomed {
        transform: scale(2.5);
        transform-origin: var(--zoom-x, center) var(--zoom-y, center);
    }

    .image-modal-close {
        top: 15px;
        right: 25px;
        width: 45px;
        height: 45px;
    }

    .image-modal-close img {
        width: 28px;
        height: 28px;
    }
}

/* Responsive: 770px-900px */
@media (max-width: 900px) and (min-width: 771px) {
    .image-modal-content {
        width: 85%;
        height: 85%;
    }

    .image-modal-img.zoomed {
        transform: scale(2.2);
        transform-origin: var(--zoom-x, center) var(--zoom-y, center);
    }

    .image-modal-close {
        top: 15px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .image-modal-close img {
        width: 26px;
        height: 26px;
    }
}

/* Responsive: 600px-770px */
@media (max-width: 770px) and (min-width: 601px) {
    .image-modal-content {
        width: 90%;
        height: 90%;
    }

    .image-modal-img.zoomed {
        transform: scale(2);
        transform-origin: var(--zoom-x, center) var(--zoom-y, center);
    }

    .image-modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .image-modal-close img {
        width: 24px;
        height: 24px;
    }
}

/* Responsive: 470px-600px */
@media (max-width: 600px) and (min-width: 471px) {
    .image-modal-content {
        width: 95%;
        height: 95%;
    }

    .image-modal-img.zoomed {
        transform: scale(1.8);
        transform-origin: var(--zoom-x, center) var(--zoom-y, center);
    }

    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .image-modal-close img {
        width: 22px;
        height: 22px;
    }
}

/* Responsive: <470px */
@media (max-width: 470px) {
    .image-modal-content {
        width: 98%;
        height: 98%;
    }

    .image-modal-img.zoomed {
        transform: scale(1.6);
        transform-origin: var(--zoom-x, center) var(--zoom-y, center);
    }

    .image-modal-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
    }

    .image-modal-close img {
        width: 20px;
        height: 20px;
    }
}
