/* Estilos generales */
html, body {
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    text-align: center; /* Asegura que el texto también esté alineado */
    min-height: 100vh; /* Asegura que el body ocupe toda la pantalla */
    width: 100%; /* Asegura que el body ocupe todo el ancho disponible */

    flex-direction: column;
    justify-content: flex-start; /* Alineación superior */
    align-items: center; /* Centrado horizontal */
}

.content {
    flex: 1;

    justify-content: center;
    align-items: center;
}

/* Solo los párrafos: centrándolos sin tocar la estructura */
p {
    text-align: left; /* Alineación de los párrafos a la izquierda */
    text-justify: justify; /* Justificación del texto */
    line-height: 1.6; /* Espaciado de líneas para mayor legibilidad */
    max-width: 900px; /* Limita el ancho máximo de los párrafos */
    margin: 20px auto; /* Margen automático para centrarlos */
    padding: 0 15px; /* Espaciado lateral para evitar que se peguen a los bordes */
}


#header {
    background-color: #333;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-between;
}

#header-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header img.logo {
    cursor: pointer;
    width: 100px; /* Tamaño base más grande */
    height: auto;
    max-width: 120px; /* Evita que se agrande demasiado en pantallas grandes */
    transition: all 0.3s ease-in-out; /* Suaviza los cambios de tamaño */
}

/* Ajustes específicos para pantallas más pequeñas */
@media (max-width: 768px) { 
    #header img.logo {
        width: 90px; /* Un poco más grande que los 80px iniciales */
    }
}

@media (max-width: 480px) { 
    #header img.logo {
        width: 80px; /* En móviles muy pequeños se mantiene en 80px */
    }
}

/* Contenedor del logo con menú desplegable */
#logo-menu {
    position: relative;
    display: inline-block;
}

.logo {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

/* Estilos del menú desplegable del logo */
#dropdown-logo {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

#dropdown-logo a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    transition: background-color 0.3s;
}

#dropdown-logo a:hover {
    background-color: #555;
}

#logo-menu:hover #dropdown-logo {
    display: block;
}


#header h1 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

#user-language-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

#language-menu {
    position: relative;
}

#selected-language-flag {
    cursor: pointer;
    width: 30px;
    height: auto;
}

#dropdown-language {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* Cambié 'left' por 'right' para que se alinee a la derecha del contenedor */
    background-color: #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1000;
    overflow: hidden;
    max-width: 100vw; /* Añadí 'max-width' para asegurarnos de que no se desborde fuera de la pantalla */
    box-sizing: border-box; /* Asegura que el padding no cause desbordamiento */
}

#dropdown-language a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: background-color 0.3s;
}

#dropdown-language a img {
    width: 20px;
    height: auto;
    margin-right: 8px;
}

#dropdown-language a:hover {
    background-color: #f1f1f1;
}

#language-menu:hover #dropdown-language {
    display: block;
}


#user-menu {
    position: relative;
}

#user-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: none;
}

#dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #444;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

#dropdown-menu a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    transition: background-color 0.3s;
}

#dropdown-menu a:hover {
    background-color: #555;
}

#user-menu:hover #dropdown-menu {
    display: block;
}

.menu-wrapper {
    display: flex;
    justify-content: center;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
    background-color: #494949;
}

.menu {
    display: flex;
    gap: 5px; /* Reducimos el espacio entre elementos */
    padding: 5px; /* Reducimos el padding general */
    position: relative;
    align-items: center;
}

.menu-item {
    cursor: pointer;
    background-color: #494949;
    padding: 6px 12px; /* Reducimos el padding para hacerlo menos alto */
    border-radius: 4px;
    color: #fff;
    font-size: 16px; /* Reducimos ligeramente el tamaño del texto */
    transition: background-color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item:hover, .menu-item.active {
    background-color: #666;
}

.menu-item a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
}

.submenu {
    display: none;
    position: absolute;
    top: calc(100% + 3px); /* Reducimos el espacio debajo del menú */
    left: 0;
    background-color: #444;
    border-radius: 6px;
    min-width: 110px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.submenu a {
    display: block;
    color: white;
    padding: 8px 15px; /* Reducimos el padding dentro del submenu */
    text-decoration: none;
    font-size: 14px; /* Reducimos el tamaño del texto del submenu */
    transition: background-color 0.3s;
}

.submenu a:hover {
    background-color: #555;
}

.menu-item:hover .submenu,
.menu-item.active .submenu {
    display: block;
}

.menucountry-wrapper {
    display: flex;
    justify-content: center;
    overflow: visible; /* Permitir visibilidad del menú */
    padding: 0;
    box-sizing: border-box;
    background-color: #494949;
}

.menucountry {
    display: flex;
    gap: 5px; /* Reducimos el espacio entre elementos */
    padding: 5px; /* Reducimos el padding general */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #aaa #f4f4f4;
    box-sizing: border-box;
}

.menucountry::-webkit-scrollbar {
    height: 6px; /* Reducimos la altura de la barra de scroll */
}

.menucountry::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
}

