@font-face {
    font-family: "Clan OT";
    src: local("FF Clan OT Thin"),local("Clan OT Thin"),url("../fonts/FF Clan OT Thin.otf") format("opentype");
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: "Clan OT";
    src: local("FF Clan OT Book"),local("Clan OT Book"),url("../fonts/FF Clan OT Book.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Clan OT";
    src: local("FF Clan OT News"),local("Clan OT News"),url("../fonts/FF Clan OT News.otf") format("opentype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Clan OT";
    src: local("FF Clan OT Bold"),local("Clan OT Bold"),url("../fonts/FF Clan OT Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Clan OT";
    src: local("FF Clan OT Black"),local("Clan OT Black"),url("../fonts/FF Clan OT Black.otf") format("opentype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Clan OT";
    src: local("FF Clan OT Ultra"),local("Clan OT Ultra"),url("../fonts/FF Clan OT Ultra.otf") format("opentype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --red: #d52b1e;
    --ink: #171717;
    --cream: #f4f0e7;
    --soft: #f4f5f6;
    --line: #dedede;
    --nav-h: 68px;
    --count-h: 132px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #211b18;
    font-family: "Clan OT","Arial Narrow",Arial,sans-serif;
    font-weight: 400;
    background: #fff;
}

button,input,select,textarea {
    font-family: "Clan OT","Arial Narrow",Arial,sans-serif;
}

.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.site-header {
    height: var(--nav-h);
    background: #fff;
    box-shadow: 0 1px 7px #00000014;
    z-index: 1040;
}

.site-header .navbar,.nav-shell {
    height: 100%;
}

.brand-box {
    position: relative;
    z-index: 3;
    width: 136px;
    height: 108px;
    align-self: flex-start;
    flex: 0 0 136px;
}

.brand-box img {
    display: block;
    width: 136px;
    height: 108px;
    object-fit: cover;
}

.navbar-nav {
    gap: .7rem;
}

.nav-link {
    font-weight: 600;
    color: #666 !important;
    font-size: .93rem;
    white-space: nowrap;
}

.nav-link:hover,.nav-link.active {
    color: #222 !important;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: .35rem;
    border: 0;
    background: transparent;
}

.language-dropdown .dropdown-menu {
    min-width: 160px;
}

.hero-carousel {
    height: calc(100dvh - var(--count-h));
    min-height: 520px;
}

.hero-picture,.hero-img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-img {
    object-fit: cover;
}

.countdown-band {
    height: var(--count-h);
    background: #0d0d0d;
    color: #fff;
    display: flex;
    align-items: center;
}

.countdown-title {
    font-size: clamp(1.45rem,2.6vw,2.4rem);
    font-weight: 800;
}

.flip-clock {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.flip-unit {
    text-align: center;
    min-width: 68px;
}

.flip-card {
    height: 66px;
    border-radius: 7px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #111;
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1;
}

.flip-card:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #999;
}

.flip-label {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: .9rem;
}

.welcome-section {
    background: var(--cream);
    scroll-margin-top: var(--nav-h);
}

.video-card {
    border-radius: 10px;
    overflow: hidden;
    background: #222;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute !important;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    border: 2px solid #fff;
    background: #0009;
    color: #fff;
    font-size: 2rem;
    display: grid;
    place-items: center;
}

.welcome-title {
    font-size: clamp(2rem,3.5vw,3.25rem);
    font-weight: 900;
    line-height: .95;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.05rem;
    line-height: 1.45;
}

.itinerary-destinations-section {
    background: #f1f4f7;
}

.section-heading h2 {
    font-size: clamp(2rem,3.2vw,3.2rem);
    font-weight: 900;
    margin: 0;
}

.section-heading p {
    margin: .2rem 0 0;
}

.itinerary-card .accordion-item {
    border: 0;
    border-radius: 10px !important;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px #d52b1e12;
}

.itinerary-card .accordion-button {
    padding: 1rem 1.15rem;
    font-weight: 800;
    color: var(--red);
    background: #fff;
    box-shadow: none !important;
}

.itinerary-card .accordion-button:not(.collapsed) {
    color: #fff;
    background: var(--red);
}

.date-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #fff;
    background: var(--red);
}

.accordion-button:not(.collapsed) .date-icon {
    background: #fff;
    color: var(--red);
}

.itinerary-card .accordion-body {
    padding: 1.2rem;
    background: #fff;
}

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    bottom: 10px;
    width: 2px;
    background: #ead7d4;
}

.event {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 0 0 1rem;
}

.event:before {
    content: "";
    position: absolute;
    left: -25px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--red);
}

.time {
    font-weight: 800;
    color: var(--red);
    white-space: nowrap;
}

.description {
    line-height: 1.45;
}

.itinerary-side-img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    max-height: 820px;
    object-fit: cover;
    border-radius: 8px;
}

.destination-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 8px #0002;
    transition: .25s;
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px #0002;
}

