/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}


html, body {
    max-width: 100%;
    overflow-x: hidden; /* Previene scroll horizontal */
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: white;
    background: url('https://cdn.prod.website-files.com/680f81021936b0d565d34173/681b9ed1ed50bd706d2b5613_fondo.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

/* Fondo semitransparente para el contenido */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Coloca detrás de todo el contenido */
}

/* Header */
/* Header básico */
/* Header básico */
header {
    background-color: rgba(0, 0.8, 0, 0.8);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000; /* Asegura que el header esté por encima de otros elementos */
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

/* Ajustamos el tamaño del logo para que no sea demasiado grande */
.logo img {
    height: 50px;  /* Ajustamos el tamaño del logo */
    margin-right: 10px;
}

/* Título del header */
.logo h1 {
font-family: 'Great Vibes', cursive;    font-size: 2.3rem; /* Ajustamos el tamaño de las letras */
    color: white; /* Aseguramos que las letras sean blancas */
    margin: 0; /* Eliminamos cualquier margen extra */
}


/* Menú de navegación */
nav {
    display: flex;
    align-items: center;

}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #FFD700;
}

/* Botón de hamburguesa (visible solo en pantallas pequeñas) */
.menu-toggle {
    display: none;  /* Ocultar el botón en pantallas grandes */
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Barra de navegación móvil */
/* Estilos para las opciones de la barra de navegación */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px; /* Espaciado entre los elementos de la lista */
}

nav ul li a {
    color: white;
    text-decoration: none;  /* Eliminamos los subrayados de los enlaces */
    font-weight: bold;
    font-size: 2rem;
    transition: color 0.3s, transform 0.3s; /* Añadimos transición para el cambio de color */
    padding: 10px 15px; /* Añadimos un poco de padding para hacer los enlaces más grandes y clickeables */
    border-radius: 5px; /* Bordes redondeados para los enlaces */
font-family: 'Great Vibes', cursive;}

/* Efecto hover: cambio de color y de tamaño */
nav ul li a:hover {
    color: #FFD700; /* Cambio de color al pasar el mouse */
    transform: scale(1.1); /* Aumentamos ligeramente el tamaño cuando pasa el mouse */
}

/* Barra de navegación móvil - Versión lateral izquierda */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0.8, 0, 0.95); /* Fondo semitransparente */
    transition: left 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    font-family: inherit; /* Hereda la fuente del body */
    color: inherit; /* Hereda el color del texto del body */
}

/* Estilos para los elementos del menú móvil */
.mobile-nav ul {
    list-style: none;
    padding: 2rem 1rem;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    color: inherit; /* Hereda el color del texto del body */
    text-decoration: none;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Great Vibes', cursive;
    display: block;
}

.mobile-nav ul li a:hover {
    background-color: #FFD700;
    color: black;
}

/* Overlay para el fondo cuando el menú está abierto */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Ajustar el contenido principal cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Añadir overlay cuando el menú está abierto */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Para asegurarnos que el header no tape el contenido */
main {
    padding-top: 120px; /* Da espacio al contenido para evitar que quede cubierto por el header fijo */
}

/* Sección hero */
.hero {
    padding-top: 130px; /* Aseguramos que el contenido no quede cubierto por el header fijo */
}

/* Cambiar el tamaño del logo y texto en pantallas pequeñas */
@media (max-width: 768px) {
    /* Cambiar el tamaño del logo en pantallas más pequeñas */
    .logo img {
        height: 40px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Mostrar el botón de hamburguesa en pantallas pequeñas */
    .menu-toggle {
        display: block;
    }

    /* Cambiar el tamaño de los enlaces del menú en pantallas pequeñas */
    nav ul li a {
        font-size: 1.2rem;
        padding: 10px;
    }

    /* Ocultar el menú en pantallas pequeñas por defecto */
    nav ul {
        display: none;
    }
}



/* Barra de navegación móvil */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;  /* Comienza fuera de la pantalla */
    width: 250px;
    height: 100%;
    background-color: rgba(0, 0.8, 0, 0.8);
    transition: left 0.3s ease-in-out;

}

