/* Estilos Base */
body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #808080;
}
/* Sección Coteles */

/* Estilos del encabezado */
header.custom-header {
    padding: 40px 20px;
    background-color: #e0f7fa;
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 5px solid #9D4B96; /* Línea inferior en Púrpura Medio Profundo */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el contenido horizontalmente */
}

header.custom-header h1 {
    font-size: 2.5em; /* Tamaño más pequeño para mejor ajuste */
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    color: #038A4F; /* Verde Esmeralda */
}

header.custom-header p {
    font-size: 1.1em; /* Tamaño de fuente más pequeño para mejor ajuste */
    margin-top: 12px;
    max-width: 800px;
    color: #555;
    line-height: 1.6em;
    text-align: center; /* Centrar el texto de la descripción */
}


.cocktail-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra los ítems */
    padding: 20px;
}

.cocktail-item {
    position: relative;
    width: 22%; /* Ajusta el ancho para que entren 4 elementos en una fila */
    margin: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.cocktail-item img {
    width: 100%;
    height: 250px; /* Ajusta la altura para uniformidad */
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.cocktail-item:hover img {
    opacity: 0.8;
}

.cocktail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.cocktail-item:hover .overlay {
    opacity: 1;
}

.overlay .text {
    font-size: 18px; /* Ajusta el tamaño del texto */
    font-weight: bold;
}

/* Ventanas emergentes */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    width: 90%;
    height: auto;
    border-bottom: 1px solid #ddd;
    border-radius: 12px;
}

.modal-text {
    padding: 20px;
    text-align: center;
}

.modal-text h2 {
    margin-bottom: 10px;
    color: #9D4B96;
}

.modal-text p {
    font-size: 16px;
    color: #333;
}

.close {
    color: #333;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .cocktail-item {
        width: 48%; /* Para que se vean 2 elementos en pantallas más pequeñas */
    }

    .cocktail-item img {
        height: 200px;
    }

    .modal-content {
        width: 90%;
    }
}

/* Espaciado adicional para el pie de página */
footer.footer {
    margin-top: 40px; /* Espacio adicional entre el contenedor de contacto y el pie de página */
}
