/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-12 { width: 100%; }
.col-md-6 { width: 50%; }
@media (max-width: 768px) {
    .col-md-6 { width: 100%; }
}

/* Animaciones */
.section-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.site-header {
    background-color: #073690;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.4s ease;
}

.site-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__branding .logo {
    height: 70px;
    transition: transform 0.4s ease;
}

.site-header:hover .logo {
    transform: scale(1.05);
}

.nav__menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav__menu-item {
    margin-left: 30px;
}

.nav__menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.4s ease;
}

.nav__menu-link:hover {
    color: #ff7f00;
}

.nav__menu--buttons .login {
    color: #ffffff;
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.4s ease;
}

.nav__menu--buttons .login:hover {
    color: #ff7f00;
}

.btn {
    background-color: #ff7f00;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.4s ease;
}

.btn:hover {
    background-color: #e06e00;
    transform: translateY(-2px);
}

.c-header {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.c-heading {
    font-size: 44px;
    font-weight: bold;
    color: #073690;
}

.c-subheading {
    font-size: 16px;
    color: #666;
    display: block;
    margin-bottom: 10px;
    transition: color 0.4s ease;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-background {
    background-image: url('../images/18.jfif'); /* Cambia esta ruta a tu imagen */
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}









.dropdown-content {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 5px;
    z-index: 1000;
    display: none;
}

#dropdownPassengers.active .dropdown-content {
    display: block;
}

.dropdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0;
}

.booking-form {
  max-width: 100%;
  padding: 24px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  overflow-x: hidden; /* 👈 quita el scroll */
  width: 100%;
  box-sizing: border-box;
}



.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px 12px;
  gap: 8px;
  flex: 1; /* 🔥 clave: que todos los campos compartan espacio */
  min-width: 150px;
}

.input-group i {
  color: #666;
  font-size: 16px;
}

.input-group input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 15px;
}

.search-btn {
  background-color: #000;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
}

.search-btn:hover {
  background-color: #333;
}

.input-group,
.search-btn {
  flex: 1 1 0; /* permite crecer pero también ajustar */
  min-width: 0; /* 🔥 muy importante para prevenir desborde en flex */
}







/* Dropdown Pasajeros */
.dropdown-wrapper {
    position: relative;
    flex: 1;
}

.trigger-box {
    background: #f0f0f0;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.styled-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    width: 360px;
    margin-top: 10px;
    color: #333;
}

.dropdown-wrapper.active .styled-panel {
    display: block;
}

.row-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.passenger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-label {
    display: flex;
    gap: 10px;
    align-items: center;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls button {
    padding: 4px 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.btn-done {
    margin-top: 20px;
    width: 100%;
    background: black;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
}

/* Clients Section (Carrusel) */
.clients {
    padding: 50px 0;
    background-color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo {
    height: 50px;
    margin: 0 20px;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.client-logo:hover {
    filter: grayscale(0);
}

/* Planes Section */
.plans {
    padding: 50px 0;
    background-color: #ffffff;
    text-align: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.plan-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.plan-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.plan-content {
    padding: 20px;
}

.plan-content h3 {
    font-size: 22px;
    color: #073690;
    margin-bottom: 10px;
}

.plan-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.plan-content .btn {
    margin-top: 10px;
    background-color: #073690;
}

.plan-content .btn:hover {
    background-color: #052a5e;
}

/* Servicios, Innovación y Beneficios */
.services, .innovation, .benefits {
    padding: 50px 0;
    background-color: #f0f5fb;
    text-align: center;
}

.services p {
    max-width: 800px;
    margin: 20px auto;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ff7f00;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-image img:hover {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
    text-align: left;
}

.service-content h3 {
    font-size: 22px;
    color: #073690;
    margin-bottom: 10px;
}

.service-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    font-size: 20px;
    color: #ff7f00;
    text-decoration: none;
    transition: color 0.4s ease;
}

.service-link:hover {
    color: #e06e00;
}

/* About Section */
.about {
    padding: 50px 0;
    background-color: #f0f5fb;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ff7f00;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-icon {
    font-size: 40px;
    color: #073690;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 22px;
    color: #073690;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 16px;
    color: #666;
}

.about-cta {
    margin-top: 40px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #073690;
    padding: 50px 0 20px;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer h4, .footer h5 {
    font-size: 18px;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.4s ease;
}

.footer a:hover {
    color: #ff7f00;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid #ffffff;
    padding-top: 20px;
}

.socials a {
    margin-left: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.4s ease;
}

.socials a:hover {
    color: #ff7f00;
}

.subscribe-section {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #06295c;
    border-radius: 8px;
}

.subscribe-section form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.subscribe-section input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 250px;
}

.subscribe-section button {
    background: #ffb400;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.subscribe-section button:hover {
    background: #ffaa00;
}

#subscribeMessage {
    color: white;
    margin-top: 10px;
}

/* Mapas y Modal */
.plan-map, #map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

#map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 400px;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content .btn {
    width: 100%;
    background-color: #073690;
}

.modal-content .btn:hover {
    background-color: #052a5e;
}

/* Responsive Design */
@media (max-width: 900px) {
    .site-header {
        padding: 10px 15px;
    }
    .site-header__container {
        flex-direction: column;
        text-align: center;
    }
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #073690;
        padding: 15px 0;
        text-align: center;
        border-top: 2px solid #ffb400;
    }
    .nav__menu {
        flex-direction: column;
    }
    .nav__menu-item {
        margin: 10px 0;
    }
    .menu-toggle {
        display: block;
        font-size: 28px;
        color: white;
        cursor: pointer;
        background: none;
        border: none;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    .nav.active {
        display: flex;
    }
    .hero {
        text-align: center;
        padding: 80px 20px 30px;
    }
    .hero .row {
        flex-direction: column-reverse;
        align-items: center;
    }
    .hero__col-text {
        padding: 20px;
    }
    .hero__col-image img {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        flex-direction: column;
        margin-top: 20px;
    }
    .nav__menu-item {
        margin: 10px 0;
    }
    .hero {
        padding: 80px 0 30px;
        text-align: center;
    }
    .hero .row {
        flex-direction: column;
    }
    
    .services-grid, .about-grid, .plans-grid {
        grid-template-columns: 1fr;
    }
    .plan-card {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .carousel-track {
        animation: scroll 10s linear infinite;
    }
    #map {
        height: 300px;
    }
}

/* Aplazar animaciones */
.section-fade:nth-child(odd) {
    animation-delay: 0.2s;
}

.section-fade:nth-child(even) {
    animation-delay: 0.4s;
}