#app-header.home-header {
    padding: 1rem 1rem 0;
}

#app-header.home-header .home-header__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(250, 251, 255, 0.98), rgba(218, 225, 255, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(7, 10, 61, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#app-header.home-header .home-brand {
    display: inline-flex;
    align-items: center;
}

#app-header.home-header .home-header__toggle {
    display: none;
    position: static;
    left: auto;
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: transparent;
}

#app-header.home-header .home-header__toggle span {
    background-color: #1715ff;
}

#app-header.home-header .home-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

#app-header.home-header .home-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(23, 21, 255, 0.14);
    border-radius: 999px;
    color: #1715a8;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#app-header.home-header .home-nav__link:hover {
    color: #1715a8;
    transform: translateY(-1px);
    background: rgba(23, 21, 255, 0.08);
    border-color: rgba(23, 21, 255, 0.28);
}

.home-shell__container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.home-shell__container--stacked {
    display: grid;
    gap: 1.5rem;
}

.home-features-split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    align-items: start;
    gap: 1.5rem;
}

.home-module {
    padding: 0 0 0.5rem;
}

.home-module--office-gallery,
.home-module--faq {
    min-width: 0;
}

.home-module__intro {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    color: #ffffff;
}

.home-module__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-module__title {
    margin: 0;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.8rem);
    line-height: 1.05;
}

.home-module__copy {
    max-width: 62ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.home-location-grid,
.home-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-location-card,
.home-policy-card,
.home-faq-item,
.home-cta-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    box-shadow: 0 22px 55px rgba(15, 23, 65, 0.16);
}

.home-location-card,
.home-policy-card {
    padding: 1.35rem;
}

.home-policy-card--cancellation {
    grid-column: span 2;
}

.home-cancellation-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(15, 23, 65, 0.1);
    scroll-margin-top: 1.5rem;
}

.home-cancellation-form__intro h4 {
    margin: 0 0 0.35rem;
    color: #1f2230;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 1.05rem;
}

.home-cancellation-form__intro p,
.home-cancellation-form__actions p {
    color: #667085;
    font-size: 0.86rem;
}

.home-cancellation-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-cancellation-form__field {
    display: grid;
    gap: 0.45rem;
    color: #30364a;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-cancellation-form__field input {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(23, 21, 255, 0.18);
    border-radius: 14px;
    background: #ffffff;
    color: #1f2230;
    font: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-cancellation-form__field input:focus {
    border-color: #1715ff;
    box-shadow: 0 0 0 4px rgba(23, 21, 255, 0.1);
}

.home-cancellation-form__confirm {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.65rem;
    color: #4f586b;
    font-size: 0.86rem;
    cursor: pointer;
}

.home-cancellation-form__confirm input {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: #1715ff;
}

.home-cancellation-form__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-cancellation-form__actions p {
    flex: 1;
    margin: 0;
}

.home-cancellation-form__submit {
    min-height: 48px;
    padding: 0.8rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: #1715a8;
    color: #ffffff;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-cancellation-form__submit:hover {
    background: #0b0a75;
    transform: translateY(-1px);
}

.home-cancellation-form__submit:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.home-cancellation-form__status {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

.home-cancellation-form__status.is-success {
    background: #eaf8ef;
    color: #166534;
}

.home-cancellation-form__status.is-error {
    background: #fff7e6;
    color: #8a5200;
}

.home-location-card__badge,
.home-policy-card__eyebrow,
.home-footer__kicker,
.home-footer__title {
    display: inline-flex;
    align-items: center;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1715ff;
}

.home-location-card h3,
.home-policy-card h3,
.home-cta-panel h3,
.home-footer__brand-block h2 {
    margin: 0.65rem 0 0.6rem;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    line-height: 1.12;
    color: #1f2230;
}

.home-location-card p,
.home-policy-card p,
.home-cta-panel p,
.home-footer__brand-block p {
    margin: 0;
    color: #586375;
}

.home-location-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.home-location-card__meta span,
.home-proof-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(23, 21, 255, 0.08);
    color: #2523b8;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
}

.home-proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.home-proof-chip {
    background: rgba(250, 250, 255, 0.96);
    border: 1px solid rgba(11, 10, 117, 0.18);
    box-shadow: 0 12px 28px rgba(15, 23, 65, 0.12);
    color: #12117a;
}

.home-location-maps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.home-location-map {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    box-shadow: 0 22px 55px rgba(15, 23, 65, 0.16);
}

.home-location-map__body {
    display: grid;
    align-content: start;
    gap: 0.7rem;
}

.home-location-map__eyebrow,
.home-location-map__caption {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-family: "Montserrat", "Segoe UI", sans-serif;
}

.home-location-map__eyebrow {
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(23, 21, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1715ff;
}

.home-location-map__body h3 {
    margin: 0;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    line-height: 1.12;
    color: #1f2230;
}

.home-location-map__body p {
    margin: 0;
    color: #586375;
}

.home-location-map__caption {
    font-size: 0.86rem;
    font-weight: 600;
    color: #15147f;
}

.home-location-map__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #3f5bff, #1715ff);
    color: #ffffff;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-location-map__link:hover {
    color: #ffffff;
}

.home-location-map__frame-shell {
    overflow: hidden;
    min-height: 320px;
    border-radius: 22px;
    background: #f3f4f6;
}

.home-location-map__frame {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

.home-office-gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    touch-action: manipulation;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    box-shadow: 0 22px 55px rgba(15, 23, 65, 0.16);
}

.home-office-gallery__stage {
    display: grid;
    width: 100%;
    min-width: 0;
}

.home-office-gallery__media-shell {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    max-height: min(52vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
}

.home-office-gallery__main-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.home-office-gallery__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(23, 21, 255, 0.16);
    border-radius: 999px;
    background: rgba(23, 21, 255, 0.08);
    color: #2523b8;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.home-office-gallery__thumb-grid {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
    min-width: 0;
    box-sizing: border-box;
}

.home-office-gallery__thumb-strip {
    display: flex;
    min-width: 0;
    max-width: 100%;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x;
}

.home-office-gallery__thumb-strip::-webkit-scrollbar {
    display: none;
}

.home-office-gallery__thumb {
    flex: 0 0 auto;
    width: 88px;
    padding: 0.3rem;
    border: 1px solid rgba(23, 21, 255, 0.08);
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
}

.home-office-gallery__thumb.is-active {
    border-color: rgba(23, 21, 255, 0.36);
    box-shadow: 0 10px 25px rgba(23, 21, 255, 0.12);
    transform: translateY(-1px);
}

.home-office-gallery__thumb-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f4f6;
}