.menucountry a {
    text-decoration: none;
    padding: 6px 12px; /* Reducimos el padding para disminuir la altura */
    color: #fff;
    background-color: #494949;
    border-radius: 4px;
    transition: background-color 0.3s;
    flex-shrink: 0;
    font-size: 14px; /* Reducimos el tamaño del texto */
    display: flex;
    align-items: center; /* Asegurar que el texto está alineado verticalmente */
}

.menucountry a:hover {
    background-color: #444;
}



.login-container, .signup-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
}

.login-container h2, .signup-container h2 {
    margin: 0 0 20px;
    font-size: 28px;
    text-align: center;
    color: #333;
}

.login-container input, .login-container button,
.signup-container input, .signup-container button {
    width: calc(100% - 20px);
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-container input, .signup-container input {
    border-color: #ccc;
}

.login-container button, .signup-container button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container button:hover, .signup-container button:hover {
    background-color: #0056b3;
}

.login-container .links, .signup-container .links {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 15px;
}

.login-container .links a, .signup-container .links a {
    color: #007bff;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.login-container .links a:hover, .signup-container .links a:hover {
    text-decoration: underline;
}

#footer {
    background-color: #1f1f1f;
    color: #f5f5f5;
    padding: 40px 20px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    gap: 30px;
}

/* Agrupación de enlaces */
#footer .zone-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 0; /* Eliminar el margen extra entre esta sección y la siguiente */
}

#footer .zone-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
}

@media (min-width: 768px) {
    #footer .zone-links {
        flex-direction: row;
        justify-content: center;
        gap: 30px; /* Reducir el espacio entre enlaces */
    }

    #footer .zone-group {
        text-align: left;
    }
}

#footer .zone-link {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .zone-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Bloques de enlaces legales y contacto */
#footer .links,
#footer .contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

#footer .links a,
#footer .contact a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .links a:hover,
#footer .contact a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Icono de contacto (SVG) */
#footer .contact svg {
    width: 28px;
    height: 28px;
    fill: white;
    transition: transform 0.3s ease;
}

#footer .contact a:hover svg {
    transform: scale(1.1);
    fill: #ffd700;
}

/* Copyright */
#footer .copyright {
    font-size: 12px;
    opacity: 0.7;
    text-align: center;
}

/* Sección de otros mapas interactivos */
#footer .other-cities {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

#footer .other-cities h3 {
    font-size: 16px;
    margin-bottom: 15px; /* Ajustamos el margen inferior */
    color: #f5f5f5;
}

#footer .other-cities ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

#footer .other-cities li a {
    color: #f5f5f5;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .other-cities li a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Scroll horizontal en móviles */
@media (max-width: 768px) {
    #footer .other-cities ul {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    #footer .other-cities h3 {
        font-size: 15px;
        margin-bottom: 10px; /* Ajustamos el margen para móviles */
    }

    #footer .links, 
    #footer .contact {
        gap: 15px;
    }

    #footer .zone-links {
        flex-direction: column;
        gap: 10px;
    }

    #footer .zone-group {
        text-align: center;
    }
}



/* Estilos para el mapa y contenedor */
#map-container {
    display: flex;
    justify-content: center; /* Centra el mapa horizontalmente */
    align-items: center; /* Centra el mapa verticalmente */

    padding: 10px; /* Espaciado para que el mapa no quede pegado al borde */
    box-sizing: border-box;
}

/* Estilos para el mapa */
#map {
    width: 80%; /* El mapa ocupa el 80% del ancho del contenedor en móvil */
    height: 50vh; /* El mapa ocupa el 50% de la altura de la pantalla en móvil */
    border: 2px solid #ddd; /* Borde gris claro */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
    background-color: #fff; /* Fondo blanco */
}

/* Estilos para pantallas grandes (escritorio) */
@media (min-width: 769px) {
    #map {
        width: 60%; /* El mapa ocupa el 60% del ancho del contenedor */
        height: 60vh; /* El mapa ocupa el 60% de la altura de la pantalla */
    }
}

