@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ======================= VARIABLES Y RESET ======================= */
:root {
    --primary-color: #00835A;   /* Verde oscuro como color principal */
    --secondary-color: #EA541D; /* Naranja como color de acento y botones */
    --accent-color: #FCBC0C;    /* Amarillo para detalles y llamadas a la atención */
    --text-color: #6c757d;
    --heading-color: #333;
    --bg-light: #f8f9fa;
    --white: #fff;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

.bg-light { background-color: var(--bg-light); }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
}


/* ======================= HEADER ======================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent; /* Por defecto transparente */
}

/* Estado del header cuando se hace scroll */
.header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 75px;
    transition: all 0.3s ease;
    /* No aplicamos filtros aquí para que se vea el color original */
}

/* Color de los enlaces de navegación */
.nav-link {
    color: #00835a/* Texto blanco por defecto sobre el hero */
    font-weight: 500;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

/* Color de los enlaces de navegación cuando se hace scroll (fondo blanco) */
.header.scrolled .nav-link {
    color: #00835a; /* Texto verde sobre fondo blanco */
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.cta-button-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button-header:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(234, 84, 29, 0.4);
}

.hamburger { 
    display: none; 
    color: var(--primary-color); /* Color del icono hamburguesa sobre el hero */
    font-size: 1.8rem; /* Tamaño un poco más grande */
    cursor: pointer;
    z-index: 1001; /* Asegura que esté por encima del menú desplegado */
    transition: color 0.3s ease;
}

.header.scrolled .hamburger { 
    color: var(--primary-color); /* Color del icono hamburguesa cuando se hace scroll */
}


/* ======================= MENÚ MÓVIL (OFF-CANVAS) ======================= */
.nav-menu {
    display: flex;
    gap: 35px;
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%; /* Oculto por defecto */
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--white);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s ease-in-out; /* Animación de deslizamiento */
        padding-top: var(--header-height); /* Espacio para el header si se desea */
        z-index: 999; /* Por debajo del hamburger */
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0; /* Visible */
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link, .nav-menu.active .nav-link { /* Enlaces siempre primary color en móvil */
        color: var(--primary-color); 
        font-size: 1.3rem;
        display: block; /* Para que ocupen todo el ancho y sea fácil hacer click */
        padding: 15px 0;
    }

    .nav-link.active, .nav-link:hover {
        color: var(--secondary-color);
        background-color: var(--bg-light); /* Un ligero fondo al seleccionar */
    }

    /* Elementos ocultos en móvil */
    .cta-button-header { display: none; }
    .hamburger { display: block; } /* Mostrar hamburguesa en móvil */
}


/* ======================= HERO SECTION ======================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 131, 90, 0.384);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* --- Booking Form --- */
.booking-form {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.form-tabs {
    display: flex;
    background: var(--bg-light);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tab-link {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tab-link.active {
    background: var(--white);
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.tab-pane {
    display: none;
    padding: 30px;
    align-items: center;
    gap: 15px;
}

.tab-pane.active {
    display: flex;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.cta-button-form {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

/* ======================= FEATURES & VEHICLES SECTION ======================= */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 80px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--heading-color);
    margin-bottom: 10px;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.vehicle-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-item:hover img {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.vehicle-item h4 {
    color: var(--heading-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}


/* ======================= DESTINATIONS ======================= */
.destinations { padding: 80px 0; }
.destination-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.dest-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
}
.dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dest-card:hover img {
    transform: scale(1.1);
}
.dest-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: var(--white);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.dest-card-content h3 {
    color: var(--white);
    margin-bottom: 5px;
}

/* ======================= TESTIMONIALS ======================= */
.testimonials { padding: 80px 0; }
.testimonial-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}
.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.testimonial-author h4 {
    color: var(--primary-color);
    margin: 0;
}
.testimonials-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* ======================= FOOTER ======================= */
.footer {
    background: var(--primary-color);
    color: #e0e0e0;
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}
.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    /* Quitamos el filtro invertido para que el logo se vea a color si es el caso */
}
.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: var(--secondary-color);
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    margin-right: 10px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

/* ======================= ESTILOS PÁGINAS INTERNAS ======================= */


.page-hero {
    padding: 100px 0;
    margin-top: var(--header-height);
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    color: var(--white);
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #25d3664f;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.about-section, .mission-vision-section, .services-detail-section {
    padding: 80px 0;
}

.about-grid, .mission-vision-grid, .service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.service-detail-item {
    margin-bottom: 80px;
}

.section-title-left {
    text-align: left;
    margin-bottom: 30px;
}

.section-title-left span {
    color: var(--secondary-color);
    font-weight: 600;
}

.section-title-left h2 {
    font-size: 2.2rem;
    color: var(--heading-color);
    text-align: left;
}
.section-title-left h2::after {
    display: none;
}

.about-image img, .service-detail-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

.mission-vision-item {
    text-align: center;
    padding: 30px;
}
.mission-vision-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.mission-vision-item h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
}

.service-detail-item:last-child { margin-bottom: 0; }
.service-detail-item.reverse .service-detail-image { order: 2; }
.service-detail-text h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 20px;
}
.service-detail-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.service-detail-text ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.service-detail-text ul i {
    color: var(--primary-color);
    margin-right: 10px;
}











/* ======================= BOTÓN FLOTANTE DE WHATSAPP ======================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 16px;
}


/* ======================= ESTILOS PÁGINA DE CONTACTO ======================= */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info-item h4 {
    color: var(--heading-color);
    margin-bottom: 5px;
}

.contact-info-item p {
    margin: 0;
    line-height: 1.6;
}

.contact-form-wrapper h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 131, 90, 0.2);
}

.contact-form .cta-button-form {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.map-section {
    padding: 0;
    line-height: 0; /* Elimina espacio en blanco debajo del mapa */
}

/* --- Ajustes responsivos para la página de contacto --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================= RESPONSIVE ======================= */

/* Para pantallas más pequeñas (992px y menos) */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    
    .form-tabs { flex-direction: column; }
    .tab-pane { 
        flex-direction: column; 
        padding: 20px; /* Reducir padding en móvil */
        gap: 10px;
    }
    .form-group { width: 100%; }
    .cta-button-form { width: 100%; }

    .destination-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .page-hero h1 { font-size: 2.5rem; }
    .about-grid, .mission-vision-grid, .service-detail-item {
        grid-template-columns: 1fr;
        gap: 30px; /* Reducir el gap en móvil */
    }
    .service-detail-item.reverse .service-detail-image { order: 0; }
    .about-text, .service-detail-text { text-align: center; }
    .section-title-left { text-align: center; }
    .section-title-left h2 { text-align: center; font-size: 2rem; }
}

/* Para pantallas aún más pequeñas (768px y menos) */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    
    .features-grid, .destination-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center;} /* Centrar footer en móvil */
    .footer-col ul { padding: 0; } /* Quitar padding de listas en footer móvil */
    .social-links { justify-content: center; display: flex; } /* Centrar iconos sociales */

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    .whatsapp-float i {
        margin-top: 13px;
    }

    /* Ajustes específicos para el header en pantallas muy pequeñas */
    .navbar {
        height: 60px; /* Reducir altura del header */
    }
    .logo img {
        height: 35px; /* Reducir tamaño del logo */
    }
    .hamburger {
        font-size: 1.5rem; /* Ajustar tamaño del hamburguesa */
    }
}