.destination-card img {
    width: 100%;
    aspect-ratio: 1.55/1;
    object-fit: cover;
}

.destination-card-footer {
    min-height: 58px;
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
}

.destination-arrow {
    width: 38px;
    height: 38px;
    border: 1.5px solid #222;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.destination-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.destination-modal .modal-dialog {
    max-height: 92dvh;
}

.destination-modal .modal-content {
    max-height: 92dvh;
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    box-shadow: 0 2px 10px #0004;
}

.modal-hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-copy {
    padding: 2rem 2.2rem 2.5rem;
    color: #737373;
}

.modal-copy h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #6b6b6b;
    margin-bottom: .2rem;
}

.modal-copy h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.35rem;
}

.modal-copy p,.modal-copy li {
    font-size: 1.05rem;
    line-height: 1.45;
}

.visit-info-section {
    background: #fff;
}

.visit-info-title {
    text-align: center;
    font-weight: 900;
    font-size: clamp(2rem,4vw,3.6rem);
}

.visit-tabs {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin: 1rem 0 2.2rem;
}

.visit-tab {
    border: 0;
    background: transparent;
    padding: .65rem .25rem;
    font-weight: 700;
    color: #777;
    border-bottom: 4px solid transparent;
}

.visit-tab.active {
    color: #111;
    border-color: #111;
}

.visit-panel {
    display: none;
}

.visit-panel.active {
    display: block;
}

.climate-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: center;
}

.peru-map {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.climate-stage {
    position: relative;
}

.climate-stage>img {
    width: 100%;
    aspect-ratio: 16/8.4;
    object-fit: cover;
}

.climate-location {
    position: absolute;
    left: 18px;
    bottom: 15px;
    color: #fff;
    font-weight: 800;
    background: #5dba24;
    padding: .35rem .6rem;
    border-radius: 4px;
}

.climate-controls {
    display: flex;
    gap: .5rem;
    margin: .7rem 0;
}

.climate-controls button {
    border: 0;
    background: transparent;
    font-size: 2rem;
}

.climate-content h3 {
    font-size: 2rem;
    font-weight: 900;
}

.currency-copy {
    font-size: 1rem;
    line-height: 1.45;
}

.currency-warning {
    color: var(--red);
    font-size: 1.05rem;
}

.coins-image {
    max-width: 620px;
    width: 100%;
    height: auto;
}

.banknotes-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.banknote h3 {
    font-size: 1rem;
    font-weight: 800;
}

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

.transport-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
}

.transport-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: .8rem;
    margin-bottom: 1.6rem;
}

.transport-item>i {
    font-size: 2rem;
    color: var(--red);
}

.transport-item h3,.security-box h3 {
    font-size: 1rem;
    font-weight: 900;
}

.transport-item p {
    margin: 0;
}

.transport-note,.security-box {
    background: #f1f1f1;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}

.security-intro {
    margin-bottom: 1.5rem;
}

.site-footer {
    background: #111;
    color: #bbb;
    font-size: .84rem;
}

.site-footer h3 {
    font-size: .9rem;
    color: #fff;
    font-weight: 800;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin: .5rem 0;
}

.footer-placeholder {
    object-fit: cover;
    max-width: 100%;
}

.footer-legal {
    font-size: .75rem;

}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    z-index: 1030;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#preloader {
    position: fixed;
    inset: 0;
    background: #24140f;
    color: #fff;
    z-index: 2000;
    display: grid;
    place-content: center;
    text-align: center;
    transition: .45s;
}

.loader-line {
    height: 2px;
    background: #ffffff33;
    margin-top: 15px;
    overflow: hidden;
}

.loader-line span {
    display: block;
    width: 40%;
    height: 100%;
    background: #fff;
    animation: load 1s infinite;
}