/* Estilos móviles */
@media (max-width: 768px) {
    #map {
        width: 90%; /* El mapa ocupa el 90% del ancho del contenedor */
        height: 50vh; /* El mapa ocupa el 50% de la altura de la pantalla */
    }
}

.language-flags {
    margin-top: 20px;
}

.language-flag {
    width: 30px;
    height: auto;
    margin: 0 8px;
}
/* Contenedor de la galería */
.image-gallery {
    display: flex;  /* Usamos flexbox en todos los dispositivos */
    overflow-x: auto;  /* Permite desplazamiento horizontal */
    scroll-snap-type: x mandatory;  /* Hace que las imágenes se alineen al hacer scroll */
    gap: 16px;  /* Espacio entre imágenes */
    padding: 10px;  /* Margen interior */
    white-space: nowrap;  /* Evita que las imágenes se vayan a la siguiente línea */
}

/* Estilo para las imágenes */
.image-gallery img {
    flex: 0 0 auto;  /* Evita que las imágenes se estiren */
    width: 90%;  /* Tamaño relativo para adaptabilidad */
    max-width: 400px;  /* Máximo tamaño en escritorio */
    height: auto;  /* Mantiene la proporción */
    border-radius: 8px;  /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Sombra sutil */
    scroll-snap-align: center;  /* Cada imagen se "ajusta" al centro al hacer scroll */
}

/* Ocultar la barra de desplazamiento en algunos navegadores */
.image-gallery::-webkit-scrollbar {
    display: none;  /* Chrome, Safari */
}

.image-gallery {
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Contenedor de la imagen y su texto */
.image-container {
    position: relative;
    flex: 0 0 auto;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden; /* Para evitar desbordes de la imagen */
}

/* Ajustes de la imagen */
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease-in-out;
}

/* Efecto hover para dar sensación de profundidad */
.image-container:hover img {
    transform: scale(1.05);
}

/* Texto superpuesto con mejor diseño */
.image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));  
    color: #fff;
    text-align: left; /* Alinea el texto a la izquierda */
    padding: 16px 20px;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.3s ease-in-out;
}

/* Encabezado de la ciudad */
.image-text h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Descripción debajo del nombre (ahora más grande) */
.image-text p {
    font-size: 1.2rem; /* Aumentado el tamaño */
    margin: 8px 0 0;
    opacity: 0.9;
    font-weight: bold;
}


/* Efecto en hover: oscurece el fondo y hace el texto más nítido */
.image-container:hover .image-text {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
}

.benefits h2 {
    font-size: 2rem;
    padding: 20px;
    text-align: center;
    margin: 0 auto;  /* Centra la lista dentro de su contenedor */
    max-width: 60%;  /* Ajusta el ancho de la lista para que no quede muy ancha */
}

.benefits p {
    font-size: 1rem;
    margin-bottom: 15px;
    list-style-position: inside;
    padding-left: 0;  /* Quitamos el padding para evitar que empuje la lista */
    line-height: 1.6;
    text-align: left;
    margin: 0 auto;  /* Centra la lista dentro de su contenedor */
    max-width: 60%;  /* Ajusta el ancho de la lista para que no quede muy ancha */
}

.benefits ul {
    list-style-position: inside;
    padding-left: 0;  /* Quitamos el padding para evitar que empuje la lista */
    line-height: 1.6;
    text-align: left;
    margin: 0 auto;  /* Centra la lista dentro de su contenedor */
    max-width: 60%;  /* Ajusta el ancho de la lista para que no quede muy ancha */
}

.benefits ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    text-align: center;
}

/* Hero section con imagen de fondo */
.hero-banner {
    position: relative;
    width: 100%;
    height: 70vh;  /* Ajusta la altura a la altura total de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    box-sizing: border-box;  /* Esto asegura que el padding no cause desbordamiento */
    overflow: hidden;  /* Evita el desplazamiento horizontal */
}

/* Contenido de la sección hero (texto) */
.hero-content {
    z-index: 1;  /* Asegura que el texto esté encima de la imagen */
}
.hero-content p {
    font-size: 1.2rem; /* Más pequeño */
    font-weight: 100;  /* Mantiene algo de peso sin ser exagerado */
    text-transform: uppercase; /* Mayúsculas */
    text-align: left; /* Alineado a la izquierda */
    margin-bottom: 5px; /* Espacio más compacto */
    letter-spacing: 1px; /* Espacio entre letras */
    word-spacing: 3px; /* Aumenta el espacio entre palabras */
}

