/* Grupo AMX Virtual — homepage redesign (2026) */

.home-page {
    --amx-navy: #020c41;
    --amx-blue: #030d75;
    --amx-pink: #fa0073;
    --amx-surface: #f4f6fb;
    --amx-radius: 1.25rem;
    background: var(--amx-surface);
}

/* —— Hero —— */
.home-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 0 5rem;
    overflow: hidden;
    color: #fff;
}
.home-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(2, 12, 65, 0.88) 0%, rgba(3, 13, 117, 0.72) 42%, rgba(2, 12, 65, 0.9) 100%),
        url('../images/gallery/GALERYAMX3.png') center 35% / cover no-repeat;
    transform: scale(1.02);
}
.home-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}
.home-hero__glow {
    position: absolute;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.home-hero__glow--pink {
    top: 10%;
    right: -5%;
    background: rgba(250, 0, 115, 0.35);
}
.home-hero__glow--blue {
    bottom: 5%;
    left: -10%;
    background: rgba(59, 130, 246, 0.25);
}
.home-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}
.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1.1rem;
    margin-bottom: 2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}
.home-hero__badge i { color: var(--amx-pink); }
.home-hero__logo {
    width: min(100%, 24rem);
    height: auto;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.4));
}
.home-hero__lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 38rem;
    margin: 0 auto 2rem;
    font-weight: 400;
}
@media (min-width: 768px) {
    .home-hero__lead { font-size: 1.1875rem; }
}
.home-hero__lead strong { color: #fff; font-weight: 600; }
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.home-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-btn > * {
    position: relative;
    z-index: 1;
}
.home-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 0;
    pointer-events: none;
}
.home-btn:hover::before {
    transform: translateX(100%);
}
.home-btn:active { transform: scale(0.98); }
.home-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amx-pink) 0%, #e91e6e 100%);
    box-shadow: 0 8px 28px rgba(250, 0, 115, 0.45);
}
.home-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(250, 0, 115, 0.3);
    color: #fff;
}
.home-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}
.home-btn--ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 24px rgba(2, 12, 65, 0.22);
    color: #fff;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 42rem;
    margin: 0 auto;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
@media (min-width: 640px) {
    .home-stats { grid-template-columns: repeat(4, 1fr); }
}
.home-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    position: relative;
}
@media (min-width: 640px) {
    .home-stat:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background: rgba(255, 255, 255, 0.12);
    }
}
.home-stat__value {
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.88) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (min-width: 768px) {
    .home-stat__value { font-size: 1.75rem; }
}
.home-stat__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.25rem;
}
.home-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.625rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}
.home-hero__scroll:hover { color: var(--amx-pink); }
.home-hero__scroll i { animation: home-bounce 2s ease infinite; }
@keyframes home-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* —— Section shell —— */
.home-section {
    padding: 5.5rem 0;
    position: relative;
}
.home-section--light {
    background: #fff;
}
.home-section--muted {
    background: var(--amx-surface);
}
.home-section__head {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto 2.75rem;
    padding: 0 1.5rem;
}
.home-section__eyebrow {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amx-pink);
    margin-bottom: 0.7rem;
}
.home-section__title {
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 2.65rem);
    font-weight: 700;
    color: var(--amx-blue);
    letter-spacing: -0.03em;
    margin-bottom: 0.7rem;
    line-height: 1.15;
}
.home-section__desc {
    font-size: 1.015rem;
    line-height: 1.65;
    color: #64748b;
    margin: 0 auto;
    max-width: 34rem;
}

