/* --- Base Styles --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #5aa6de;
    --accent-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --bg-color: #ffffff;
    --font-family-primary: 'Montserrat', sans-serif;
    --font-family-secondary: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    padding-top: 80px;
    /* Agregado para el espaciado con el header fijo */
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-family-secondary);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    /* Aumentado el margen inferior de los títulos */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--dark-color);
}

.section-padding {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
    /* Clase para centrar cualquier elemento */
}

/* --- Header --- */
.header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
    position: relative;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 102;
    /* Asegura que el submenú esté sobre el menú principal */
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #fff;
    width: 90%;
}

.hero-content h1 {
    color: #fff;
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-dot.active {
    background-color: #fff;
}

/* --- Services Section (Home) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Testimonials Section (TripAdvisor) --- */
.testimonials {
    background-color: #f2f7fb;
    text-align: center;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 2rem;
    text-align: center;
}

.testimonial-slide img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-slide p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-slide h4 {
    margin: 0;
    color: var(--primary-color);
}

.tripadvisor-logo {
    width: 120px;
    margin-top: 10px;
}

/* --- CTA Section --- */
.cta-home {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.cta-home h2 {
    color: #fff;
    font-size: 2.5rem;
}

.cta-home .btn {
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: bold;
    margin-top: 1.5rem;
}

/* --- Tours & Traslados Page --- */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tour-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-10px);
}

.tour-card-img {
    height: 250px;
    overflow: hidden;
}

.tour-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-img img {
    transform: scale(1.1);
}

.tour-card-content {
    padding: 1.5rem;
}

.tour-card-content h3 {
    color: var(--primary-color);
}

.tour-card-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.tour-card-content ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tour-card-content ul li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}



.tour-gallery {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    overflow-x: auto;
}

.tour-gallery img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

/* --- Nosotros Page --- */
.about-section {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 250px;
    /* Ajusta este valor si quieres un círculo más grande o más pequeño */
    height: 250px;
    /* Asegúrate de que este valor sea igual al ancho */
    border-radius: 50%;
    object-fit: cover;
    /* Esto recorta la imagen para que encaje perfectamente en el círculo */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.director-info {
    margin-top: 2rem;
    text-align: center;
}

.director-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* --- Contacto Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.contact-info ul li i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.contact-form-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    resize: vertical;
}