.hero-content h1 {
    font-size: 2.0rem; /* Más grande que h1 */
    font-weight: 300; /* Sin negrita */
    text-align: left; /* Alineado a la izquierda */
    line-height: 1.4; /* Mejor separación de líneas */
}

/* Estilo general para la sección de características */
.features {
    display: flex;
    justify-content: space-between;  /* Reajustar el espacio entre las características */
    margin: 0;
    padding: 10px 15px;  /* Reducir padding para que aproveche mejor los márgenes laterales */
    box-sizing: border-box;
    text-align: center;
    flex-wrap: wrap;  /* Asegura que se ajusten en móviles */
    position: absolute;
    bottom: 5px;  /* Coloca las características un poco más cerca del borde inferior */
    width: 100%;  /* Asegura que ocupe todo el ancho */
    z-index: 2;  /* Asegura que las características estén por encima de la imagen */
    gap: 10px;  /* Ajuste el espacio uniforme entre las características */
}

/* Estilo de cada característica */
.feature {
    flex: 1 1 32%;  /* Ajusta para que ocupe un 32% en escritorio */
    padding: 5px;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;  /* Eliminar márgenes innecesarios */
}

.feature img {
    width: 40px;  /* Iconos pequeños */
    height: 40px;
    margin-bottom: 8px;  /* Menor espacio entre el icono y el texto */
    object-fit: contain;
}

.feature h3 {
    font-size: 0.9rem;  /* Reducción moderada del tamaño del título */
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
    white-space: normal;  /* Permite que el texto se ajuste si es necesario */
    word-wrap: break-word;
}

.feature p {
    font-size: 0.8rem;  /* Tamaño más pequeño para el texto descriptivo */
    font-weight: 400;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.3;  /* Compacto para mayor legibilidad */
    white-space: normal;
    word-wrap: break-word;  /* Ajusta las palabras largas */
}

/* Ajustes para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    .features {
        flex-direction: row;  /* Las características en una fila en móvil */
        align-items: flex-end;  /* Alinea las características al final (parte inferior) */
        padding: 0 10px;  /* Ajusta el padding para evitar el desbordamiento */
        position: absolute;
        bottom: 5px;  /* Coloca las características aún más cerca de la parte inferior */
        width: 100%;
        gap: 1px;  /* Menor espacio entre las características */
    }

    .feature {
        flex: 1 1 33%;  /* Cada característica ocupa un 33.33% en móvil */
        margin-bottom: 0;
        text-align: center;
    }

    .feature img {
        width: 30px;  /* Iconos más pequeños en móvil */
        height: 30px;
    }

    .feature h3 {
        font-size: 0.8rem;  /* Reducir aún más el tamaño del título en móvil */
        line-height: 1.2;  /* Mantener la altura de línea compacta */
    }

    .feature p {
        font-size: 0.7rem;  /* Reducir tamaño del texto descriptivo */
        line-height: 1.3;  /* Mantener la línea del texto eficiente */
    }
}

.separator {
    width: 100%;          /* Ocupa todo el ancho disponible */
    height: 2px;          /* El grosor de la línea */
    margin: 20px 0;       /* Espaciado superior e inferior */
}

#visit-zones {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

#visit-zones h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

#visit-zones label {
    font-size: 1.1rem;
    margin-bottom: 10px;  /* Añadido para agregar más espacio entre la pregunta y el selector */
    display: block;  /* Asegura que la etiqueta esté en su propia línea */
    text-align: center; /* Centra la pregunta */
}

#visit-zones select {
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
    margin: 0 auto; /* Centra el select */
    width: 60%; /* Ancho del select */
    max-width: 400px; /* Limita el ancho máximo para que no se vea demasiado grande */
    text-align: center;
}

#visit-zones ul {
    list-style-position: inside;
    padding-left: 0;
    line-height: 1.6;
    text-align: center;
    margin: 0 auto;
    max-width: 60%; /* Ajusta el ancho de la lista */
}

#visit-zones ul li {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Contenedor del mapa estático */
#static-map {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Imagen dentro del contenedor */
#static-map img {
    width: 80%;
    height: 50vh;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: block;
}

/* Escritorio */
@media (min-width: 769px) {
    #static-map img {
        width: 60%;
        height: 60vh;
    }
}

/* Móvil */
@media (max-width: 768px) {
    #static-map img {
        width: 90%;
        height: 50vh;
    }
}