/* Cuando el menú está activo (deslizado a la vista) */
.mobile-nav.active {
    left: 0;  /* Cuando se activa, el menú aparece en la pantalla */
}

/* Aseguramos que el contenido principal no se sobreponga con el header */
main {
    padding-top: 110px; /* Asegura que el contenido no quede cubierto por el header fijo */
}

/* Agregar padding a la sección hero para evitar superposición */
.hero {
    padding-top: 130px; /* Ajustamos el padding-top para darle más espacio al contenido */
}


/* Estilos del slider */
/* Estilos del slider */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Ajusta el ancho máximo del slider */
    margin: 80px auto 0; /* Asegura que el slider tenga espacio desde el top */
    overflow: hidden; /* Oculta cualquier contenido que se salga del contenedor */
    aspect-ratio: 16 / 9;  /* Mantiene la proporción del slider (relación de aspecto) */
}
main {
    padding-top: 120px; /* Asegura que el contenido principal no se superponga con el header */
    padding-bottom: 2rem;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.slide {
    flex: 0 0 100%; /* Cada slide ocupa el 100% del contenedor */
    height: 100%; /* Se asegura de que cada slide tenga el mismo tamaño que el contenedor */
    position: relative;
    background-size: cover;  /* Asegura que las imágenes cubran todo el espacio del slide */
    background-position: center;  /* Centra la imagen */
    background-repeat: no-repeat;  /* Evita que la imagen se repita */
}

/* Las imágenes dentro de los slides */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin perder proporción */
}

/* Botones de navegación */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #FFD700;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Ajuste para pantallas más pequeñas */
@media (max-width: 768px) {
    .slider-container {
        aspect-ratio: 4 / 3; /* Ajusta la relación de aspecto en pantallas más pequeñas */
    }
}


/* Sección Hero */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #FFD700;
    font-family: 'EB Garamond', serif;  
}

.hero p {
    font-size: 2.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-family: 'EB Garamond', serif;  
}

