/* Reset de márgenes y tipografía */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    --Turquesa:#2BBAD9; 
}

/* Estilo para el header y navbar */
header {
    background: url(../img/Fondo.jpg) no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Barra de navegación */
.navbar {
    position: fixed;
    background-color: var(--Turquesa);
    width: 100%;
    height: 60px;
    top: 0;
    font-size: 20px;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    padding: 0 20px;
}

.navbar .container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: gray;
}

/* Menú de hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle div {
    width: 30px;
    height: 3px;
    background-color: black;
    margin: 5px;
    transition: 0.3s;
}

/* Hero */
.hero {
    text-align: center;
    margin-top: auto;
    padding: 6rem;
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* Logo */
#logo {
    width: 32%;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Título */
.hero h2 {
    font-size: 2.5rem;
    margin: 20px 0;
}

/* Descripción */
.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Botón */
.hero .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--Turquesa);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-size: 1rem;
}

.hero .btn:hover {
    background: orange;
}

/* Servicios */
.services {
    padding: 2rem;
    background: #f7f7f7;
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.services p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #555;
}

.services-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    max-width: 220px;
    flex: 1 1 calc(25% - 1rem);
}

.service-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
}


.service-item h3 {
    font-size: 1.1rem; /* Reduce ligeramente el tamaño del título */
    padding: 0.8rem; /* Espaciado interno del texto */
    color: #333;
}


/* Destinos */

/* Sección de destinos */
.destinations {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    color: black;
}

.destinations h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: skyblue;
}

.destinations p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.destination-item {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Añadido para dar una sombra */
    height: 350px; /* Altura fija para las tarjetas */
}

.destination-item img {
    width: 100%;
    height: 100%;  /* La imagen ahora toma toda la altura de la tarjeta */
    object-fit: cover; /* Esto asegura que la imagen cubra toda el área sin perder proporción */
    transition: transform 0.3s, filter 0.3s;
}

.destination-item h3 {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: orange;
    color: white;
    font-size: 1.5rem;
    padding: 10px 20px;
    border-radius: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.3s;
}

.destination-item:hover h3 {
    background: white;
    transform: scale(1.1);
    color: orange;
}

.destination-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}




/* CTA */
.cta {
    background: #f0f0f0;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Arial', sans-serif;
}

/* Estilos del botón */
.btn {
    background-color: var(--Turquesa);  /* Un verde llamativo */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;  /* Bordes redondeados */
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;  /* Transición suave */
    display: inline-block;  /* Asegura que el botón esté alineado correctamente */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.btn:hover {
    background-color: var(--Turquesa);  /* Cambiar a un verde más oscuro */
    transform: scale(1.05);  /* Escalar ligeramente el botón */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);  /* Sombra más intensa */
}

.btn:active {
    background-color: var(--Turquesa);  /* Un verde aún más oscuro cuando se presiona */
    transform: scale(1);  /* Vuelve a su tamaño original al hacer clic */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
    z-index: 1000;
    overflow-y: auto;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.4s ease-in-out;
}

/* Animación de apertura */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón de Cerrar */
.close-btn {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
}

/* Título Modal */
.modal-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Estilos del formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Etiquetas */
label {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

/* Campos de entrada */
input, select, textarea {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

/* Foco en los campos */
input:focus, select:focus, textarea:focus {
    border-color: #7f7fff;
    outline: none;
}

/* Estilo de los botones */
button[type="submit"] {
    background-color: #49A9F0;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #3383bf;
}

button[type="submit"]:active {
    background-color: #1e639b;
}

/* Espaciado y ajuste de los inputs */
input, select, textarea {
    margin-bottom: 10px;
}

/* Estilos del iframe (mapa) */
.mapa iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Sección de Ubicación */
.ubicacion {
    padding: 3rem 2rem;
    background-color: #fafafa;
    text-align: center;
}

.ubicacion h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.ubicacion p {
    font-size: 1rem;
    color: #666;
}

/* Sección de Comentarios */
.comentarios {
    background-color: #f7f7f7;
    padding: 3rem;
    margin-top: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.comentarios h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.comentarios p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #777;
}

form#comentariosForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

form#comentariosForm input,
form#comentariosForm textarea {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

form#comentariosForm button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

form#comentariosForm button:hover {
    background-color: #555;
}

.comentarios-lista {
    margin-top: 30px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.comentarios-lista h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.comentario {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.comentario strong {
    font-size: 1.2rem;
    color: #333;
}

.comentario p {
    font-size: 1rem;
    color: #777;
}




/* Footer */
footer {
    background: #222;
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 1rem;
    border-top: 2px solid var(--Turquesa);
}

footer .footer-content p {
    margin-bottom: 10px;
}

footer .footer-content a {
    color: var(--Turquesa);
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
}

footer .footer-content a:hover {
    text-decoration: underline;
    color: #fff;
}

.ubicacion {
    text-align: center;
    margin: 40px 0;
}

.ubicacion h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.ubicacion p {
    font-size: 1rem;
    color: #555;
}

.mapa iframe {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Para que sea responsivo */
}


@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--Turquesa);
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }
}