@keyframes load {
    from { transform: translateX(-100%); }
    to { transform: translateX(250%); }
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

@media (max-width:991.98px) {
    :root {
        --nav-h: 64px;
        --count-h: 175px;
    }

    .site-header {
        height: auto;
        min-height: var(--nav-h);
    }

    .brand-box {
        width: 108px;
        height: 86px;
        flex-basis: 108px;
    }

    .brand-box img {
        width: 108px;
        height: 86px;
    }

    .navbar-collapse {
        background: #fff;
        margin: 0 -12px;
        padding: 1rem 1.25rem 1.3rem;
        box-shadow: 0 8px 14px #0002;
    }

    .hero-carousel {
        min-height: 470px;
    }

    .countdown-band {
        height: var(--count-h);
    }

    .countdown-band .row {
        text-align: center;
    }

    .flip-clock {
        justify-content: center;
    }

    .welcome-title br {
        display: none;
    }

    .itinerary-side-img {
        min-height: 380px;
        max-height: 520px;
    }

    .climate-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .banknotes-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:575.98px) {
    :root {
        --count-h: 190px;
    }

    .hero-carousel {
        height: calc(100dvh - var(--count-h));
        min-height: 430px;
    }

    .countdown-band .container {
        padding-top: .7rem !important;
        padding-bottom: .7rem !important;
    }

    .countdown-title {
        font-size: 1.25rem;
    }

    .flip-clock {
        gap: 7px;
    }

    .flip-unit {
        min-width: 60px;
    }

    .flip-card {
        height: 58px;
        font-size: 2.15rem;
    }

    .flip-label {
        font-size: .78rem;
    }

    .welcome-section .container,.itinerary-destinations-section .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-heading h2 {
        font-size: 1.75rem;
    }

    .event {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .itinerary-side-img {
        min-height: 320px;
    }

    .modal-dialog {
        margin: 0;
    }

    .destination-modal .modal-content {
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .modal-hero-img {
        height: 220px;
    }

    .modal-copy {
        padding: 1.4rem 1.2rem 2rem;
    }

    .modal-copy h2 {
        font-size: 1.65rem;
    }

    .visit-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

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

    .footer-images img {
        width: 120px;
        height: 120px;
    }
}

/*v11 — Ofertas + Conoce la Ruta de León*/

.route-section h2 {
    font-family: "Clan OT",Arial,sans-serif;
    font-weight: 800;
    font-size: clamp(1.9rem,3vw,2.8rem);
    margin: 0;
}

.route-section {
    background: #fff;
    padding: 58px 0 42px;
}

.route-section>.container>p {
    max-width: 1180px;
    margin: 14px auto 28px;
}

.route-destination-tabs {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.route-destination-tabs button {
    border: 0;
    padding: 14px 16px;
    background: #eef0f2;
    font-weight: 700;
    text-align: left;
}

.route-destination-tabs button.active {
    background: #d52b1e;
    color: #fff;
}

.route-workspace {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 12px;
}

.route-panel {
    border: 1px solid #e5e8ec;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
}

.route-panel h3 {
    font-size: 1.7rem;
    font-weight: 800;
}

.route-circuit-tabs {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.route-circuit-tabs button {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    background: #fff;
    padding: 10px 12px;
    font-weight: 700;
    text-align: left;
}

.route-circuit-tabs button.active {
    border-color: #d52b1e;
    color: #d52b1e;
    background: #fff6f6;
}

.route-badge-num {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    color: #fff;
    background: #6a6470;
}

.route-circuit-tabs button.active .route-badge-num {
    background: #d52b1e;
}

.route-place-list {
    background: #fff4f4;
    border-radius: 8px;
    padding: 14px;
}

.route-place-list h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #d52b1e;
}

.route-place-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.route-place-list li {
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
}

.route-place-list li:hover {
    background: #ffe3e3;
    color: #d52b1e;
}

.route-map-wrap {
    overflow: hidden;
    border: 1px solid #e5e8ec;
    border-radius: 10px;
    min-height: 560px;
}

#routeMap {
    height: 560px;
    width: 100%;
}

.route-cards {
    margin-top: 28px;
}

.route-card {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
    padding: 0;
    text-align: left;
    box-shadow: 0 2px 8px #0002;
    border-radius: 7px;
    overflow: hidden;
}

.route-card img {
    width: 100%;
    aspect-ratio: 1.45/1;
    object-fit: cover;
}

.route-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    font-weight: 800;
}

.route-card-foot span:last-child {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid #111;
    border-radius: 50%;
}

.prefooter-banner {
    background: #fff;
}

.prefooter-banner .container {
    padding-top: 0;
}

.prefooter-banner img {
    display: block;
    width: 100%;
    height: 218px;
    object-fit: cover;
    margin: 0;
}

.site-footer {
    margin-top: 0 !important;
}

@media (max-width:991.98px) {
    .route-workspace {
        grid-template-columns: 1fr;
    }

    .route-map-wrap {
        order: 1;
        min-height: 430px;
    }

    #routeMap {
        height: 430px;
    }

    .route-panel {
        order: 2;
    }

    .route-destination-tabs {
        display: flex;
        overflow-x: auto;
    }

    .route-destination-tabs button {
        min-width: 150px;
    }

    .prefooter-banner img {
        height: 190px;
    }
}

@media (max-width:575.98px) {
    .route-section {
        padding-top: 38px;
    }

    .route-circuit-tabs {
        grid-template-columns: repeat(2,1fr);
    }

    .route-circuit-tabs button {
        justify-content: center;
    }

    .route-map-wrap {
        min-height: 360px;
    }

    #routeMap {
        height: 360px;
    }

    .prefooter-banner img {
        height: 145px;
    }
}

