/* ============================================
   ECUAVIAJE — Hero Section
   ============================================ */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--black);
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.45;
    filter: brightness(0.7);
    transition: transform 8s ease;
}

.hero:hover .hero__bg {
    transform: scale(1.03);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 23, 32, 0.3) 0%,
        rgba(20, 23, 32, 0.5) 40%,
        rgba(20, 23, 32, 0.75) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 850px;
    padding: var(--sp-xl);
    animation: fadeInUp 0.8s ease forwards;
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: var(--fw-black);
    color: var(--white);
    line-height: var(--lh-tight);
    margin-bottom: var(--sp-md);
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero__subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.75);
    font-weight: var(--fw-regular);
    max-width: 600px;
    margin: 0 auto var(--sp-2xl);
    line-height: var(--lh-relaxed);
}

/* === Search Box === */
.hero__search {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--shadow-hero);
    position: relative;
}

.hero__search-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 0.5rem 1rem;
    position: relative;
}

.hero__search-group:first-child {
    border-right: 1px solid var(--gray-lighter);
}

.hero__search-group i {
    color: var(--gray);
    font-size: var(--fs-md);
    flex-shrink: 0;
}

.hero__search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: var(--fs-base);
    color: var(--black);
    background: transparent;
}

.hero__search-input::placeholder {
    color: var(--gray-light);
    font-weight: var(--fw-regular);
}

.hero__search-btn {
    flex-shrink: 0;
    background: var(--primary);
    color: var(--black);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    padding: 0.85rem 2.5rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.hero__search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        align-items: flex-start; /* Evita que flexbox empuje el contenido hacia arriba si es muy alto */
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero__content {
        padding-top: 20px; 
    }

    .hero__title {
        font-size: var(--fs-3xl);
    }

    .hero__subtitle {
        font-size: var(--fs-base);
    }

    .hero__search {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: var(--sp-sm);
        gap: 0;
    }

    .hero__search-group {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .hero__search-group:first-child {
        border-right: none;
        border-bottom: 1px solid var(--gray-lighter);
    }

    .hero__search-btn {
        width: 100%;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: var(--fs-2xl);
    }
    .hero__content {
        padding: var(--sp-md);
    }
}

/* === Hero Stats === */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2xl);
    margin-top: var(--sp-3xl);
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-stat-item i {
    font-size: 2.2rem;
    color: var(--primary);
}

.hero-stat-item__info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero-stat-item__info strong {
    font-size: 2rem;
    font-weight: var(--fw-black);
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-stat-item__info span {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--fw-medium);
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

@media (max-width: 992px) {
    .hero-stats {
        gap: var(--sp-xl);
    }
}

@media (max-width: 768px) {
    .hero-stats {
        margin-top: var(--sp-xl);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--sp-lg);
    }
    
    .hero-stat-item {
        width: 100%; /* Una por línea */
        justify-content: center;
        gap: 15px;
    }
    
    .hero-stat-item i {
        font-size: 2rem;
    }
    
    .hero-stat-item__info {
        text-align: center;
    }

    .hero-stat-item__info strong {
        font-size: 1.8rem;
    }
}
