/* SKY Project – portada. Base de estilos del index original y adaptación visual. */
:root {
    --sky-purple: #54147a;
    --sky-purple-dark: #3b0d57;
    --sky-magenta: #c81070;
    --sky-bg: #f6f7fb;
    --sky-text: #1f2430;
    --sky-muted: #667085;
    --sky-border: #dce0e8;
    --sky-white: #ffffff;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-card: 0 18px 45px rgba(31, 14, 58, 0.16);
    --shadow-drop: 0 14px 32px rgba(24, 18, 43, 0.18);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--sky-bg);
    color: var(--sky-text);
    min-height: 100vh;
}

.topbar {
    background: var(--sky-white);
    border-bottom: 1px solid #eceef4;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    background: linear-gradient(135deg, var(--sky-purple), var(--sky-magenta));
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 10px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-links a {
    color: var(--sky-text);
    text-decoration: none;
}

.nav-links a:hover { color: var(--sky-purple); }

.hero {
    background: linear-gradient(125deg, #3c0d5c 0%, #63188f 52%, #b51773 100%);
    color: #fff;
    padding: 46px 20px 110px;
}

.hero-inner { max-width: 1180px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 680px;
    margin-bottom: 10px;
}

.hero p { font-size: 1rem; opacity: 0.9; max-width: 560px; }

.search-wrapper {
    max-width: 1180px;
    margin: -76px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.search-card {
    background: var(--sky-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px 26px 26px;
    border: 1px solid rgba(84, 20, 122, 0.08);
}

.trip-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trip-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--sky-border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sky-muted);
    background: #fff;
}

.trip-tab input { accent-color: var(--sky-purple); }

.trip-tab.active {
    border-color: var(--sky-purple);
    color: var(--sky-purple);
    background: #f5eefb;
}

.search-grid {
    display: grid;
    grid-template-columns: 1.35fr auto 1.35fr 1fr 1fr 1.05fr;
    gap: 12px;
    align-items: end;
}

.field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sky-muted);
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--sky-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-box:focus-within {
    border-color: var(--sky-purple);
    box-shadow: 0 0 0 3px rgba(84, 20, 122, 0.12);
}

.input-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sky-text);
    font-family: inherit;
}