.home-faq-grid {
    display: grid;
    gap: 0.85rem;
}

.home-module--faq .home-module__intro {
    margin-bottom: 1rem;
}

.home-faq-item {
    padding: 1.1rem 1.25rem;
}

.home-faq-item summary {
    list-style: none;
    cursor: pointer;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2230;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item p {
    margin-top: 0.8rem;
    color: #586375;
}

.home-cta-panel {
    margin-top: 1rem;
    padding: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-cta-panel__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #3f5bff, #1715ff);
    color: #ffffff;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-cta-panel__link:hover {
    color: #ffffff;
}

#app-footer.home-footer {
    margin-top: 0;
    padding: 0 1rem 2.5rem;
    text-align: left;
}

.home-footer__shell,
.home-footer__bottom {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.home-footer__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(13, 12, 105, 0.78), rgba(7, 7, 61, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 55px rgba(7, 10, 61, 0.28);
}

.home-footer__brand-block {
    color: #f7f8ff;
}

.home-footer__kicker {
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(244, 246, 255, 0.14);
    color: #f3f5ff;
}

.home-footer__brand-block h2 {
    color: #fafaff;
}

.home-footer__brand-block p {
    color: rgba(239, 242, 255, 0.86);
}

.home-footer__links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-footer__column {
    display: grid;
    gap: 0.55rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-footer__title {
    color: #f4f6ff;
}

.home-footer__link {
    color: rgba(242, 244, 255, 0.88);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.9rem;
}

.home-footer__link:hover {
    color: #ffffff;
}

.home-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0;
    color: rgba(233, 237, 255, 0.8);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.86rem;
}

body.is-itinerary-view #app-header.home-header .home-nav,
body.is-itinerary-view #app-header.home-header .home-header__toggle {
    display: none !important;
}