/* Botón */
.btn {
    background-color: #FFD700;
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

/* Main Content */
main {
    flex: 1;
    padding-top: 30px; /* Compensa el header fijo */
    padding-bottom: 2rem; /* Espacio antes del footer */
    z-index: 1; /* Asegura que el contenido esté sobre el fondo */
}

/* Estilos para la sección de productos */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos del producto */
.product {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 3rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Imagen del producto */
.product-image-container {
    width: 100%;
    height: 300px; /* Altura fija para consistencia */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 2rem;
    position: relative;
}

.product-image-container img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product:hover .product-image-container img {
    transform: scale(1.05);
}

/* Información del producto */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product h3 {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    font-family: 'EB Garamond', serif;  
}

.product p {
    margin-bottom: 1rem;
    flex-grow: 1;
    font-family: 'EB Garamond', serif;  
    color: #ddd;
    font-size: 1.5rem;
}

/* Precios */
.product-price {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD700;
}

.discount {
    font-size: 1.2rem;
    color: #aaa;
    text-decoration: line-through;
    position: relative;
}

.discount::after {
    content: "OFFER";
    position: absolute;
    top: -15px;
    right: -40px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Botón de compra */
.product button {
    background-color: #FFD700;
    color: black;
    border: none;
    padding: 0.75rem;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: bold;
    margin-top: auto;
    width: 100%;
    transition: all 0.3s;
    font-family: 'EB Garamond', serif;  
    font-size: 1.1rem;
}

.product button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/*No disponible*/
.product.unavailable {
    opacity: 0.7;
    position: relative;
}

.product.unavailable::after {
    content: "NO DISPONIBLE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 10;
}

.product.unavailable button {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2.5rem 1.5rem;
    text-align: center;
    z-index: 1;
}

footer {
    width: 100vw; /* Ocupa exactamente el ancho de la ventana */
    box-sizing: border-box; /* Incluye padding en el ancho */
    overflow: hidden; /* Oculta cualquier contenido que desborde */
    position: relative;
    left: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1000px;
    margin: 0 auto 2rem;
    gap: 3rem; /* Más espacio entre secciones */
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.5rem;
    display: inline-block;
    font-family: 'EB Garamond', serif;  
}

/* Redes Sociales (Vertical) */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s;
    font-family: 'EB Garamond', serif;  
}

.social-links a i {
    font-size: 1.5rem; /* Íconos más grandes */
    color: #FFD700;
}

.social-links a:hover {
    color: #FFD700;
}

/* Estilos para la sección de imagen en el footer */
.location-image {
    width: 100%;
    max-width: 240px;
    
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid #FFD700;
}

.location-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.location-image:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .social-links a {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Cambia el diseño del menú a vertical en móviles */
    nav ul {
        display: none; /* Inicialmente oculto */
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0.8, 0, 0.8);
        width: 100%;
        position: absolute;
        top: 70px; /* Distancia desde el header */
        left: 0;
        padding-top: 1rem;
    }

    /* Mostrar el menú cuando se hace clic en el botón de hamburguesa */
    nav ul.active {
        display: flex;
    }

    /* Hacer que los elementos del menú se alineen verticalmente */
    nav ul li {
        margin: 10px 0;  /* Espaciado entre los elementos */
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    /* Mostrar el botón de hamburguesa en pantallas pequeñas */
    .menu-toggle {
        display: block;
    }
}


/* Estilos para la scrollbar con imagen */
/* Funciona en Chrome, Edge y Safari */
::-webkit-scrollbar {
    width: 14px; /* Ancho un poco mayor para mostrar mejor la imagen */
    height: 14px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: url('captura.png') center/cover; /* Imagen personalizada */
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.5); /* Borde dorado semitransparente */
}

::-webkit-scrollbar-thumb:hover {
    background: url('captura.png') center/cover; /* Imagen alternativa al hover */
    border: 2px solid #FFD700; /* Borde dorado sólido al hover */
}

.copyright{
    font-size: 100%;
    font-family: 'EB Garamond', serif;  
}
.video{
width: 300px;
height: 70p%;
z-index: 1;
}


/* Estilos para el Tap-Room */
.taproom-hero {
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-family: 'Great Vibes', cursive;
}

.hero-content p {
    font-size: 1.8rem;
    font-family: 'EB Garamond', serif;
}


.taproom-gallery {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.taproom-gallery h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #FFD700;
    margin-top: 5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.on-tap {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4rem 2rem;
    margin-bottom: 5rem;
}

.on-tap h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #FFD700;
}

.beer-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.beer-item {
    text-align: center;
    width: 250px;
}

.beer-item img {
    height: 200px;
    margin-bottom: 1rem;
}

.beer-item h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

.events {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.events h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #FFD700;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card h4 {
    font-size: 1.5rem;
    padding: 1rem 1rem 0;
    color: #FFD700;
}

.event-card p {
    padding: 0 1rem 1rem;
}

.event-card button {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 0.5rem;
    background-color: #FFD700;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
}

.location-hours {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}


.hours-info {
    color: white;
    padding: 1rem;
    text-align: center;
}

.hours-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #FFD700;
}

.hours-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hours-info button {
    background-color: #FFD700;
    color: black;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    margin-top: 1rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .location-hours {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
}
/* Estilos para la puerta de edad */
/* Estilos para el overlay de la puerta de edad */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
}

/* Estilos para la puerta de edad */
/* Overlay que cubre TODA la página */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; /* Fondo negro sólido */
    z-index: 9999;
}

/* Popup de verificación */
/* Estilos para el verificador de edad */
/* Estilos para el overlay de verificación de edad */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://cdn.prod.website-files.com/680f81021936b0d565d34173/681b9ecfad7ba08fad567fde_fondoedad.jpeg') no-repeat center center;
    background-size: cover; /* Asegura que la imagen cubra todo el espacio */
    z-index: 9998;
    display: block;
}