.input-box input::placeholder { color: #9aa3b2; font-weight: 500; }

.iata-pill {
    flex-shrink: 0;
    margin-right: 10px;
    background: #f2e8fa;
    color: var(--sky-purple);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 7px;
    display: none;
}

.iata-pill.visible { display: inline-block; }

.clear-btn {
    background: transparent;
    border: none;
    color: #98a2b3;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    display: none;
}

.clear-btn.visible { display: inline-flex; }
.clear-btn:hover { color: var(--sky-magenta); }

.swap-btn {
    width: 42px;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid var(--sky-border);
    background: #fff;
    color: var(--sky-purple);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.swap-btn:hover {
    background: #f5eefb;
    border-color: var(--sky-purple);
    transform: rotate(180deg);
}

/* Dropdown de ciudades */
.ac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 310px;
    max-height: 310px;
    overflow-y: auto;
    background: var(--sky-white);
    border: 1px solid #e4e7ef;
    border-radius: 14px;
    box-shadow: var(--shadow-drop);
    z-index: 100;
    display: none;
    padding: 6px;
}

.ac-dropdown.open { display: block; }

.ac-status {
    padding: 14px 12px;
    font-size: 0.88rem;
    color: var(--sky-muted);
    text-align: center;
}

.ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.ac-item:hover,
.ac-item.active { background: #f5eefb; }

.ac-main { min-width: 0; }

.ac-city {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--sky-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-airport {
    font-size: 0.78rem;
    color: var(--sky-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-iata {
    flex-shrink: 0;
    background: #efe3f8;
    color: var(--sky-purple);
    font-weight: 800;
    font-size: 0.78rem;
    padding: 5px 9px;
    border-radius: 8px;
}

.ac-highlight {
    color: var(--sky-magenta);
    background: rgba(200, 16, 112, 0.12);
    border-radius: 3px;
    padding: 0 1px;
}

/* Pasajeros */
.pax-trigger {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 13px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sky-text);
    cursor: pointer;
    font-family: inherit;
}

.pax-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 270px;
    background: #fff;
    border: 1px solid #e4e7ef;
    border-radius: 14px;
    box-shadow: var(--shadow-drop);
    padding: 16px;
    z-index: 100;
    display: none;
}

.pax-panel.open { display: block; }

.pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.pax-row + .pax-row { border-top: 1px solid #f0f2f6; }
.pax-info strong { display: block; font-size: 0.9rem; }
.pax-info span { font-size: 0.76rem; color: var(--sky-muted); }

.pax-ctrl { display: flex; align-items: center; gap: 10px; }

.pax-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid var(--sky-border);
    background: #fff;
    color: var(--sky-purple);
    font-weight: 800;
    cursor: pointer;
}

.pax-count { min-width: 18px; text-align: center; font-weight: 700; }

.search-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.form-error { color: #c81048; font-size: 0.88rem; font-weight: 600; min-height: 20px; }

.btn-search {
    background: linear-gradient(135deg, var(--sky-magenta), #e01b84);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 34px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(200, 16, 112, 0.28);
}

.field.disabled { opacity: 0.48; pointer-events: none; }

@media (max-width: 1040px) {
    .search-grid { grid-template-columns: 1fr 42px 1fr; }
}

@media (max-width: 680px) {
    .nav-links { display: none; }
    .search-grid { grid-template-columns: 1fr; }
    .swap-btn { width: 100%; height: 38px; }
    .ac-dropdown { min-width: 100%; }
    .btn-search { width: 100%; }
}

/* Portada promocional */
:root {
    --sky-purple: #800080;
    --sky-purple-dark: #4e0759;
    --sky-magenta: #800080;
    --sky-bg: #f7f7f7;
    --sky-text: #32343b;
    --sky-border: #a6a6a6;
    --sky-green: #37d000;
    --page-width: 1312px;
}
html { scroll-padding-top: 82px; }
body { font-size: 14px; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #55ce24; outline-offset: 3px; }
[hidden] { display: none !important; }
.topbar { background: var(--sky-purple-dark); color: white; border: 0; }
.topbar-inner { max-width: 1920px; min-height: 55px; padding: 9px clamp(16px,3.2vw,62px); gap: 36px; }
.brand-logo { background: none; padding: 0; border-radius: 0; letter-spacing: -2px; line-height: 1; flex: 0 0 auto; }
.brand-word { font-size: 32px; font-weight: 800; color: #fff; }
.brand-k { color: #45d624; }
.nav-links { flex: 1; gap: clamp(15px,2.1vw,42px); font-size: 14px; font-weight: 500; }
.nav-links a, .nav-links a:hover { color: #fff; }
.nav-links a:hover { text-decoration: underline; }
.nav-inactive { color: rgba(255,255,255,.85); cursor: default; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: clamp(12px,2vw,30px); }
.demo-mark { font-size: 11px; font-weight: 600; color: #fff; border: 1px solid #d2b2d9; border-radius: 4px; padding: 4px 7px; white-space: nowrap; }
.locale { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.announcement-banner { min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 16px; background: #eee; font-size: 13px; font-weight: 600; }
.hero { min-height: 400px; padding: 89px 24px 88px; background: #385e63 url('PATRON_3_SVG_MAXIMISTA.jpg') center center / cover no-repeat; color: var(--sky-text); }
.search-wrapper { width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 0; position: relative; z-index: 20; border-radius: 16px; box-shadow: 0 12px 35px rgba(0,0,0,.15); background: var(--sky-purple-dark); }
.product-tabs { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 16px 20px; min-height: 62px; flex-wrap: wrap; }
.product-tab { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid white; color: white; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.product-tab.active { border-color: var(--sky-green); background: var(--sky-green); color: #172515; }
.product-tab.inactive { opacity: .9; cursor: default; }
.search-card { border: 0; border-top: 5px solid var(--sky-green); border-radius: 13px; padding: 24px 16px 16px; background: #f8f8f8; box-shadow: none; }
.trip-tabs { gap: 10px; margin-bottom: 43px; font-size: 13px; }
.trip-tab, .trip-tab.active { padding: 0; border: 0; border-radius: 0; background: none; color: var(--sky-text); font-size: 13px; font-weight: 400; }
.trip-tab input { width: 17px; height: 17px; }
.discount-note, .group-note { color: var(--sky-purple); font-size: 12px; cursor: default; }
.discount-note { border-left: 1px solid #aaa; padding-left: 10px; margin-left: 6px; }
.group-note { margin-left: auto; }
.search-grid { grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr) minmax(240px,1.55fr) minmax(0,1fr) minmax(135px,.75fr); gap: 10px; align-items: end; }
.field { min-width: 0; gap: 0; }
.field > label { position: absolute; z-index: 2; top: -8px; left: 11px; padding: 0 4px; background: #f8f8f8; text-transform: none; font-size: 11px; letter-spacing: 0; font-weight: 400; color: #666; }
.input-box { border: 1px solid var(--sky-border); border-radius: 4px; height: 48px; min-width: 0; }
.input-box input { padding: 12px 9px; font-size: 13px; font-weight: 400; min-width: 0; }
.iata-pill { font-size: 10px; padding: 3px 5px; margin-right: 5px; }
.clear-btn { padding: 2px 4px; }
.swap-btn { width: 34px; height: 48px; border: 0; background: transparent; }
.date-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; min-width: 0; }
.date-fields:has(#fieldVuelta[hidden]) { grid-template-columns: minmax(0,1fr); }
.pax-trigger { padding: 10px; font-size: 13px; font-weight: 400; }
.btn-search { min-height: 52px; padding: 10px 16px; background: var(--sky-purple); border-radius: 8px; box-shadow: none; font-size: 13px; }
.btn-search:hover { background: #650067; }
.form-error { margin-top: 0; min-height: 0; }
.form-error:not(:empty) { margin-top: 12px; }
.promotion-wrapper { max-width: var(--page-width); width: calc(100% - 48px); margin: -40px auto 32px; position: relative; z-index: 1; }
.black-sky-card { isolation: isolate; position: relative; overflow: hidden; min-height: 288px; display: flex; align-items: center; padding: 26px clamp(24px,4vw,56px); border-radius: 16px; color: #fff; background: #4e0759; }
.black-sky-card::before, .black-sky-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.black-sky-card::before { z-index: -2; background: url('4807_702.jpg') center 49% / cover no-repeat; transition: transform .55s ease; }
.black-sky-card::after { z-index: -1; background: linear-gradient(90deg, rgba(78,7,89,.98) 0%,rgba(78,7,89,.84) 30%,rgba(78,7,89,.35) 66%,rgba(78,7,89,.08) 100%); transition: background-color .4s ease; background-color: rgba(128,0,128,0); }
.black-sky-card:hover::after, .black-sky-card:focus-within::after { background-color: rgba(128,0,128,.62); }
.black-sky-card:hover::before, .black-sky-card:focus-within::before { transform: scale(1.035); }
.promotion-content { max-width: 640px; }
.promotion-eyebrow { font-size: 11px; letter-spacing: .05em; font-weight: 700; margin-bottom: 7px; color: #f4d8f7; }
.promotion-content h1 { font-size: clamp(25px,2.3vw,36px); font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.promotion-description { font-size: clamp(14px,1.1vw,18px); line-height: 1.65; margin-bottom: 16px; }
.promotion-button { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 24px; border-radius: 8px; background: #f8ddfa; color: var(--sky-purple); font-size: 13px; font-weight: 700; text-decoration: none; transition: background-color .2s,color .2s; }
.promotion-button:hover { background: var(--sky-purple); color: white; }
@media(max-width: 1100px) {
    .topbar-inner { gap: 20px; }
    .nav-links { gap: 15px; font-size: 12px; }
    .desktop-only { display: none; }
    .search-grid { grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); row-gap: 24px; }
    .date-fields { grid-column: 1 / 2; }
    #fieldPax { grid-column: 3; }
    .btn-search { grid-column: 1 / -1; }
    .hero { padding-top: 45px; }
}
@media(max-width: 680px) {
    .topbar-inner { gap: 12px; min-height: 55px; }
    .nav-links { display: none; }
    .nav-right { margin-left: auto; gap: 8px; }
    .hero { padding: 28px 12px 65px; }
    .product-tabs { gap: 7px; padding: 12px; }
    .product-tab { padding: 5px 8px; font-size: 9px; }
    .search-card { padding: 20px 12px 14px; }
    .trip-tabs { margin-bottom: 25px; gap: 12px; }
    .discount-note { border: 0; padding: 0; margin: 0; }
    .group-note { display: none; }
    .search-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .swap-btn { width: 100%; height: 28px; }
    .date-fields, #fieldPax, .btn-search { grid-column: 1; }
    .ac-dropdown { min-width: 0; width: 100%; }
    .pax-panel { width: min(270px,100%); }
    .promotion-wrapper { width: calc(100% - 24px); margin-top: -30px; }
    .black-sky-card { min-height: 300px; padding: 25px 20px; }
    .black-sky-card::after { background-image: linear-gradient(90deg,rgba(78,7,89,.96),rgba(78,7,89,.63)); }
    .desktop-break { display: none; }
}
@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .black-sky-card:hover::before, .black-sky-card:focus-within::before { transform: none; }
}

/* ===============================================================
   MOSAICO DE DESTINOS – compatible con index.php de esta entrega.
   Se conserva la portada anterior; se reemplaza solo esta sección.
   =============================================================== */
.destinations-section {
    width: calc(100% - 48px);
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 0 36px;
    color: var(--sky-text);
    container-type: inline-size;
}
.destinations-heading { margin-bottom: 16px; }
.destinations-heading h2 {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--sky-purple);
    font-size: clamp(17px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.3;
}
.destinations-arrow { color: var(--sky-green); flex: none; }
.destinations-demo-note, .destinations-footnote {
    color: #53505a;
    font-size: 12px;
    line-height: 1.5;
}
.destinations-demo-note { margin-top: 5px; }
.destinations-footnote { margin-top: 12px; }

/* Tres pistas permiten 50/50 arriba y 60/40 aproximadamente abajo,
   con una separación uniforme sin añadir contenedores al PHP. */
.destinations-grid--mosaic {
    display: grid;
    --mosaic-gap: 20px;
    grid-template-columns: minmax(0, calc(50% - var(--mosaic-gap) / 2))
                           minmax(0, calc(10% - var(--mosaic-gap) * 1.1))
                           minmax(0, 1fr);
    grid-template-areas:
        "rio trujillo trujillo"
        "rio tumbes tumbes"
        "piura piura chiclayo";
    grid-template-rows: minmax(156px, auto) minmax(162px, auto) minmax(170px, auto);
    grid-template-rows: clamp(156px, 19.02cqw, 250px)
                        clamp(162px, 19.76cqw, 259px)
                        clamp(170px, 20.73cqw, 272px);
    gap: var(--mosaic-gap);
}
.destination-card--rio { grid-area: rio; }
.destination-card--trujillo { grid-area: trujillo; }
.destination-card--tumbes { grid-area: tumbes; }
.destination-card--piura { grid-area: piura; }
.destination-card--chiclayo { grid-area: chiclayo; }

.destination-card {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    isolation: isolate;
    overflow: hidden;
    border-radius: 16px;
    background: #365760;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(35, 17, 40, .08);
    transition: box-shadow .25s ease;
}
.destination-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.destination-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease;
}
.destination-card--rio .destination-image { object-position: 50% 50%; }
.destination-card--trujillo .destination-image { object-position: 50% 47%; }
.destination-card--tumbes .destination-image { object-position: 50% 49%; }
.destination-card--piura .destination-image { object-position: 50% 50%; }
.destination-card--chiclayo .destination-image { object-position: 50% 47%; }
.destination-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(35, 15, 43, .28), transparent 65%);
    pointer-events: none;
}
.destination-discount, .destination-country {
    position: absolute;
    top: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
}
.destination-discount {
    left: 8px;
    max-width: calc(100% - 78px);
    border-radius: 999px;
    padding: 3px 7px;
    color: #790080;
    background: #fae4fc;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .025em;
}
.destination-country {
    right: 8px;
    padding: 4px 6px;
    border-radius: 5px;
    background: rgba(20, 31, 42, .72);
    font-size: 11px;
    color: #fff;
}
.destination-country svg { flex: none; }

/* Panel de cristal: el fondo semitransparente sigue funcionando
   incluso cuando el navegador no admite backdrop-filter. */
.destination-price-panel {
    position: absolute;
    inset: auto 7px 7px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 80px;
    min-height: clamp(80px, 9.76cqw, 128px);
    padding: 10px clamp(10px, 1.2cqw, 16px);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(25, 21, 30, .69);
    color: #fff;
    transition: background-color .4s ease;
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .destination-price-panel {
        background: rgba(24, 18, 30, .48);
        -webkit-backdrop-filter: blur(13px) saturate(125%);
        backdrop-filter: blur(13px) saturate(125%);
    }
}
.destination-summary { flex: 1 1 auto; min-width: 0; }
.destination-title {
    color: #fff;
    font-size: 14px;
    font-size: clamp(13px, 1.55cqw, 20px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
.destination-description, .destination-pen, .destination-from {
    color: #fff;
    font-size: 10px;
    font-size: clamp(10px, 1.15cqw, 15px);
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.destination-prices {
    display: flex;
    flex: 0 0 auto;
    max-width: 54%;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
}
.destination-usd {
    font-size: 19px;
    font-size: clamp(17px, 2.05cqw, 27px);
    line-height: 1.12;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
.destination-card:focus-visible { outline: 3px solid var(--sky-purple); outline-offset: 3px; }
.destination-card:focus-visible .destination-price-panel { background-color: rgba(92, 0, 105, .85); }
@media (hover: hover) and (pointer: fine) {
    .destination-card:hover { box-shadow: 0 8px 20px rgba(78,7,89,.23); }
    .destination-card:hover .destination-image { transform: scale(1.045); }
    .destination-card:hover .destination-price-panel { background-color: rgba(92,0,105,.85); }
}

/* Tablet: mantiene la geometría de referencia mientras haya espacio. */
@media (min-width: 681px) and (max-width: 900px) {
    .destinations-grid--mosaic { --mosaic-gap: 16px; }
    .destination-price-panel { gap: 6px; padding: 9px; }
    .destination-discount { font-size: 8px; }
    .destination-country { font-size: 10px; }
}
/* Móvil: conserva el orden de lectura y evita cortar precios o nombres. */
@media (max-width: 680px) {
    .destinations-section { width: calc(100% - 24px); padding-bottom: 28px; }
    .destinations-grid--mosaic {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "rio" "trujillo" "tumbes" "piura" "chiclayo";
        grid-template-rows: auto;
        grid-auto-rows: auto;
        gap: 14px;
    }
    .destination-card { width: 100%; max-width: 100%; min-height: 190px; aspect-ratio: 2 / 1; }
    .destination-card--rio { min-height: 250px; aspect-ratio: 4 / 3; }
    .destination-price-panel { min-height: 80px; padding: 10px; }
    .destination-title { font-size: 15px; }
    .destination-usd { font-size: 20px; }
    .destination-description, .destination-pen, .destination-from { font-size: 11px; }
}
@media (max-width: 360px) {
    .destination-price-panel { gap: 6px; padding: 8px; }
    .destination-title { font-size: 13px; }
    .destination-usd { font-size: 17px; }
    .destination-description, .destination-pen, .destination-from { font-size: 10px; }
    .destination-discount { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .destination-card, .destination-image, .destination-price-panel { transition: none; }
    .destination-card:hover .destination-image { transform: none; }
}

/* =====================================================================
   COMPLEMENTA TU VIAJE — mosaico 2 × 2 de la referencia.
   Estilos aislados: no alteran el buscador ni el mosaico de destinos.
   ===================================================================== */
.travel-extras-section {
    width: calc(100% - 48px);
    max-width: var(--page-width, 1312px);
    margin: 0 auto;
    padding: 48px 0 64px;
    color: var(--sky-text);
}
.travel-extras-heading { margin-bottom: 28px; }
.travel-extras-heading h2 {
    color: var(--sky-purple, #800080);
    font-size: clamp(22px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.3;
}
.travel-extras-note {
    margin-top: 7px;
    color: #53505a;
    font-size: 12px;
    line-height: 1.5;
}
.travel-extras-grid--reference {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "paquetes hoteles" "tours skyplus";
    gap: 28px 30px;
    align-items: stretch;
}
.travel-extra-card--paquetes { grid-area: paquetes; }
.travel-extra-card--hoteles { grid-area: hoteles; }
.travel-extra-card--tours { grid-area: tours; }
.travel-extra-card--skyplus { grid-area: skyplus; }
.travel-extra-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 182px;
    width: 100%;
    aspect-ratio: 600 / 182;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    border-radius: 8px;
    background: #3c2842;
    color: #fff;
}
.travel-extra-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.travel-extra-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}
/* 32.png lleva un marco blanco fino; el recorte CSS evita que aparezca. */
.travel-extra-card--hoteles .travel-extra-image { transform: scale(1.035); }
.travel-extra-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,10,20,.78), rgba(17,10,20,.60) 48%, rgba(17,10,20,.46));
    transition: background-color .3s ease;
    background-color: transparent;
}
.travel-extra-content {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 16px clamp(22px, 3vw, 38px) 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.travel-extra-category {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .065em;
    line-height: 1.4;
    color: #fff;
}
.travel-extra-title {
    margin: 0;
    font-size: clamp(16px, 1.48vw, 19px);
    font-weight: 800;
    line-height: 1.55;
    color: #fff;
    text-wrap: pretty;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.travel-extra-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 308px);
    min-height: 44px;
    margin-top: 28px;
    padding: 9px 16px;
    border: 1px solid var(--sky-purple, #800080);
    border-radius: 8px;
    background: #fff;
    color: var(--sky-purple, #800080);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}
.travel-extra-button:hover, .travel-extra-button:focus-visible {
    background: var(--sky-purple, #800080);
    color: #fff;
}
.travel-extra-button:focus-visible { outline: 3px solid #55ce24; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
    .travel-extra-card:hover .travel-extra-image { transform: scale(1.035); }
    .travel-extra-card--hoteles:hover .travel-extra-image { transform: scale(1.065); }
    .travel-extra-card:hover .travel-extra-media::after { background-color: rgba(128,0,128,.16); }
}
/* Diálogo local de demostración. */
.travel-extra-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(480px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    overflow: auto;
    padding: 24px;
    border: 1px solid #e0d5e3;
    border-radius: 14px;
    background: #fff;
    color: var(--sky-text);
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
.travel-extra-dialog::backdrop { background: rgba(20,12,27,.60); }
.travel-extra-dialog h2 { font-size: 20px; color: var(--sky-purple); margin-bottom: 12px; }
.travel-extra-dialog p { font-size: 14px; line-height: 1.6; }
.travel-extra-dialog-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.travel-extra-dialog-close {
    min-height: 42px;
    padding: 10px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--sky-purple);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
@media (max-width: 1000px) {
    .travel-extras-grid--reference { gap: 20px; }
    .travel-extra-card { aspect-ratio: auto; min-height: 196px; }
    .travel-extra-button { margin-top: 22px; }
}
@media (max-width: 760px) {
    .travel-extras-section { width: calc(100% - 24px); padding: 24px 0 36px; }
    .travel-extras-heading { margin-bottom: 18px; }
    .travel-extras-grid--reference {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "paquetes" "hoteles" "tours" "skyplus";
        gap: 16px;
    }
    .travel-extra-card { min-height: 182px; }
    .travel-extra-content { padding: 17px 20px; }
    .travel-extra-button { margin-top: 20px; }
    .travel-extra-media::after {
        background-image: linear-gradient(90deg, rgba(17,10,20,.78), rgba(17,10,20,.56));
    }
}
@media (max-width: 360px) {
    .travel-extra-content { padding: 14px 15px; }
    .travel-extra-title { font-size: 15px; }
    .travel-extra-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .travel-extra-image, .travel-extra-media::after, .travel-extra-button { transition: none; }
    .travel-extra-card:hover .travel-extra-image { transform: none; }
    .travel-extra-card--hoteles:hover .travel-extra-image { transform: scale(1.035); }
}

/* ===============================================================
   06. DESCUBRE SKY – carrusel de cinco tarjetas (index.php).
   07. FOOTER – navegación y referencias del proyecto de demostración.
   Las reglas anteriores se conservan íntegramente.
   =============================================================== */
.discover-section {
    --discover-gap: 30px;
    --discover-width: 1230px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(105deg, #780681 0%, #87058e 56%, #a50eb5 100%);
    color: #fff;
    padding: 24px 0 45px;
}
/* Flechas de gran formato, dibujadas en CSS, sin imágenes externas. */
.discover-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1900 674' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23ce23da' fill-opacity='.12'%3E%3Cpath d='M825 0H1060L1265 324L1043 674H808L1030 324Z'/%3E%3Cpath d='M1295 0H1530L1735 324L1513 674H1278L1500 324Z'/%3E%3Cpath d='M1765 0H2000L2205 324L1983 674H1748L1970 324Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.discover-inner {
    position: relative;
    width: calc(100% - 48px);
    max-width: var(--discover-width);
    margin: 0 auto;
}
.discover-heading { margin: 0 0 22px; }
.discover-eyebrow {
    font-size: 11px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .06em;
    margin: 0 0 10px;
}
.discover-heading h2 {
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 21px;
    color: #fff;
}
.discover-intro {
    max-width: 510px;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}
.discover-demo-note {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #fff;
}
/* Tres tarjetas de 390 px a 1230 px; dos en tablet, una en móvil. */
.discover-track {
    --discover-columns: 3;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--discover-columns) - 1) * var(--discover-gap)) / var(--discover-columns));
    align-items: stretch;
    gap: var(--discover-gap);
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 0 0 9px;
    scrollbar-color: #929292 #fff;
    scrollbar-width: auto;
}
.discover-track:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.discover-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 389px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    color: #32343b;
    scroll-snap-align: start;
}
.discover-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 834 / 358;
    object-fit: cover;
    object-position: center;
    flex: none;
    background: #dedbe0;
}
.discover-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 24px 22px 25px;
}
.discover-content h3 {
    margin: 0 0 16px;
    color: #32343b;
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.discover-content p {
    color: #43434a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    overflow-wrap: anywhere;
}
.discover-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 10px 12px;
    border: 1px solid #a900c0;
    border-radius: 8px;
    background: #fff;
    color: #800080;
    text-align: center;
    text-decoration: none;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: background-color .2s ease, color .2s ease;
}
.discover-button:hover, .discover-button:focus-visible { background: #800080; color: #fff; }
.discover-button:focus-visible { outline-offset: 2px; }
/* Los botones existentes en PHP complementan la barra nativa. */
.discover-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    margin-top: 4px;
    gap: 10px;
}
.discover-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    color: #5a5a5a;
    background: #fff;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.discover-arrow:disabled { opacity: .6; cursor: default; }
.discover-arrow:not(:disabled):hover { color: #800080; background: #f8ddfa; }
/* Chromium/WebKit: flechas integradas visualmente en los extremos de la barra.
   En otros motores se mantienen los controles separados y el scroll nativo. */
@supports selector(::-webkit-scrollbar) {
    .discover-track { scrollbar-color: auto; scrollbar-width: auto; padding-bottom: 19px; }
    .discover-track::-webkit-scrollbar { height: 19px; }
    .discover-track::-webkit-scrollbar-track { background: #fff; margin-inline: 23px; }
    .discover-track::-webkit-scrollbar-thumb {
        background: #949494;
        border: 4px solid #fff;
        border-radius: 12px;
    }
    .discover-track::-webkit-scrollbar-thumb:hover { background: #707070; }
    .discover-controls {
        position: absolute;
        inset: auto 0 0;
        height: 19px;
        margin: 0;
        pointer-events: none;
    }
    .discover-arrow {
        width: 23px;
        min-width: 23px;
        height: 19px;
        border-radius: 0;
        font-size: 20px;
        pointer-events: auto;
    }
    .discover-arrow:disabled { opacity: 1; color: #aaa; background: #fff; }
    .discover-arrow:focus-visible { outline-offset: -2px; }
}
@media (max-width: 1050px) {
    .discover-section { --discover-gap: 22px; }
    .discover-track { --discover-columns: 2; }
}
@media (max-width: 680px) {
    .discover-section { --discover-gap: 16px; padding: 26px 0 30px; }
    .discover-inner { width: calc(100% - 24px); }
    .discover-heading { margin-bottom: 24px; }
    .discover-heading h2 { margin-bottom: 14px; }
    .discover-track { --discover-columns: 1; }
    .discover-card { min-height: 340px; }
    .discover-content { padding: 20px 18px 26px; }
}
@media (pointer: coarse) {
    .discover-controls { position: static; height: 44px; margin-top: 6px; pointer-events: auto; }
    .discover-arrow { width: 44px; min-width: 44px; height: 44px; border-radius: 6px; font-size: 26px; }
}

/* ===============================================================
   FOOTER: logo, cuatro columnas, referencias centrales y franja legal.
   =============================================================== */
.site-footer {
    position: relative;
    width: 100%;
    background: #eee;
    color: #5d5d63;
    font-size: 12px;
    line-height: 1.5;
}
.site-footer-inner {
    max-width: 1920px;
    padding: 36px clamp(16px, 2vw, 38px) 15px;
    margin: 0 auto;
}
.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(100px, .46fr) repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}
.site-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-footer-logo {
    font-size: 23px;
    letter-spacing: -.09em;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    color: #777;
}
.site-footer-demo { font-size: 10px; font-weight: 600; color: #555; }
.site-footer-column { min-width: 0; }
.site-footer-column h2 {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    color: #55545b;
    margin: 0 0 10px;
}
.site-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer-links a, .site-footer-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #5d5d63;
    text-align: left;
    text-decoration: none;
    font: inherit;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.site-footer-links a:hover, .site-footer-link:hover { color: #800080; text-decoration: underline; }
.site-footer-apps {
    display: grid;
    justify-items: start;
    gap: 9px;
    border-top: 1px solid #c7c7c7;
    padding-top: 8px;
    margin-top: 14px;
    max-width: 170px;
}
.site-footer-apps p { font-size: 9px; letter-spacing: .05em; }
.site-footer-store {
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 9px;
    min-width: 114px;
    min-height: 28px;
    background: #171717;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}
.site-footer-store:hover { background: #800080; }
.site-footer-recognition {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin: 96px auto 0;
}
.site-footer-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #147b95;
    cursor: pointer;
    font: inherit;
}
.site-footer-book span { font-size: 21px; font-weight: 800; line-height: 1.04; }
.site-footer-book:hover span { text-decoration: underline; }
.site-footer-book-icon { width: 180px; height: 62px; display: block; }
.site-footer-book small, .site-footer-awards small { font-size: 10px; color: #626267; }
.site-footer-awards { display: grid; justify-items: center; gap: 8px; }
.site-footer-awards p { font-size: 11px; }
/* Años de referencia, no se simulan sellos de premios oficiales. */
.site-footer-awards ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0; padding: 0; }
.site-footer-awards li { background: #e1e1e1; color: #505055; border: 1px solid #cdcdcd; border-radius: 4px; padding: 4px 6px; font-size: 10px; }
.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid #c5c5c5;
    padding: 12px max(100px, 6vw) 12px clamp(16px, 2vw, 38px);
}
.site-footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.site-footer-social .site-footer-link { font-weight: 600; font-size: 11px; }
.site-footer-legal { font-size: 10px; line-height: 1.65; max-width: 650px; }
.site-footer-legal strong { color: #414148; }
/* Se muestra en el pie de página, sin tapar el formulario de búsqueda. */
.site-footer-chat {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 66px;
    min-height: 52px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #800080;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px #0001;
}
.site-footer-chat::before {
    content: "•••";
    display: grid;
    place-items: center;
    width: 23px;
    height: 21px;
    border-radius: 50% 50% 50% 4px;
    background: #800080;
    color: #fff;
    font-size: 11px;
}
.site-footer-chat:hover { border-color: #800080; }
@media (max-width: 1050px) {
    .site-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .site-footer-brand { grid-column: 1 / -1; }
    .site-footer-recognition { margin-top: 70px; }
}
@media (max-width: 680px) {
    .site-footer-inner { padding-top: 28px; }
    .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
    .site-footer-recognition { margin-top: 48px; }
    .site-footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 16px 80px; }
    .site-footer-chat { right: 16px; bottom: 14px; }
}
@media (max-width: 360px) {
    .site-footer-grid { grid-template-columns: minmax(0, 1fr); }
    .site-footer-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .discover-track { scroll-behavior: auto; scroll-snap-type: none; }
    .discover-button { transition: none; }
}

/* ===============================================================
   BUSCADOR: calendario de dos meses y catálogos de aeropuertos.
   Compatible con index.php (archivo 01, calendario personalizado).
   Los estados de precio provienen de JavaScript y vuelos_precios.
   =============================================================== */
.search-grid .date-fields--calendar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-width: 0;
}
.search-grid .flight-date-field { width: 100%; min-width: 0; }
.search-grid .field > .input-box { height: 60px; }
.search-grid .swap-btn, .search-grid .btn-search { min-height: 60px; }
.flight-date-field > label {
    top: -10px;
    left: 15px;
    padding: 0 4px;
    color: #767676;
    font-size: 15px;
    line-height: 20px;
}
.flight-date-field .input-box {
    border: 1px solid #a3a3a3;
    border-radius: 5px;
    background: #fff;
}
.flight-date-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 10px clamp(9px, 1vw, 18px);
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #343434;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}
.flight-date-trigger svg { flex: 0 0 20px; color: #454545; }
.flight-date-trigger span { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.flight-date-trigger:focus-visible { outline: 2px solid #800080; outline-offset: -3px; }
/* Catálogo completo: scroll interno, sin limitar el número de elementos. */
.search-grid .ac-dropdown {
    max-height: min(370px, 48vh);
    max-height: min(370px, 48dvh);
    overscroll-behavior: contain;
    scrollbar-color: #aaa #f4f4f4;
}
/* El diálogo nativo se presenta sobre el resto de la página. */
.flight-calendar {
    --cal-purple: #800080;
    --cal-low: #dff8df;
    --cal-mid: #fff1ca;
    --cal-high: #fce0d3;
    --cal-disabled: #ededed;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(985px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 10px 17px 17px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #424242;
    box-shadow: 0 14px 52px #0003;
    overflow: auto;
    overscroll-behavior: contain;
    font: inherit;
}
.flight-calendar:not([open]) { display: none; }
.flight-calendar::backdrop { background: rgba(0, 0, 0, .52); }
.flight-calendar-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    padding: 0 0 12px;
    border-bottom: 2px solid #c6c6c6;
}
.flight-calendar-header h2 {
    margin: 0;
    padding-left: 10px;
    color: #151515;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.25;
    font-weight: 700;
}
.flight-calendar-summary { display: flex; align-items: stretch; gap: 10px; min-width: 0; padding-top: 5px; }
.calendar-date-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 12px 10px 10px 44px;
    background: #fff;
    border: 1px solid #a3a3a3;
    border-radius: 5px;
    color: #454545;
    text-align: left;
    cursor: pointer;
}
.calendar-date-tab > span {
    position: absolute;
    left: 15px;
    top: -10px;
    background: #fff;
    padding: 0 4px;
    color: #777;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
}
.calendar-date-tab > strong { font-size: 14px; font-weight: 400; overflow-wrap: anywhere; line-height: 1.35; }
.calendar-date-tab::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23454545' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='1'/%3E%3Cpath d='M7 3v5m10-5v5M3 10h18'/%3E%3C/svg%3E");
}
.calendar-date-tab[aria-pressed='true'] { border-color: var(--cal-purple); box-shadow: 0 0 0 1px var(--cal-purple); }
.calendar-date-tab[aria-pressed='true'] > span { color: var(--cal-purple); }
.calendar-date-tab:disabled { opacity: .6; cursor: not-allowed; }
.calendar-close, .calendar-nav {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    border-radius: 5px;
}
.calendar-close { width: 28px; height: 34px; font-size: 24px; line-height: 1; }
.calendar-nav { width: 34px; height: 40px; font-size: 25px; line-height: 1; }
.calendar-close:hover, .calendar-nav:not(:disabled):hover { color: var(--cal-purple); background: #f7edf9; }
.calendar-nav:disabled { color: #b4b4b4; cursor: not-allowed; }
.flight-calendar-body {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 9px;
    align-items: start;
    padding: 15px 0 0;
}
.calendar-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 7vw, 95px);
    align-items: start;
    min-width: 0;
    padding-top: 18px;
}
.calendar-month { min-width: 0; }
.calendar-month-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    margin: 0 0 7px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #454545;
}
.calendar-month-title small { font-size: 13px; font-weight: 500; letter-spacing: .09em; }
.calendar-day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px 5px; }
.calendar-weekday { text-align: center; color: #777; font-size: 16px; line-height: 20px; }
.calendar-day {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    min-width: 0;
    height: 50px;
    padding: 2px 0;
    border: 2px solid transparent;
    border-radius: 5px;
    background: #f7f7f7;
    color: #424242;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.05;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.calendar-day.price-low, .calendar-key.price-low { background: var(--cal-low); }
.calendar-day.price-mid, .calendar-key.price-mid { background: var(--cal-mid); }
.calendar-day.price-high, .calendar-key.price-high { background: var(--cal-high); }
.calendar-day.no-flights { background: #f6f6f6; color: #646464; }
.calendar-day.in-range { box-shadow: inset 0 -3px #bd82c7; }
.calendar-day.is-today { border-color: var(--cal-purple); color: var(--cal-purple); }
.calendar-day:not(:disabled):hover { border-color: var(--cal-purple); }
.calendar-day.is-selected { background: var(--cal-purple); border-color: var(--cal-purple); color: #fff; box-shadow: none; }
.calendar-day:disabled, .calendar-day.outside-month {
    background: var(--cal-disabled);
    color: #aaa;
    border-color: transparent;
    box-shadow: none;
    cursor: not-allowed;
}
.calendar-day:disabled.is-selected:not(.outside-month) { border-color: #a775ad; }
.calendar-dots { display: block; color: currentColor; font-size: 14px; letter-spacing: 1px; line-height: 10px; margin-top: 3px; }
.calendar-day.is-selected .calendar-dots { color: #fff; }
.flight-calendar button:focus-visible { outline: 2px solid var(--cal-purple); outline-offset: 2px; }
.calendar-day.is-selected:focus-visible { outline-color: #4d0055; }
.calendar-status { min-height: 18px; margin: 16px 10px 8px; font-size: 12px; line-height: 1.5; color: #5f5f5f; overflow-wrap: anywhere; }
.calendar-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 10px 12px; font-size: 12px; color: #555; }
.calendar-legend > span { display: inline-flex; gap: 5px; align-items: center; }
.calendar-key { display: inline-block; width: 13px; height: 13px; border: 1px solid #0002; border-radius: 3px; }
.calendar-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid #dedede; }
.calendar-actions button { min-height: 42px; padding: 8px 19px; border: 1px solid var(--cal-purple); border-radius: 6px; background: #fff; color: var(--cal-purple); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#calendarApply { background: var(--cal-purple); color: #fff; }
#calendarApply:not(:disabled):hover { background: #650067; }
#calendarApply:disabled { opacity: .45; cursor: not-allowed; }
#calendarCancel:hover { background: #f5e9f7; }
@media (max-width: 1100px) and (min-width: 681px) {
    /* El rango de fechas ocupa su propia fila compartida con pasajeros. */
    .search-grid .date-fields--calendar { grid-column: 1 / 3; }
}
@media (max-width: 760px) {
    .flight-calendar-header { grid-template-columns: minmax(0, 1fr) 30px; gap: 10px; }
    .flight-calendar-header h2 { padding-left: 0; }
    .flight-calendar-summary { grid-row: 2; grid-column: 1 / -1; }
    .calendar-close { grid-row: 1; grid-column: 2; }
    .flight-calendar-body { grid-template-columns: 28px minmax(0,1fr) 28px; gap: 5px; }
    .calendar-nav { width: 28px; }
    .calendar-months { column-gap: 20px; }
    .calendar-month-title { font-size: 19px; padding: 0 3px; }
    .calendar-day-grid { gap: 6px 4px; }
    .calendar-day { height: 42px; font-size: 14px; }
}
@media (max-width: 680px) {
    .search-grid .swap-btn { min-height: 28px; }
    .search-grid .date-fields--calendar { grid-column: 1; }
    .flight-date-trigger { font-size: 15px; }
    .search-grid .ac-dropdown { max-height: min(300px, 45vh); }
}
@media (max-width: 560px) {
    .flight-calendar { width: calc(100% - 16px); padding: 12px 10px; max-height: calc(100dvh - 16px); }
    .flight-calendar-body { grid-template-columns: 32px minmax(0, 1fr) 32px; column-gap: 4px; row-gap: 6px; padding-top: 8px; }
    .calendar-nav { width: 32px; height: 40px; }
    .calendar-prev { grid-column: 1; grid-row: 1; }
    .calendar-next { grid-column: 3; grid-row: 1; }
    .calendar-months { grid-row: 2; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); row-gap: 22px; padding-top: 0; }
    .calendar-month-title { font-size: 21px; }
    .calendar-day { height: 44px; }
    .calendar-date-tab { padding-left: 31px; }
    .calendar-date-tab::before { left: 9px; width: 15px; height: 15px; }
    .calendar-date-tab > span { left: 8px; font-size: 12px; }
    .calendar-date-tab > strong { font-size: 13px; }
    .calendar-status, .calendar-legend { margin-inline: 0; }
    .calendar-actions button { flex: 1 1 0; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .calendar-day { transition: none; }
}

/* ======================================================================
   Buscador v3: catálogos completos, calendario compacto y pasajeros.
   Compatible con index.php (sky_buscador_pasajeros).
   Reglas acotadas al buscador: no modifican promociones ni pie de página.
   ====================================================================== */
.search-grid #fieldOrigen,
.search-grid #fieldDestino,
.search-grid #fieldPax { min-width: 0; }
.search-grid #fieldOrigen > label,
.search-grid #fieldDestino > label,
.search-grid #fieldPax > label {
    top: -10px;
    left: 12px;
    font-size: 14px;
    line-height: 20px;
    color: #666;
}
.search-grid #fieldOrigen > .input-box,
.search-grid #fieldDestino > .input-box,
.search-grid #fieldPax > .input-box {
    border: 1px solid #a3a3a3;
    border-radius: 5px;
    background: #fff;
}
.search-grid #fieldOrigen > .input-box:focus-within,
.search-grid #fieldDestino > .input-box:focus-within,
.search-grid #fieldPax > .input-box:focus-within {
    border-color: #800080;
    box-shadow: 0 0 0 3px rgba(128,0,128,.13);
}
.search-grid #fieldOrigen .input-box input,
.search-grid #fieldDestino .input-box input {
    font-size: 15px;
    padding: 12px;
    min-width: 0;
}
/* El alto de la ventana no limita la cantidad de filas del catálogo. */
.search-grid .ac-dropdown {
    top: calc(100% + 7px);
    left: 0;
    right: auto;
    width: max(100%, 360px);
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: min(436px, 55vh);
    max-height: min(436px, 55dvh);
    padding: 7px;
    border: 1px solid #e6e2ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(31, 22, 40, .20);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b6acbc #f5f2f7;
    z-index: 110;
}
.search-grid .ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 10px 14px;
    gap: 12px;
    border-radius: 12px;
}
.search-grid .ac-item:hover,
.search-grid .ac-item.active,
.search-grid .ac-item[aria-selected='true'] { background: #f3edf9; }
.search-grid .ac-main { flex: 1 1 auto; min-width: 0; }
.search-grid .ac-city {
    color: #242938;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}
.search-grid .ac-airport {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.35;
    color: #596b83;
    white-space: normal;
    overflow-wrap: anywhere;
}
.search-grid .ac-iata {
    flex: 0 0 auto;
    min-width: 48px;
    padding: 6px 10px;
    border-radius: 11px;
    background: #eee1f6;
    color: #800080;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}
.search-grid .ac-highlight { color: #800080; background: #eedaf4; }
.search-grid .ac-status { overflow-wrap: anywhere; }
/* Pasajeros: el PHP controla borrador, límites y confirmación. */
#fieldPax .pax-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
    color: #343434;
}
#fieldPax .pax-trigger svg { flex: 0 0 20px; color: #454545; }
#fieldPax #paxSummary { min-width: 0; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fieldPax .pax-trigger:focus-visible,
#fieldPax .pax-btn:focus-visible,
#fieldPax .pax-confirm:focus-visible { outline: 2px solid #800080; outline-offset: 3px; }
#fieldPax .pax-panel {
    top: calc(100% + 7px);
    right: 0;
    width: max(100%, 290px);
    max-width: calc(100vw - 32px);
    max-height: min(405px, 68vh);
    max-height: min(405px, 68dvh);
    padding: 12px 19px 17px;
    border: 1px solid #e6e2ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(31,22,40,.20);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 110;
}
#fieldPax .pax-row { min-height: 85px; gap: 8px; padding: 12px 0; }
#fieldPax .pax-row + .pax-row { border-top: 0; }
#fieldPax .pax-info { min-width: 0; flex: 1 1 auto; }
#fieldPax .pax-info strong {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: #222;
}
#fieldPax .pax-info span {
    display: block;
    margin-top: 4px;
    color: #737373;
    font-size: 13px;
    line-height: 1.35;
}
#fieldPax .pax-ctrl {
    display: grid;
    grid-template-columns: 34px 30px 34px;
    gap: 7px;
    align-items: center;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 999px;
    background: #f7f7f7;
}
#fieldPax .pax-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: #fff;
    color: #800080;
    box-shadow: 0 2px 9px rgba(0,0,0,.13);
    font: inherit;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}
#fieldPax .pax-btn:not(:disabled):hover { background: #f5e7f7; border-color: #800080; }
#fieldPax .pax-btn:disabled { color: #bcbcbc; cursor: not-allowed; }
#fieldPax .pax-count { font-size: 23px; font-weight: 700; color: #393939; font-variant-numeric: tabular-nums; }
#fieldPax .pax-note { color: #666; font-size: 12px; line-height: 1.4; margin: 3px 0 8px; }
#fieldPax .pax-note:empty { display: none; }
#fieldPax .pax-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    margin-top: 12px;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: #800080;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease;
}
#fieldPax .pax-confirm span { font-size: 19px; font-weight: 400; }
#fieldPax .pax-confirm:not(:disabled):hover { background: #650067; }
#fieldPax .pax-confirm:disabled { opacity: .55; cursor: not-allowed; }
/* Calendario compacto: dos meses de ancho controlado en escritorio. */
.flight-calendar.flight-calendar--compact {
    width: min(680px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 12px 14px 14px;
    border-radius: 8px;
}
.flight-calendar--compact .flight-calendar-header {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) 26px;
    gap: 9px;
    padding-bottom: 9px;
    border-bottom-width: 1px;
}
.flight-calendar--compact .flight-calendar-header h2 { font-size: 18px; padding-left: 0; }
.flight-calendar--compact .flight-calendar-summary { gap: 7px; padding-top: 5px; }
.flight-calendar--compact .calendar-date-tab { min-height: 44px; padding: 9px 6px 7px 28px; }
.flight-calendar--compact .calendar-date-tab::before { left: 8px; width: 15px; height: 15px; }
.flight-calendar--compact .calendar-date-tab > span { left: 7px; font-size: 11px; }
.flight-calendar--compact .calendar-date-tab > strong { font-size: 12px; }
.flight-calendar--compact .calendar-close { width: 26px; height: 32px; font-size: 22px; }
.flight-calendar--compact .flight-calendar-body { grid-template-columns: 26px minmax(0,1fr) 26px; gap: 6px; padding-top: 10px; }
.flight-calendar--compact .calendar-nav { width: 26px; height: 32px; font-size: 20px; }
.flight-calendar--compact .calendar-months { column-gap: 24px; padding-top: 8px; }
.flight-calendar--compact .calendar-month-title { font-size: 17px; padding: 0 2px; margin-bottom: 6px; }
.flight-calendar--compact .calendar-month-title small { font-size: 11px; }
.flight-calendar--compact .calendar-day-grid { gap: 5px 4px; }
.flight-calendar--compact .calendar-weekday { font-size: 12px; line-height: 16px; }
.flight-calendar--compact .calendar-day { height: 34px; font-size: 13px; border-radius: 4px; padding: 1px 0; }
.flight-calendar--compact .calendar-dots { font-size: 12px; line-height: 8px; margin-top: 2px; letter-spacing: 1px; }
.flight-calendar--compact .calendar-status { margin: 9px 3px 6px; min-height: 16px; font-size: 11px; }
.flight-calendar--compact .calendar-legend { gap: 6px 12px; margin: 0 3px 9px; font-size: 11px; }
.flight-calendar--compact .calendar-key { width: 11px; height: 11px; }
.flight-calendar--compact .calendar-actions { padding-top: 9px; gap: 8px; }
.flight-calendar--compact .calendar-actions button { min-height: 36px; padding: 7px 13px; font-size: 12px; }
/* [hidden] debe prevalecer sobre display:flex de los tabs. */
.flight-calendar--compact .calendar-date-tab[hidden] { display: none; }
@media (min-width: 681px) and (max-width: 1100px) {
    .search-grid #fieldDestino .ac-dropdown { left: auto; right: 0; }
}
@media (max-width: 680px) {
    .search-grid .ac-dropdown { width: 100%; max-width: 100%; max-height: min(400px, 50dvh); }
    .search-grid .ac-item { min-height: 64px; padding: 8px 10px; gap: 8px; }
    .search-grid .ac-city { font-size: 15px; }
    .search-grid .ac-airport { font-size: 13px; }
    .search-grid .ac-iata { min-width: 43px; font-size: 13px; padding: 5px 7px; }
    #fieldPax .pax-panel { width: min(100%, 330px); max-width: 100%; padding: 12px 14px 15px; }
    #fieldPax .pax-row { min-height: 76px; }
    #fieldPax .pax-confirm { min-height: 50px; }
}
@media (min-width: 561px) and (max-width: 680px) {
    .flight-calendar--compact .calendar-months { column-gap: 14px; }
}
@media (max-width: 560px) {
    .flight-calendar.flight-calendar--compact { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 10px; }
    .flight-calendar--compact .flight-calendar-header { grid-template-columns: minmax(0,1fr) 26px; gap: 8px; }
    .flight-calendar--compact .flight-calendar-header h2 { font-size: 17px; }
    .flight-calendar--compact .flight-calendar-summary { grid-row: 2; grid-column: 1 / -1; }
    .flight-calendar--compact .calendar-close { grid-row: 1; grid-column: 2; }
    .flight-calendar--compact .flight-calendar-body { grid-template-columns: 30px minmax(0,1fr) 30px; gap: 4px; padding-top: 6px; }
    .flight-calendar--compact .calendar-nav { width: 30px; height: 32px; }
    .flight-calendar--compact .calendar-months { grid-row: 2; grid-column: 1 / -1; grid-template-columns: minmax(0,1fr); row-gap: 14px; padding-top: 0; }
    .flight-calendar--compact .calendar-day { height: 36px; }
    .flight-calendar--compact .calendar-date-tab { min-height: 42px; }
    .flight-calendar--compact .calendar-actions button { min-height: 40px; flex: 1 1 0; }
}
@media (max-width: 360px) {
    #fieldPax .pax-panel { padding-inline: 10px; }
    #fieldPax .pax-ctrl { grid-template-columns: 30px 24px 30px; gap: 4px; }
    #fieldPax .pax-btn { width: 30px; height: 30px; }
    #fieldPax .pax-info strong { font-size: 15px; }
    #fieldPax .pax-info span { font-size: 12px; }
}
@media (pointer: coarse) {
    .flight-calendar--compact .calendar-day { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    #fieldPax .pax-confirm { transition: none; }
}

/* =====================================================================
   Archivo 06 — Buscador de vuelos DEMO, compatible con index.php (03).
   Se conserva la hoja original completa (banners, imágenes, menús, pie).
   Los estados, precios y cantidades los determina PHP/JavaScript, no CSS.
   ===================================================================== */
#flightSearchForm { --search-focus: #800080; --search-error: #9c2032; }
#flightSearchForm .field, #flightSearchForm .input-box,
#flightSearchForm .date-fields, #flightSearchForm .search-grid { min-width: 0; }
#flightSearchForm .input-box:focus-within {
    border-color: var(--search-focus);
    box-shadow: 0 0 0 2px #80008024;
}
#flightSearchForm .input-box input::placeholder { color: #6b7280; }
#flightSearchForm :is(button, input[type="radio"]):focus-visible {
    outline: 2px solid var(--search-focus);
    outline-offset: 2px;
}
#flightSearchForm :is(.flight-date-trigger, .pax-trigger):focus-visible { outline-offset: -3px; }
#flightSearchForm .trip-tab:focus-within { color: var(--search-focus); }
#flightSearchForm .trip-tab { min-height: 30px; cursor: pointer; }
#flightSearchForm .clear-btn { flex: 0 0 auto; align-items: center; justify-content: center; min-width: 24px; min-height: 28px; color: #64646b; }
#flightSearchForm .field:has(.ac-dropdown.open, .pax-panel.open) { z-index: 120; }
#flightSearchForm .ac-dropdown.open, #flightSearchForm .pax-panel.open { z-index: 121; }
#flightSearchForm .ac-status {
    padding: 15px 12px;
    border-radius: 8px;
    background: #f7f3fa;
    color: #51445b;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
}
#flightSearchForm .ac-item[aria-selected="true"] { box-shadow: inset 3px 0 #800080; }
#flightSearchForm .ac-item .ac-airport { overflow-wrap: anywhere; }
#flightSearchForm .btn-search {
    background: #800080;
    color: #fff;
    min-width: 0;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}
#flightSearchForm .btn-search:not(:disabled):hover { background: #650067; }
#flightSearchForm :is(.btn-search, .pax-confirm):disabled {
    background: #e9e7eb; color: #68636b; box-shadow: none; opacity: 1; cursor: not-allowed;
}
#flightSearchForm .form-error:empty { display: none; }
#flightSearchForm .form-error:not(:empty) {
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid #e8b8bf;
    border-inline-start: 4px solid var(--search-error);
    border-radius: 6px;
    background: #fff3f4;
    color: var(--search-error);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    overflow-wrap: anywhere;
}
#flightSearchForm noscript p { margin-top: 12px; color: var(--search-error); line-height: 1.5; }
#fieldPax .pax-btn:disabled { background: #f1f0f2; color: #807b83; box-shadow: none; }
#fieldPax .pax-note { padding: 9px 10px; border-radius: 5px; background: #f6f2f8; color: #51445b; }
#fieldPax .pax-note:empty { display: none; }

/* Precios relativos: no se alteran bandas ni se inventan valores. */
.flight-calendar.flight-calendar--compact {
    --cal-low: #dff3df;
    --cal-mid: #fff0c2;
    --cal-high: #fce0d3;
    --cal-disabled: #ededed;
    width: min(740px, calc(100% - 24px));
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}
.flight-calendar--compact .calendar-day { min-height: 42px; height: auto; padding: 4px 1px; font-variant-numeric: tabular-nums; }
.flight-calendar--compact .calendar-day .calendar-dots {
    max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere;
    line-height: 1.15 !important; margin-top: 3px;
}
/* index.php emite el mismo no-flights para distintas causas. Los textos
   accesibles existentes permiten diferenciarlas sin tocar el DOM ni el PHP. */
.flight-calendar--compact .calendar-day.no-flights:not(:disabled):not(.is-selected) {
    background: #f1f1f3; color: #57545c; border-color: #e5e3e7;
}
.flight-calendar--compact .calendar-day.no-flights[aria-label$=", sin cupos registrados"]:not(:disabled):not(.is-selected) {
    background: #f7ecef; color: #8e3045; border-color: #e4c9d0;
}
.flight-calendar--compact .calendar-day.no-flights[aria-label$=", sin vuelos con tarifa y cupos válidos"]:not(:disabled):not(.is-selected) {
    background: #f5f1e7; color: #71551b; border-color: #e7d9b6;
}
.flight-calendar--compact .calendar-day.is-selected:not(:disabled) { background: #800080; color: #fff; border-color: #800080; }
.flight-calendar--compact .calendar-day.is-today:not(:disabled):not(.is-selected) { border-color: #800080; }
.flight-calendar--compact .calendar-day:not(:disabled):hover { border-color: #800080; }
.flight-calendar--compact .calendar-day:disabled { opacity: 1; color: #88838b; background: #ededed; cursor: not-allowed; }
.flight-calendar--compact .calendar-status:not(:empty) {
    padding: 9px 11px; margin-block: 10px;
    border: 1px solid #e4deea; border-radius: 6px;
    background: #f7f4fa; color: #494052; font-size: 12px; line-height: 1.5;
}
.flight-calendar--compact .calendar-status:empty { display: none; }
.flight-calendar--compact .calendar-legend { line-height: 1.4; }
.flight-calendar--compact .calendar-legend > span { min-width: 0; }
.flight-calendar--compact .calendar-actions { flex-wrap: wrap; }
.flight-calendar--compact .calendar-actions button { min-height: 40px; }
.flight-calendar--compact #calendarApply:disabled { opacity: 1; color: #69636d; background: #e9e7eb; border-color: #d9d4dd; }
/* Las etiquetas de DEMO no se ocultan en móviles. */
.topbar .demo-mark { flex-shrink: 0; }
@media (max-width: 680px) {
    #flightSearchForm .search-grid { grid-template-columns: minmax(0,1fr); }
    #flightSearchForm .swap-btn { min-height: 44px; height: 44px; }
    #flightSearchForm .btn-search { min-height: 52px; }
    #flightSearchForm .ac-dropdown { left: 0; right: auto; width: 100%; max-width: 100%; }
    #flightSearchForm .input-box input, #flightSearchForm .pax-trigger,
    #flightSearchForm .flight-date-trigger { font-size: 16px; }
    .flight-calendar.flight-calendar--compact { width: calc(100% - 16px); padding: 10px; }
    .flight-calendar--compact .flight-calendar-header { grid-template-columns: minmax(0,1fr) 32px; gap: 8px; }
    .flight-calendar--compact .flight-calendar-summary { grid-row: 2; grid-column: 1 / -1; }
    .flight-calendar--compact .calendar-close { grid-row: 1; grid-column: 2; width: 32px; }
    .flight-calendar--compact .flight-calendar-body { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 4px; }
    .flight-calendar--compact .calendar-prev { grid-row: 1; grid-column: 1; }
    .flight-calendar--compact .calendar-next { grid-row: 1; grid-column: 3; }
    .flight-calendar--compact .calendar-nav { width: 36px; height: 40px; }
    .flight-calendar--compact .calendar-months { grid-row: 2; grid-column: 1 / -1; grid-template-columns: minmax(0,1fr); gap: 15px; padding-top: 0; }
    .flight-calendar--compact .calendar-day { min-height: 44px; }
    .flight-calendar--compact .calendar-actions button { min-height: 44px; flex: 1 1 0; }
}
@media (max-width: 360px) {
    .topbar-inner { padding-inline: 10px; gap: 7px; }
    .topbar .nav-right { gap: 5px; }
    .topbar .demo-mark { font-size: 10px; padding: 4px; }
    .topbar .locale { gap: 3px; }
    #fieldPax .pax-panel { width: 100%; }
    .flight-calendar--compact .calendar-day-grid { gap: 4px 2px; }
    .flight-calendar--compact .calendar-date-tab > span { font-size: 10px; }
}
@media (pointer: coarse) {
    #fieldPax .pax-ctrl { grid-template-columns: 44px 24px 44px; gap: 3px; }
    #fieldPax .pax-btn { width: 44px; height: 44px; }
    #flightSearchForm .clear-btn { min-width: 40px; min-height: 44px; }
    .flight-calendar--compact .calendar-day { min-height: 44px; }
}
@media (max-height: 500px) and (orientation: landscape) {
    #flightSearchForm .ac-dropdown, #fieldPax .pax-panel { max-height: 65vh; max-height: 65dvh; }
}
@media (prefers-reduced-motion: reduce) {
    #flightSearchForm *, .flight-calendar--compact * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