@media (max-width: 960px) {
    #app-header.home-header .home-brand .app-logo {
        width: min(170px, 44vw);
        max-width: 125px;
        filter: drop-shadow(0 7px 14px rgba(17, 16, 143, 0.16));
    }

    #app-header.home-header .home-header__inner {
        grid-template-columns: auto auto;
        border-radius: 28px;
        padding: 0.85rem 1rem;
    }

    #app-header.home-header .home-header__toggle {
        display: flex;
        justify-self: end;
    }

    #app-header.home-header .home-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding-top: 0.95rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    #app-header.home-header .home-nav.is-open {
        display: flex;
    }

    #app-header.home-header .home-nav__link {
        justify-content: flex-start;
    }

    .home-location-grid,
    .home-policy-grid,
    .home-features-split,
    .home-footer__shell,
    .home-footer__links-grid {
        grid-template-columns: 1fr;
    }

    .home-policy-card--cancellation {
        grid-column: auto;
    }

    .home-office-gallery__thumb-grid {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .home-cta-panel,
    .home-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    #app-header.home-header {
        padding: 0.75rem 0.75rem 0;
    }

    #app-header.home-header .home-header__inner {
        padding: 0.85rem;
    }

    .home-shell__container {
        width: min(100%, calc(100% - 1.5rem));
    }

    .home-location-card,
    .home-policy-card,
    .home-faq-item,
    .home-cta-panel,
    .home-footer__shell,
    .home-location-map,
    .home-office-gallery {
        border-radius: 24px;
    }

    .home-location-map {
        padding: 1rem;
    }

    .home-cancellation-form__fields {
        grid-template-columns: 1fr;
    }

    .home-cancellation-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-cancellation-form__submit {
        width: 100%;
    }

    .home-location-map__frame-shell,
    .home-location-map__frame {
        min-height: 260px;
    }

    .home-office-gallery__media-shell {
        max-height: min(38vh, 300px);
    }

    .home-office-gallery__thumb-grid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-office-gallery__thumb-grid {
        padding-bottom: 1rem;
    }

    .home-office-gallery__thumb {
        width: 76px;
    }

    .home-office-gallery__nav {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }

    .home-module__title {
        font-size: clamp(1.55rem, 8vw, 2rem);
    }
}
/* ---------------------------------------------------------------------------
   Migrated legal content: FAQ categories and expandable policy documents.
   The full privacy notice, contract clauses and rental policies live inside
   <details> blocks so the cards stay short until the reader opens them.
   --------------------------------------------------------------------------- */

.home-faq-category {
    grid-column: 1 / -1;
    margin: 1.4rem 0 0.2rem;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a94a6;
}

.home-faq-category:first-child {
    margin-top: 0;
}

.home-policy-card__details {
    margin-top: 0.9rem;
    border-top: 1px solid rgba(15, 23, 65, 0.1);
    padding-top: 0.8rem;
}

.home-policy-card__details summary {
    list-style: none;
    cursor: pointer;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    color: #1715ff;
}

.home-policy-card__details summary::-webkit-details-marker {
    display: none;
}

.home-policy-card__details summary::after {
    content: " +";
}

.home-policy-card__details[open] summary::after {
    content: " \2212";
}

/* Long documents scroll inside the card instead of stretching the page. */
.home-policy-doc {
    margin-top: 0.9rem;
    max-height: 26rem;
    overflow-y: auto;
    padding-right: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #586375;
}

.home-policy-doc p {
    margin-bottom: 0.75rem;
}

.home-policy-doc__lead {
    font-weight: 600;
    color: #1f2230;
}

.home-policy-doc__item {
    margin-bottom: 1.15rem;
}

.home-policy-doc__item h4 {
    margin-bottom: 0.35rem;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2230;
}

.home-policy-doc__table {
    width: 100%;
    margin: 0.6rem 0 0.8rem;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.home-policy-doc__table th,
.home-policy-doc__table td {
    padding: 0.4rem 0.5rem;
    border: 1px solid rgba(15, 23, 65, 0.12);
    text-align: left;
}

.home-policy-doc__table th {
    font-weight: 700;
    color: #1f2230;
    background: rgba(15, 23, 65, 0.04);
}
/* ---------------------------------------------------------------------------
   FAQ teaser.

   The landing page shows only the first few questions; the full set lives on
   /preguntas. That keeps this module at its original sidebar size beside the
   office gallery, instead of the ~3000px column the full 27 produced.
   --------------------------------------------------------------------------- */

.home-faq-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
    padding-bottom: 0.15rem;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.home-faq-more::after {
    content: "\2192";
}

.home-faq-more:hover,
.home-faq-more:focus-visible {
    border-bottom-color: #ffffff;
    opacity: 0.85;
}

/* The footer legal line ("(c) 2026 Softkar Rent a Car / Corporación Astral
   S.A. de C.V.") is much longer than the old "Softkar 2026" string, so the
   bottom bar wraps instead of crushing the booking link on narrow screens. */
.home-footer__bottom {
    flex-wrap: wrap;
}

.home-footer__legal {
    min-width: 0;
}