/* Popup de verificación */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.3); /* Fondo semitransparente para mejor legibilidad */
}

.age-gate-content {
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    
}

.age-gate h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFFF;
}

.age-gate p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #FFF;
}

.age-gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-gate button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

#confirm-age {
    background: #FFFF;
    color: #820000;
}

#deny-age {
    background: #820000;
    color: white;
}

.age-gate button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Clase para ocultar elementos cuando el age gate está activo */
.age-gate-active {
    overflow: hidden;
}

/* Ocultar el overlay y el popup cuando se confirma la edad */
.age-gate-overlay.hidden,
.age-gate.hidden {
    display: none;
}




/* Estilos para el icono del carrito */
.cart-icon {
    position: relative;
    cursor: pointer;
    margin-left: 20px;
    font-size: 1.5rem;
    color: white;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #FFD700;
    color: black;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Estilos para el popup del carrito */
.cart-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    max-height: 87vh;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 15px;
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #FFD700;
}

.cart-header h3 {
    color: #FFD700;
    margin: 0;
    font-family: 'EB Garamond', serif;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.cart-item-info {
    flex-grow: 1;
    text-align: left;
}

.cart-item-name {
    color: #FFD700;
    font-family: 'EB Garamond', serif;
    margin-bottom: 5px;
}

.cart-item-price {
    color: white;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 1.3rem;
    margin-left: 10px;
}

.cart-total {
    text-align: right;
    padding: 10px 0;
    font-size: 1.2rem;
    color: #FFD700;
    font-weight: bold;
    border-top: 1px solid #FFD700;
}

.checkout-btn {
    background-color: #FFD700;
    color: black;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'EB Garamond', serif;
}

.checkout-btn:hover {
    background-color: #e6c200;
}

/* Carrito de scroll horizontal (para versión alternativa) */
.horizontal-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #FFD700;
    padding: 10px;
    z-index: 1000;
    display: none;
}

.horizontal-cart-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
}

.horizontal-cart-item {
    min-width: 120px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.horizontal-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

.horizontal-cart-item-name {
    color: #FFD700;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 5px;
}

.horizontal-cart-item-price {
    color: white;
    font-size: 0.9rem;
}

.remove-horizontal-item {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    cursor: pointer;
}

.horizontal-cart-total {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
    font-weight: bold;
}

.horizontal-checkout-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background-color: #FFD700;
    color: black;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cart-popup {
        width: 300px;
        right: 10px;
    }
    .horizontal-cart {
        display: block;
    }
}

/* Notificación de producto agregado */
.cart-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFD700;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1002;
}

.cart-notification.show {
    opacity: 1;
}


/* Estilos para el carrito en móviles */
@media (max-width: 768px) {
    #cart-icon {
        display: none;
    }
    #mobile-cart-icon {
        display: inline-block;
        font-size: 1.5rem;
        color: white;
        margin-left: 20px;
    }

    /* El menú lateral */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background-color: rgba(0, 0.8, 0, 0.95);
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 1001;
        padding-bottom: 1rem;
    }
    .mobile-nav.active {
        left: 0;
    }

/* Estilos mejorados para el carrito móvil */
/* Estilos mejorados para el carrito móvil */
.mobile-cart-popup {
    position: fixed;
    top: 0;
    right: -100%;
    display: flex;
    width: 90%;
    max-width: 350px;
    height: 100vh;
    max-height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    border-left: 2px solid #FFD700;
    padding: 1.8rem;
    z-index: 1002;
    transition: right 0.3s ease-in-out;
    flex-direction: column;
    overflow: hidden;
}

.mobile-cart-popup.active {
    right: 0;
}

.mobile-cart-popup .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #FFD700;
    padding-bottom: 1rem;
    flex-shrink: 0;
}

.mobile-cart-popup .cart-header h3 {
    color: #FFD700;
    margin: 0;
    font-size: 1.5rem;
    font-family: 'EB Garamond', serif;
}