/*v12: Navbar, hero con tres imágenes y preloader con logo*/

.navbar-nav {
    gap: clamp(.25rem,.9vw,.8rem);
}

.language-dropdown {
    flex-shrink: 0;
}

.language-toggle {
    padding: .55rem .35rem;
    cursor: pointer;
}

.language-toggle .bi {
    font-size: 1.15rem;
}

.hero-carousel {
    position: relative;
}

.hero-logo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    pointer-events: none;
    padding: 0;
}

.hero-logo-overlay img {
    display: block;
    width: clamp(210px,32vw,470px);
    max-height: 65%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,.25));
}

.preloader-inner {
    width: 180px;
    margin: auto;
}

.preloader-logo {
    display: block;
    width: 180px;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

.preloader-inner .loader-line {
    width: 100%;
}

@media (max-width:991.98px) {
    .language-dropdown {
        margin-top: .7rem;
        border-top: 1px solid #eee;
        padding-top: .65rem;
    }

    .hero-logo-overlay {
        padding-top: 72px;
    }
}

@media (max-width:575.98px) {
    .preloader-inner,.preloader-logo {
        width: 140px;
    }

    .hero-logo-overlay img {
        width: min(74vw,340px);
        max-height: 55%;
    }

    .hero-carousel {
        min-height: 0;
    }
}

@media (max-height:700px) {
    .hero-carousel {
        min-height: 0;
    }
}

/* ============================================================
   v13 — Hero, navegación y accesibilidad responsive
   ============================================================ */
.hero-carousel {
    height: calc(100dvh - var(--nav-h) - var(--count-h));
    min-height: 0;
    margin-top: var(--nav-h);
}
.hero-logo-overlay {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}
.hero-logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}
.hero-logo-overlay img {
    width: clamp(210px, 32vw, 470px);
    max-height: 70%;
}
.route-card {
    cursor: pointer;
    font: inherit;
}
.route-card:hover, .route-card:focus-visible {
    box-shadow: 0 8px 22px #0002;
    transform: translateY(-3px);
}
.route-card:focus-visible, .route-place-list li:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}
#ruta, #ruta-leon { scroll-margin-top: calc(var(--nav-h) + 12px); }
@media (max-width: 991.98px) {
    .hero-carousel { min-height: 0; }
    .hero-logo-overlay { padding: 0; }
}
@media (max-width: 575.98px) {
    .hero-carousel { height: calc(100dvh - var(--nav-h) - var(--count-h)); min-height: 0; }
    .hero-logo-container { padding-left: 18px; padding-right: 18px; }
    .hero-logo-overlay img { width: min(70vw, 300px); max-height: 60%; }
}
@media (max-height: 550px) {
    .hero-logo-overlay img { max-height: 60%; }
}

/* v14: tarjetas de destinos externos bajo el mapa */
.route-cards { margin-top: 28px; align-items: stretch; }
.route-cards > [class*="col-"] { display: flex; }
.route-cards .route-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.route-cards .route-card:hover,
.route-cards .route-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px #0002;
}
.route-cards .route-card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.route-cards .route-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.route-cards .route-card-foot { margin-top: auto; min-height: 66px; }
@media (max-width: 575.98px) {
    .route-cards .route-card img { aspect-ratio: 16 / 9; }
}


/* v15: enlaces del pie de página. Blanco permanente; subrayado solo al hover. */
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:active {
    color: #ffffff;
    text-decoration: none;
}
.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    outline-offset: 3px;
}

/* ============================================================
   V17: VIDEO INTEGRADO Y ANIMACIÓN DEL ITINERARIO
   ============================================================ */
