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

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    /*cursor: url("/Imagen/botellin2.png"), auto;*/
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 90%;
    position: relative;
}

h2 {
    color: #b22222;
    margin-bottom: 15px;
    font-size: 28px;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
}

.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.bg-light {
    background-color: #f8f5f0;
}

.feature-image {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.banner-image {
    width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background: #CC1F1A;
    background: radial-gradient(circle, rgba(204, 31, 26, 1) 0%, rgba(138, 33, 29, 1) 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f8f5f0;
}

/* Botón de idioma */
.language-btn {
    background-color: #b22222;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.language-btn:hover {
    background-color: white;
    color: #b22222;
}

.language-btn i {
    margin-right: 5px;
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: 100%;
    background: #b51d18;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease, display 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.mobile-menu ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 5px 0;
}

/* Botón de idioma en menú móvil */
.mobile-menu .language-btn {
    display: inline-flex;
    margin: 15px 0 0 0;
}

/* Secciones de contenido */
.section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.content-left, .content-right {
    flex: 1;
}

.content-center{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.text-block {
    margin-bottom: 30px;
}

.text-block:last-child {
    margin-bottom: 0;
}

/* Sección con imagen de fondo */
#banner {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: none;
}

/* Imagen de fondo con parallax */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("imagen/med.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

/* Caja de texto con fondo blur */
.text-container {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    max-width: 600px;
}

/* Galería de imágenes */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Footer */
footer {
    background-color: #2a2a2a;
    color: white;
    padding: 40px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.social-icon {
    color: white;
    font-size: 24px;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #b22222;
}

.partners {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 1em 0;
}
.partner-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.partner-links a:hover {
  color: #f60000; /* Amarillo dorado al pasar el mouse (opcional) */
}
.partner-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
}

.disclaimer {
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* Estilos para el popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.popup-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.popup-content p {
    margin-bottom: 15px;
    color: #555;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.popup-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#yesBtn {
    background-color: white;
    color: #222;
}

#yesBtn:hover {
    background-color: rgb(102, 214, 107);
    color: white;
}

#noBtn {
    background-color: #f44336;
    color: white;
}

#noBtn:hover {
    background-color: #d32f2f;
}

/* Responsive */
@media (max-width: 768px) {
    .section .container {
        flex-direction: column;
    }
    
    .section:nth-child(even) .container {
        flex-direction: column-reverse;
    }
    
    #desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .content-left, .content-right {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .text-container {
        padding: 25px;
        width: 90%;
    }
    
    h2 {
        font-size: 24px;
    }
    
    p {
        font-size: 14px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .beer-counter {
        bottom: 10px;
        right: 10px;
        padding: 10px;
        font-size: 14px;
    }
    
    .language-btn {
        margin-left: 10px;
        padding: 5px 10px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .popup-buttons {
        flex-direction: column;
    }
    
    .popup-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .gallery-caption {
        opacity: 1;
    }
    
    .partner-links {
        flex-direction: column;
        gap: 1em;
        align-items: center;
    }
}


/* Contador de cervezas servidas */
.beer-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(204, 31, 26, 0.9);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    z-index: 999;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.beer-counter:hover {
    transform: scale(1.05);
}

.beer-counter i {
    margin-right: 10px;
    font-size: 20px;
}

.beer-counter.update {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}