/* =====================================================
   TM VIAJES - ESTILOS PRINCIPALES
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #123b75;
    background: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1350px;
    margin: 0 auto;
}


/* =====================================================
   CABECERA
   ===================================================== */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 18px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    width: 190px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex: 1;
}

.nav a {
    color: #003f91;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: #e52b23;
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #e52b23;
    border-radius: 3px;
}

.btn-contacto {
    background: #e52b23;
    color: #ffffff;
    padding: 14px 25px;
    border-radius: 7px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-contacto:hover {
    background: #c91f19;
    transform: translateY(-2px);
}


/* =====================================================
   HERO
   ===================================================== */

.hero {
    min-height: 650px;
    height: 78vh;
    position: relative;

    background-image: url("../images/hero-avion.jpg");
    background-size: cover;
    background-position: center center;

    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 92, 180, 0.30) 0%,
        rgba(0, 130, 220, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    width: 440px;
    padding-top: 80px;
}

.hero-text h1 {
    color: #ffffff;
    font-size: clamp(48px, 5vw, 78px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-text h1 span {
    color: #e52b23;
    display: block;
}

.hero-text p {
    color: #ffffff;
    font-size: 21px;
    line-height: 1.5;
    margin-top: 25px;
    max-width: 430px;
}

.hero-line {
    width: 55px;
    height: 4px;
    background: #e52b23;
    margin-top: 25px;
}


/* =====================================================
   BUSCADOR
   ===================================================== */

.flight-section {
    position: relative;
    margin-top: -95px;
    z-index: 10;
    padding-bottom: 70px;
}

.flight-section .container {
    max-width: 1350px;
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
}

.section-title h2 {
    color: #0b4da2;
    font-size: 38px;
    font-weight: 800;
}

.section-title p {
    color: #666666;
    font-size: 17px;
    margin-top: 8px;
}

.title-icon {
    font-size: 28px;
    color: #0b4da2;
    margin-right: 8px;
}

.flight-search {
    background: #ffffff;
    min-height: 220px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 55, 110, 0.18);
    padding: 25px;
    overflow: hidden;
    text-align: center;
}

.flight-search p {
    color: #0b4da2;
    font-size: 22px;
    font-weight: 700;
}


/* =====================================================
   DESTINOS
   ===================================================== */

.destinations {
    padding: 80px 0 100px;
    background: #ffffff;
}

.destinations .section-title {
    margin-bottom: 40px;
}

.destinations .section-title h2 {
    font-size: 40px;
}

.title-line {
    width: 55px;
    height: 4px;
    background: #e52b23;
    margin: 12px auto;
    border-radius: 5px;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.destination-card {
    position: relative;
    height: 330px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.destination-image {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    transition: transform 0.5s ease;
}

.destination-card:hover .destination-image {
    transform: scale(1.06);
}

.paraguay-image {
    background-image: url("../images/paraguay.jpg");
}

.argentina-image {
    background-image: url("../images/argentina.jpg");
}

.espana-image {
    background-image: url("../images/espana.jpg");
}

.destination-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.05) 70%
    );
}

.destination-content {
    position: absolute;
    left: 30px;
    bottom: 25px;
    z-index: 2;
}

.destination-content h3 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 15px;
}

.btn-destination {
    display: inline-block;
    background: #e52b23;
    color: #ffffff;
    padding: 11px 22px;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-destination:hover {
    background: #c91f19;
}


/* =====================================================
   CONTACTO
   ===================================================== */

.contact-section {
    padding: 90px 20px;
    text-align: center;
    background: #f4f8fc;
}

.contact-section h2 {
    color: #0b4da2;
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-section p {
    color: #666666;
    font-size: 18px;
    margin-bottom: 30px;
}


/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: #063b7c;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
}

.footer p {
    font-size: 14px;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 14px;
    }

    .logo {
        width: 150px;
    }

    .hero-text {
        width: 380px;
    }

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

}


/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 700px) {

    .header {
        position: absolute;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: 160px;
    }

    .nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 22px;
        padding-bottom: 5px;
    }

    .nav a {
        white-space: nowrap;
    }

    .btn-contacto {
        padding: 11px 17px;
    }

    .hero {
        min-height: 720px;
        height: auto;
        padding: 150px 0 120px;
        background-position: center;
    }

    .hero-text {
        width: 100%;
        max-width: 500px;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .flight-section {
        margin-top: -60px;
    }

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

    .destination-card {
        height: 300px;
    }

    .section-title h2,
    .destinations .section-title h2 {
        font-size: 32px;
    }

}


/* =====================================================
   MÓVIL PEQUEÑO
   ===================================================== */

@media (max-width: 450px) {

    .hero-text h1 {
        font-size: 43px;
    }

    .header-container {
        gap: 15px;
    }

    .btn-contacto {
        display: none;
    }

}