.checklist {
    display: flex;
    flex-direction: column;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links a {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.social-icon-img {
    height: 1.5rem;
    vertical-align: middle;
}

/* --- Fixed WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 99;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--bg-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 2rem;
        z-index: 101;
    }

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

    .nav-item {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .about-section {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .dropdown-menu {
        position: absolute;
        /* Cambiado para que se superponga */
        top: 100%;
        left: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        /* Añadido para un efecto visual similar al desktop */
        min-width: unset;
        transform: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

.mt-5 {
    margin-top: 3rem;
    /* Puedes ajustar este valor según la separación que desees */
}

.testimonial-slide .tripadvisor-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    padding: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.tour-features {
    list-style: none;
    /* Oculta los puntos de la lista */
    padding: 0;
    margin: 1rem 0;
    display: flex;
    /* Coloca los elementos en línea */
    flex-wrap: wrap;
    /* Permite que los elementos pasen a la siguiente línea si no hay suficiente espacio */
    gap: 1rem;
    /* Espacio entre los elementos */
}

.tour-features li {
    display: flex;
    /* Alinea el icono y el texto en cada elemento */
    align-items: center;
    margin-bottom: 0;
    /* Elimina el margen inferior predeterminado de los li */
}

.tour-features li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* --- Sección de Características de Tours --- */
.tour-features-section {
    background-color: var(--light-color);
    text-align: center;
}

.tour-features-section h2 {
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.features-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 150px;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item h4 {
    font-size: 1rem;
    font-family: var(--font-family-primary);
    font-weight: 600;
    margin: 0;
}

/* --- Lightbox Gallery --- */
.lightbox {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox.open {
    display: block;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    margin: 4% auto;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: auto;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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

.nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.nav-buttons span {
    color: #fff;
    font-size: 50px;
    padding: 0 16px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.nav-buttons span:hover {
    color: #bbb;
}

.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    margin-top: 10px;
}

.lightbox-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.lightbox-thumbnails img.active,
.lightbox-thumbnails img:hover {
    border-color: var(--primary-color);
}

/* --- Tours & Traslados Page --- */
body {
    padding-top: 80px;
    /* Agregado para el espaciado con el header fijo */
}

.tour-card {
    cursor: pointer;
    /* Indica que la tarjeta es clicable */
    transition: transform 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-card-img {
    position: relative;
    overflow: hidden;
}

.tour-card-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tour-card-img:hover img {
    transform: scale(1.05);
    /* Efecto de zoom en la imagen */
}

/* Capa superpuesta para el indicativo de galería */
.tour-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Oculto por defecto */
    transition: opacity 0.3s ease;
}

.tour-card-img:hover .tour-card-overlay {
    opacity: 1;
    /* Muestra la capa al hacer hover */
}

.tour-card-overlay i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tour-card-overlay span {
    font-size: 1rem;
    font-weight: 600;
}


/* --- Lightbox Gallery --- */
.lightbox {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox.open {
    display: block;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    margin: 4% auto;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: auto;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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

.nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.nav-buttons span {
    color: #fff;
    font-size: 50px;
    padding: 0 16px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.nav-buttons span:hover {
    color: #bbb;
}

.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    margin-top: 10px;
}

.lightbox-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.lightbox-thumbnails img.active,
.lightbox-thumbnails img:hover {
    border-color: var(--primary-color);
}

/* --- Animaciones de Revelación (Reveal on Scroll) --- */

/* Estado inicial de los elementos (ocultos) */
.hidden-animate {
    opacity: 0;
    transition: all 0.8s ease-out;
    /* Transición suave para todos los efectos */
}

/* Tipos de animaciones */
.hidden-animate.fade-in {
    opacity: 0;
}

.hidden-animate.slide-in-from-left {
    transform: translateX(-50px);
}

.hidden-animate.slide-in-from-right {
    transform: translateX(50px);
}

.hidden-animate.slide-in-from-bottom {
    transform: translateY(50px);
}

.hidden-animate.scale-in {
    transform: scale(0.9);
}

/* Estado final de los elementos (visibles y animados) */
.hidden-animate.show-animate {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* --- Sección Nosotros --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content h2 {
    font-size: 2rem;
}

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



/* --- Sección de Valores --- */
.values-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
}

.value-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card .icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Sección del Equipo --- */
.team-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center;
}

.team-member {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--primary-color);
}

.team-member h3 {
    margin: 0.5rem 0 0.2rem;
    font-size: 1.25rem;
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
}
/* =========================================
   ESTILOS: CRÉDITO DEL PROYECTO (FOOTER)
   ========================================= */

/* Estilo para la línea de atribución de Nexento */
.project-credit {
    /* Aseguramos que se vea por debajo del copyright principal */
    text-align: center;
    font-size: 0.8rem; 
    color: var(--color-text-muted); /* Gris tenue para texto secundario en tema oscuro */
    opacity: 0.9;
    padding-top: 15px; 
    margin-top: 15px;
    border-top: 1px solid var(--color-border); /* Separador sutil con el color de borde */
    
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado horizontal */
    gap: 8px;
    line-height: 1.5;
}

/* Enlace de texto a Nexento */
.project-credit a {
    color: var(--color-accent); /* Color de acento (Naranja) */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    opacity: 1;
}

.project-credit a:hover {
    color: #fff; /* Blanco puro al pasar el ratón para destacar */
}

/* Contenedor de los iconos sociales de Nexento */
.nexento-social-credit {
    margin-left: 5px;
    display: inline-flex;
    gap: 10px;
}

/* Iconos sociales */
.nexento-social-credit a {
    color: var(--color-text-muted); /* Iconos grises, igual que el texto que los precede */
    font-size: 1rem; 
    opacity: 0.8;
}

.nexento-social-credit a:hover {
    color: var(--color-accent); /* Color de acento al pasar el ratón */
    opacity: 1;
}

/* Ajuste para que se vea bien en móvil */
@media (max-width: 600px) {
    .project-credit {
        flex-direction: column; /* Apilar en móvil para evitar desborde */
        text-align: center;
        gap: 5px;
    }
    .nexento-social-credit {
        margin-left: 0;
        margin-top: 5px;
    }
}