.video-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* El GIF se muestra completo, sin recortar ni deformar su contenido. */
.itinerary-side-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
}


/* ============================================================
   V18: AJUSTES DE IDENTIDAD Y COLORES DE SECCIONES
   ============================================================ */

/* Altura de la franja de cuenta regresiva en escritorio.
   En pantallas estrechas conservamos altura adaptable para evitar
   que el texto y las cuatro cifras se superpongan. */
@media (min-width: 992px) {
    :root { --count-h: 90px; }
    .countdown-band .container {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }
    .countdown-band .flip-card { height: 52px; font-size: 2rem; }
    .countdown-band .flip-label { margin-top: 3px; font-size: 0.78rem; }
}

/* El itinerario y las seis tarjetas de destinos comparten sección. */
.itinerary-destinations-section { background-color: #ffffff; }

/* Fondo gris claro de Información para tu visita. */
.visit-info-section { background-color: #F1F4F7; }


/* ==============================================================
   v19 — Cabecera Ruta de León y banners editoriales responsivos
   ============================================================== */
.route-intro {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(24px, 3.2vw, 54px);
    margin-bottom: 30px;
}
.route-intro-logo img {
    display: block;
    width: 100%;
    max-width: 410px;
    height: auto;
    object-fit: contain;
}
.route-intro-copy h2 {
    text-align: left;
    margin: 0 0 16px;
}
.route-intro-copy p {
    margin: 0;
    line-height: 1.5;
}
.article-banner {
    background: #fff;
    padding: 0 0 18px;
}
.article-banner a {
    display: block;
    overflow: hidden;
}
.article-banner a:focus-visible,
.prefooter-banner a:focus-visible {
    outline: 3px solid #d52b1e;
    outline-offset: 4px;
}
.article-banner img {
    display: block;
    width: 100%;
    height: auto;
}
/* Preservar el contenido completo de ambos banners, sin recortarlo. */
.prefooter-banner picture { display: block; }
.prefooter-banner picture img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    .route-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }
    .route-intro-logo img {
        max-width: 290px;
        margin: 0 auto;
    }
    .route-intro-copy h2 { margin-bottom: 12px; }
    .article-banner { padding-bottom: 12px; }
}

/* ============================================================
   v20 — Logo principal del Hero un 15 % más grande.
   No afecta al preloader ni al logo negro de la sección Ruta.
   ============================================================ */
.hero-logo-overlay img {
    width: clamp(242px, 36.8vw, 540px);
    height: auto;
    max-height: 70%;
    object-fit: contain;
}
@media (max-width: 575.98px) {
    .hero-logo-overlay img {
        width: min(80vw, 345px);
        max-height: 60%;
    }
}
@media (max-height: 550px) {
    .hero-logo-overlay img { max-height: 60%; }
}


/* ============================================================
   V22 - AJUSTES EXCLUSIVOS PARA MOVIL (hasta 767.98 px)
   ============================================================ */