/* —— Airline cards —— */
.home-airlines.home-section--light {
    background: #fff;
    padding-top: 5rem;
    padding-bottom: 5.5rem;
}
.home-va-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .home-va-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .home-va-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}
.home-va-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    background: #f8f9fc;
    border-radius: 1.35rem;
    border: 1px solid rgba(3, 13, 117, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.home-va-card:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: rgba(3, 13, 117, 0.12);
    box-shadow: 0 16px 36px rgba(2, 12, 65, 0.08);
}
.home-va-card__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.home-va-card__tag--regional,
.home-va-card__tag--mainline {
    color: var(--amx-blue);
}
.home-va-card__tag--history {
    color: var(--amx-pink);
}
.home-va-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 12.5rem;
    padding: 2rem 1.75rem;
    background: #fff;
    border-bottom: 1px solid rgba(3, 13, 117, 0.05);
}
.home-va-card__media img {
    max-height: 8.5rem;
    max-width: min(100%, 15rem);
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1024px) {
    .home-va-card__media {
        min-height: 14rem;
        padding: 2.4rem 2rem;
    }
    .home-va-card__media img {
        max-height: 10rem;
        max-width: min(100%, 17rem);
    }
}
.home-va-card:hover .home-va-card__media img {
    transform: scale(1.05);
}
.home-va-card__body {
    padding: 1.35rem 1.4rem 1.45rem;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.home-va-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--amx-blue);
    letter-spacing: -0.02em;
    margin: 0 0 0.55rem;
    min-height: 1.55em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-va-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
    text-align: center;
    flex: 1 1 auto;
    margin: 0 0 1.2rem;
    width: 100%;
    max-width: 21rem;
    min-height: 4.8em;
}
.home-va-card__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: var(--amx-blue);
    border-radius: 0.8rem;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-va-card__link > * {
    position: relative;
    z-index: 1;
}
.home-va-card__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 0;
    pointer-events: none;
}
.home-va-card__link:hover::before {
    transform: translateX(100%);
}
.home-va-card__link:hover {
    transform: translateY(-2px);
    background: #020c41;
    box-shadow: 0 10px 22px rgba(3, 13, 117, 0.25);
    color: #fff;
}
.home-va-card__link--pink {
    background: var(--amx-pink);
}
.home-va-card__link--pink:hover {
    background: #e00068;
    box-shadow: 0 10px 22px rgba(250, 0, 115, 0.28);
}

/* —— Why fly with us —— */
.home-why {
    position: relative;
    overflow: hidden;
    background: #f7f8fb;
    color: var(--amx-blue);
    padding-top: 5.75rem;
    padding-bottom: 5.75rem;
}
.home-why__head {
    margin-bottom: 1.35rem;
}
.home-why__head .home-section__desc {
    text-align: center;
    color: #6b7488;
}
.home-why__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 0.85rem;
    max-width: 40rem;
    margin: 0 auto 2.75rem;
    padding: 0 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}
.home-why__meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fa0073;
    opacity: 0.7;
    flex-shrink: 0;
}
.home-why__panel {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.home-why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}
@media (min-width: 700px) {
    .home-why__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
    }
}
@media (min-width: 1100px) {
    .home-why__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.15rem;
    }
}
.home-why__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.85rem 1.4rem 1.9rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(3, 13, 117, 0.06);
    border-radius: 1.35rem;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.home-why__item:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: rgba(3, 13, 117, 0.1);
    box-shadow: 0 18px 40px rgba(2, 12, 65, 0.07);
}
.home-why__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    color: #fa0073;
    background: transparent;
    border: 1.5px solid rgba(250, 0, 115, 0.28);
    font-size: 0.95rem;
    line-height: 1;
}
.home-why__icon i {
    display: block;
    line-height: 1;
    width: 1em;
    text-align: center;
}
.home-why__item-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    color: var(--amx-blue);
    margin: 0 0 0.5rem;
    line-height: 1.25;
    text-align: center;
    width: 100%;
}
.home-why__item-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #6b7488;
    margin: 0 auto;
    max-width: 16.5rem;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: center;
    -webkit-text-align-last: center;
}
@media (prefers-reduced-motion: reduce) {
    .home-why__item:hover,
    .home-va-card:hover {
        transform: none;
    }
}

/* Reveal styles live in public/css/site-effects.css (site-wide). */