.mobile-cart-popup .cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch; /* Para un scroll suave en iOS */
}

.mobile-cart-popup .delivery-form {
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.mobile-cart-popup .cart-total {
    text-align: right;
    padding: 1rem 0;
    font-size: 1.2rem;
    color: #FFD700;
    font-weight: bold;
    border-top: 1px solid #FFD700;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.9);
    position: sticky;
    bottom: 0;
}

.mobile-cart-popup .checkout-btn {
    background-color: #FFD700;
    color: black;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    margin-top: 0;
}

.mobile-cart-popup .checkout-btn:hover {
    background-color: #e6c200;
}

/* Overlay para el carrito móvil */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Estilos para los botones de WhatsApp */
.checkout-btn {
    transition: all 0.3s;
}

.checkout-btn:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
}

/* Estilos para el carrito vacío */
.empty-cart {
    text-align: center;
    color: #aaa;
    font-style: italic;

 }
}



/* Tabletas pequeñas (ej: iPad Mini) - 600px a 768px */
@media (min-width: 600px) {
    .mobile-cart-popup {
        max-width: 350px;
        padding: 1.5rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 1.7rem;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1.3rem;
    }
    
    .mobile-cart-popup .cart-item-price {
        font-size: 1.1rem;
    }
    
    .mobile-cart-popup .cart-total {
        font-size: 1.4rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1.3rem;
        padding: 1rem;
    }
}