@media (max-width: 767.98px) {
  /* Contador compacto de 100 px: titulo + cuatro unidades */
  :root { --count-h: 100px; }
  .countdown-band { height: 100px; min-height: 100px; }
  .countdown-band .container {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  .countdown-band .row { --bs-gutter-y: 5px; text-align: center; }
  .countdown-title { font-size: clamp(.85rem, 3.5vw, 1rem); line-height: 1.1; }
  .flip-clock { justify-content: center; gap: clamp(4px, 1.8vw, 9px); }
  .flip-unit { min-width: 0; width: clamp(49px, 15vw, 64px); }
  .flip-card { height: 39px; font-size: 1.65rem; border-radius: 5px; }
  .flip-label { font-size: .65rem; margin-top: 2px; line-height: 1.1; }

  /* Footer centrado y apilado como la referencia movil */
  .site-footer { text-align: center; }
  .site-footer > .container { padding-top: 38px !important; padding-bottom: 25px !important; }
  .site-footer .footer-top { --bs-gutter-y: 26px; }
  .site-footer .footer-top > div { width: 100%; flex: 0 0 100%; }
  .site-footer h3 { font-size: 1rem; margin-bottom: 8px; }
  .site-footer .footer-list li { margin: 8px 0; }
  .site-footer .footer-top p { margin-bottom: 17px; line-height: 1.4; }
  .site-footer .footer-list.social {
    display: flex; justify-content: center; align-items: center;
    gap: clamp(13px, 5vw, 23px); flex-wrap: nowrap;
  }
  .site-footer .footer-list.social li { margin: 4px 0 0; }
  .site-footer .footer-list.social a {
    font-size: 0; display: inline-flex; align-items: center;
    justify-content: center; width: 32px; height: 34px;
  }
  .site-footer .footer-list.social i { font-size: 28px; line-height: 1; }
  .site-footer .footer-list.social li { position: relative; }
  .site-footer .footer-list.social li > i {
    position: absolute; inset: 0; pointer-events: none;
    font-size: 28px; line-height: 34px;
  }
  /* Icono pertenece al li en el HTML existente; enlace cubre su area */
  .site-footer .footer-list.social a { position: relative; z-index: 1; }
  .site-footer .footer-list.social li > i { z-index: 0; }
  .site-footer .footer-images { margin-top: 30px !important; margin-bottom: 38px !important; --bs-gutter-y: 22px; }
  .site-footer .footer-images > div { width: 50%; }
  .site-footer .footer-images img { width: min(145px, 100%); height: auto; object-fit: contain; }
  .site-footer .footer-logos { flex-direction: column; gap: 35px; }
  .site-footer .footer-logos > div { width: 100%; text-align: center !important; }
  .site-footer .footer-logos > div:first-child {
    display: flex !important; flex-direction: column; flex-wrap: nowrap !important;
    align-items: center !important; gap: 35px !important;
  }
  .site-footer .footer-logos img { height: auto; object-fit: contain; margin-inline: auto !important; }
  .site-footer .footer-logos .footer-logo-wide { width: min(210px, 85%); }
  .site-footer .footer-logos .footer-logo-small { width: auto; max-width: 145px; }
  .site-footer .footer-legal { margin-top: 45px !important; font-size: .73rem; line-height: 1.5; }
}
@media (max-width: 360px) {
  .flip-unit { width: 48px; }
  .flip-card { height: 36px; font-size: 1.45rem; }
  .site-footer .footer-list.social { gap: 11px; }
}

/* V22: iconos dentro de los enlaces, accesibles en movil y escritorio */
.site-footer .footer-list.social .social-label { margin-left: 5px; }
@media (max-width: 767.98px) {
  .site-footer .footer-list.social .social-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

/* v23 · Animaciones institucionales sutiles */
@media (prefers-reduced-motion: no-preference) {
  .site-header .nav-link:not(.dropdown-toggle) { position: relative; }
  .site-header .nav-link:not(.dropdown-toggle)::after { content: ""; position: absolute; bottom: 7px; left: 10%; right: 10%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
  .site-header .nav-link:not(.dropdown-toggle):hover::after, .site-header .nav-link:not(.dropdown-toggle):focus-visible::after { transform: scaleX(1); }
  .hero-logo-overlay img { animation: heroLogoEntrance .8s ease-out both; }
  @keyframes heroLogoEntrance { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  .v23-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .v23-reveal.v23-visible { opacity: 1; transform: none; }
  .destination-card img, .route-cards .route-card img { transition: transform .35s ease; }
  .destination-card:hover img, .destination-card:focus-visible img, .route-cards .route-card:hover img, .route-cards .route-card:focus-visible img { transform: scale(1.03); }
  .route-card-foot .bi-arrow-right, .destination-arrow .bi-arrow-right { display: inline-block; transition: transform .35s ease; }
  .route-card:hover .bi-arrow-right, .route-card:focus-visible .bi-arrow-right, .destination-card:hover .bi-arrow-right, .destination-card:focus-visible .bi-arrow-right { transform: translateX(4px); }
  .visit-panel.active { animation: v23PanelIn .3s ease both; }
  @keyframes v23PanelIn { from { opacity: .35; } to { opacity: 1; } }
  .flip-card.v23-tick { animation: v23Tick .3s ease; }
  @keyframes v23Tick { 0% { transform: perspective(200px) rotateX(-9deg); opacity: .75; } 100% { transform: perspective(200px) rotateX(0); opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .v23-reveal { opacity: 1 !important; transform: none !important; }
  .hero-logo-overlay img { animation: none !important; }
}


/* v24 · Menú móvil: subrayado ajustado al texto, sin desbordamiento. */
@media (max-width: 991.98px) {
  .site-header #mainNav .navbar-nav { align-items: flex-start; }
  .site-header #mainNav .navbar-nav .nav-link {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }
  .site-header #mainNav .navbar-nav .nav-link::after {
    left: 0;
    right: 0;
    bottom: 2px;
  }
}