/* —— CTA band —— */
.home-cta-band {
    width: calc(100% - 3rem);
    max-width: 72rem;
    margin: 3rem auto 0;
    padding: 2.75rem 2rem;
    border-radius: 1.35rem;
    background: linear-gradient(128deg, var(--amx-navy) 0%, var(--amx-blue) 55%, #05124a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(2, 12, 65, 0.2);
}
.home-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(250, 0, 115, 0.18), transparent 55%);
    pointer-events: none;
}
.home-cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.home-cta-band h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.home-cta-band p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 auto 1.5rem;
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
}

/* —— Shared recruitment CTA (AMX + History) — Inter —— */
.amx-cta-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 2.5rem 1.5rem 5rem;
    background: #fff;
}
.amx-cta-wrap .amx-cta {
    max-width: 56rem;
    margin: 0 auto;
}
.history-cta-wrap {
    padding-top: 1rem;
    padding-bottom: 4.5rem;
    background: #fff;
    max-width: none;
}
.history-cta-wrap .amx-cta {
    max-width: 56rem;
    margin: 0 auto;
}
.amx-cta {
    position: relative;
    overflow: hidden;
    padding: 3.25rem 1.75rem 3rem;
    border-radius: 1.5rem;
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    color: #fff;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(250, 0, 115, 0.22), transparent 55%),
        linear-gradient(145deg, #020c41 0%, #030d75 52%, #06155c 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 56px rgba(2, 12, 65, 0.22);
}
.amx-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 34rem;
    margin: 0 auto;
}
.amx-cta__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.25rem;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.amx-cta__status--open { color: #34d399; }
.amx-cta__status--open i { font-size: 0.9rem; }
.amx-cta__status--closed { color: rgba(255, 255, 255, 0.55); }
.amx-cta__title {
    margin: 0 0 0.9rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.035em;
    color: #fff;
}
.amx-cta__title span { color: #fa0073; }
.amx-cta__text {
    margin: 0 0 1.75rem;
    max-width: 28rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
    text-align: justify;
    text-align-last: center;
    -webkit-text-align-last: center;
}
.amx-cta__btn { font-family: 'Inter', system-ui, sans-serif; }
.amx-cta__chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.35rem;
    margin: 1.75rem 0 0;
    padding: 1.35rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}
.amx-cta__chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}
.amx-cta__chips i {
    color: #34d399;
    font-size: 0.7rem;
}
@media (max-width: 640px) {
    .amx-cta { padding: 2.5rem 1.25rem 2.25rem; border-radius: 1.25rem; }
    .amx-cta__title { font-size: clamp(1.55rem, 7vw, 1.9rem); }
}

/* —— Partners —— */
.home-partners {
    position: relative;
    padding: 5rem 0 5.5rem;
    background: #fff;
    overflow: hidden;
    border-top: 1px solid rgba(3, 13, 117, 0.06);
}
.home-partners__head {
    max-width: 38rem;
}
.home-partners .partners-carousel-wrap {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    padding: 1.5rem 0 0.5rem;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.home-partners .partners-track {
    display: flex;
    gap: 1rem;
    animation: partners-scroll 42s linear infinite;
    width: max-content;
    will-change: transform;
}
.home-partners .partners-track .partner-item {
    flex-shrink: 0;
    width: 11.5rem;
}
.home-partners .partner-item__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 6.5rem;
    padding: 1.15rem 1.25rem;
    background: #f8f9fc;
    border-radius: 1rem;
    border: 1px solid rgba(3, 13, 117, 0.06);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.home-partners .partner-item__link:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: rgba(3, 13, 117, 0.12);
}
.home-partners .partner-item__link img {
    max-height: 3.75rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.35);
    opacity: 0.8;
    transition: filter 0.25s ease, opacity 0.25s ease;
}
.home-partners .partner-item__link:hover img {
    filter: grayscale(0);
    opacity: 1;
}
@keyframes partners-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .home-partners .partners-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        max-width: 72rem;
        margin: 0 auto;
        justify-content: center;
        padding: 0 1.5rem;
        gap: 1rem;
    }
}