/* Tabletas grandes (ej: iPad Pro) - 769px a 1024px */
@media (min-width: 769px) {
    .mobile-cart-popup {
        max-width: 400px;
    }
    
    .mobile-cart-popup .cart-header {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .mobile-cart-popup .cart-item {
        padding: 1rem 0;
    }
}

/* Laptops pequeñas - 1025px a 1280px */
@media (min-width: 1025px) {
    .mobile-cart-popup {
        max-width: 450px;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 1.8rem;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1.4rem;
    }
    
    .mobile-cart-popup .cart-total {
        font-size: 1.5rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1.4rem;
        padding: 1.2rem;
    }
}

/* Pantallas grandes (desktops, laptops grandes) - 1281px en adelante */
@media (min-width: 1281px) {
    .mobile-cart-popup {
        max-width: 500px;
        padding: 2rem;
    }
    
    .mobile-cart-popup .cart-header {
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .mobile-cart-popup .cart-item {
        padding: 1.2rem 0;
    }
}

/* Dispositivos con altura pequeña (ej: smartphones en horizontal) */
@media (max-height: 500px) {
    .mobile-cart-popup .cart-header {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-cart-popup .cart-item {
        padding: 0.5rem 0;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .mobile-cart-popup .cart-item-price {
        font-size: 0.8rem;
    }
    
    .mobile-cart-popup .cart-total {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        padding: 0.6rem;
        font-size: 1rem;
    }
}

/* Dispositivos con pantallas muy grandes (ej: TVs) */
@media (min-width: 1600px) {
    .mobile-cart-popup {
        max-width: 550px;
        padding: 2.5rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 2rem;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1.6rem;
    }
    
    .mobile-cart-popup .cart-item-price {
        font-size: 1.3rem;
    }
    
    .mobile-cart-popup .cart-total {
        font-size: 1.8rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1.6rem;
        padding: 1.5rem;
    }
}

/* Tabletas muy pequeñas y móviles grandes (600px-767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .mobile-cart-popup {
        max-width: 330px;
        padding: 1.2rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 1.6rem;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1.2rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1.2rem;
    }
}

/* Breakpoint específico para 768px-799px (Tabletas pequeñas estándar) */
@media (min-width: 768px) and (max-width: 799px) {
    .mobile-cart-popup {
        max-width: 390px;
        padding: 1.4rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 1.7rem;
    }
    
    .mobile-cart-popup .cart-item {
        padding: 1rem 0;
    }
}

/* Breakpoint específico para 800px-899px */
@media (min-width: 800px) and (max-width: 899px) {
    .mobile-cart-popup {
        max-width: 400px;
        padding: 1.6rem;
    }
    
    .mobile-cart-popup .cart-header {
        padding-bottom: 1.3rem;
        margin-bottom: 1.3rem;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1.3rem;
    }
    
    .mobile-cart-popup .cart-total {
        font-size: 1.3rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1.25rem;
        padding: 0.9rem;
    }
}

/* Tabletas grandes (900px-1024px) */
@media (min-width: 900px) and (max-width: 1024px) {
    .mobile-cart-popup {
        max-width: 430px;
        padding: 1.8rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 1.8rem;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1.35rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1.3rem;
        padding: 1rem;
    }
}

/* Laptops pequeñas (1025px-1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .mobile-cart-popup {
        max-width: 450px;
        padding: 2rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 1.9rem;
    }
    
    .mobile-cart-popup .cart-item {
        padding: 1.1rem 0;
    }
    
    .mobile-cart-popup .cart-total {
        font-size: 1.4rem;
    }
}

/* Laptops estándar (1281px-1440px) */
@media (min-width: 1281px) and (max-width: 1440px) {
    .mobile-cart-popup {
        max-width: 490px;
        padding: 2.2rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 2rem;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1.5rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1.4rem;
        padding: 1.1rem;
    }
}

/* Pantallas grandes (1441px-1600px) */
@media (min-width: 1441px) and (max-width: 1600px) {
    .mobile-cart-popup {
        max-width: 500px;
        padding: 2.5rem;
    }
    
    .mobile-cart-popup .cart-header {
        padding-bottom: 1.8rem;
        margin-bottom: 1.8rem;
    }
    
    .mobile-cart-popup .cart-total {
        font-size: 1.6rem;
    }
}

/* Pantallas muy grandes (1601px-1920px) */
@media (min-width: 1601px) and (max-width: 1920px) {
    .mobile-cart-popup {
        max-width: 530px;
        padding: 3rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 2.2rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1.6rem;
        padding: 1.3rem;
    }
}

/* Pantallas extra grandes (1921px en adelante) */
@media (min-width: 1921px) {
    .mobile-cart-popup {
        max-width: 600px;
        padding: 3.5rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 2.5rem;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1.8rem;
    }
    
    .mobile-cart-popup .cart-total {
        font-size: 2rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1.8rem;
        padding: 1.5rem;
    }
}

/* Dispositivos con altura pequeña (ej: smartphones en horizontal) */
@media (max-height: 500px) {
    .mobile-cart-popup {
        padding: 0.8rem;
    }
    
    .mobile-cart-popup .cart-header {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-cart-popup .cart-header h3 {
        font-size: 1.3rem;
    }
    
    .mobile-cart-popup .cart-item {
        padding: 0.5rem 0;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 1rem;
    }
    
    .mobile-cart-popup .cart-total {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 1rem;
        padding: 0.6rem;
    }
}

/* Dispositivos con altura muy pequeña (ej: algunos smartphones en horizontal) */
@media (max-height: 400px) {
    .mobile-cart-popup .cart-header h3 {
        font-size: 1.1rem;
    }
    
    .mobile-cart-popup .cart-item-name {
        font-size: 0.9rem;
    }
    
    .mobile-cart-popup .cart-total {
        font-size: 1rem;
    }
    
    .mobile-cart-popup .checkout-btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}



/* Estilos para el formulario de delivery */
.delivery-form {
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.delivery-form h4 {
    color: #FFD700;
    font-family: 'EB Garamond', serif;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #ddd;
    font-family: 'EB Garamond', serif;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-family: 'EB Garamond', serif;
}

.delivery-price {
    font-weight: bold;
    color: #FFD700;
    margin-top: 0.5rem;
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
}

/* Ajustes para el carrito con delivery */
.cart-total {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1px 0;
    border-top: 1px solid #FFD700;
}

.cart-total span {
    justify-content: space-between;
}


