@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,800;1,800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Lemon&display=swap');


/* Reset CSS */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

html {
  color-scheme: dark light;
  scroll-behavior: smooth;
}

body, html {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background: url('/images/Fondo.jpg') no-repeat center center/cover;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover, a:focus, a:active {
    color: inherit; 
    text-decoration: none; 
}


.page-menu {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background: url('/images/Fondo.jpg') no-repeat center center/cover;
    overflow: auto;
}


/* Menú */
.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 10%;
    color: #fff;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
}

.contact-button {
    position: absolute;
    top: 20px;
    right: 10%;
}

.contact-button a {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-button a:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.logo2 img {
    max-width: 100px;
    margin: 30px auto;
    padding-top: 80px;
}

.menu-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.menu-options button a {
    color: inherit; /* Hereda el color del botón */
    text-decoration: none; /* Quita el subrayado */
}

.menu-options button {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background-size 0.45s ease;
    width: 100%;
    height: 80px; /* Ajusta la altura del botón */
    padding: 0; /* Elimina el padding */
}

.menu-options button img {
    width: 20%;
    height: 100%; /* La imagen ocupará el 100% del alto del botón */
    object-fit: cover; /* La imagen se ajusta al tamaño sin perder proporción */
    margin: 0; /* Elimina los márgenes */
    border-radius: 5px;
}

.menu-options button span {
    width: 80%;
    text-align: left;
    font-size: 2rem;
    padding-left: 10px; /* Un poco de espacio entre la imagen y el texto */
}

.menu-options button:hover,
.menu-options button:focus-visible,
.menu-options button.is-active {
    background-size: 100% 100%;
}

.menu-options button:active {
    background-size: 100% 100%;
    transition-duration: 0.15s;
}

.social-links-menu {
    margin-top: 40px;
    padding-bottom: 60px;
}

.social-links-menu a {
    margin: 0 10px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links-menu a:hover {
    color: #ffcc00;
}

@media (max-width: 800px) {
    .menu-options {
        grid-template-columns: 1fr;
    }

    .menu-options button {
        width: 90%; /* Ocupa el 80% del ancho en dispositivos móviles */
        margin: 0 auto;
    }

    .logo img {
        max-width: 100px;
    }

    .menu-options button span {
        font-size: 1.6rem;
    }
}

/* Overlay for the pop-up */
.popup-overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: rgba(12, 30, 45, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999; /* Ensure it's on top */
    justify-content: center;
    align-items: center;
    animation: overlayFade 0.25s ease;
    overscroll-behavior: contain;
}

@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Pop-up content box */
.popup-content {
    background: linear-gradient(180deg, #ffffff 0%, #f2f9f8 100%);
    color: #04556a;
    padding: 50px 28px 35px;
    border-radius: 16px;
    border-top: 5px solid #04556a;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    animation: popupPop 0.4s cubic-bezier(.22, .9, .32, 1.2);
}

.popup-body {
    max-height: calc(85vh - 85px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Mobile-only hint telling users the pop-up content can be scrolled */
.scroll-hint {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(4, 85, 106, 0.85);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 1;
    transition: opacity 0.25s ease;
    animation: scrollHintBounce 1.4s ease-in-out infinite;
    z-index: 2;
}

.scroll-hint.is-hidden {
    opacity: 0;
}

@keyframes scrollHintBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

@media (max-width: 800px) {
    .scroll-hint {
        display: flex;
    }
}

@keyframes popupPop {
    from { opacity: 0; transform: translateY(25px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-content h4 {
    font-weight: 600;
}

.popup-header h4 {
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    color: #04556a;
    margin-bottom: 14px;
}

.popup-header p {
    line-height: 1.7;
    font-size: 0.95rem;
    color: #333;
}

.popup-location {
    text-align: left;
    padding: 12px 16px;
    margin: 10px 0;
    background-color: rgba(4, 85, 106, 0.06);
    border-left: 3px solid #04556a;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.popup-location:hover {
    background-color: rgba(4, 85, 106, 0.12);
    transform: translateX(3px);
}

.popup-location h4 {
    font-size: 1rem;
    color: #04556a;
    margin-bottom: 2px;
}

.popup-location p {
    font-size: 0.88rem;
    color: #555;
}

.waze-link {
    color: #04556a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.waze-link i {
    color: #0abfc2;
    margin-right: 4px;
}

.waze-link:hover,
.waze-link:focus {
    color: #0abfc2;
    text-decoration: underline;
}

/* Close button (X) */
.close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    background-color: rgba(4, 85, 106, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.25s ease;
}

.close-button:hover {
    background-color: rgba(4, 85, 106, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .popup-overlay {
        padding: 12px;
    }

    .popup-content {
        width: 100%;
        max-width: 100%;
        max-height: 70vh;
        max-height: 70dvh;
        padding: 40px 16px 16px;
        border-radius: 12px;
    }

    .popup-body {
        max-height: calc(70vh - 60px);
        max-height: calc(70dvh - 60px);
    }

    .popup-header h4 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .popup-header p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .popup-location {
        padding: 8px 12px;
        margin: 6px 0;
    }

    .popup-location h4 {
        font-size: 0.9rem;
    }

    .popup-location p {
        font-size: 0.8rem;
    }

    .close-button {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
        font-size: 20px;
        background-color: rgba(4, 85, 106, 0.18);
    }
}

/* Style for the button that triggers the pop-up */
.contact-button {
    cursor: pointer;
    padding: 10px 20px;
    background-color: #04556a;
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
}