:root {
    --stx-primary: #f97316;
    --stx-primary-dark: #c2410c;
    --stx-navy: #10243e;
    --stx-navy-dark: #071525;
    --stx-sand: #f7f3ed;
    --stx-text: #243244;
    --stx-muted: #687386;
    --stx-white: #ffffff;
    --stx-radius: 1.25rem;
    --stx-shadow: 0 18px 45px rgba(15, 35, 60, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--stx-text);
    background: var(--stx-white);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Encabezado */

header .navbar {
    min-height: 82px;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px);
}

.navbar-brand {
    color: var(--stx-navy) !important;
    font-size: 1.45rem;
    letter-spacing: 0.08em;
}

.navbar .nav-link {
    color: var(--stx-text);
    font-weight: 600;
    padding: 0.65rem 0.9rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--stx-primary);
}

.btn-primary {
    background: var(--stx-primary);
    border-color: var(--stx-primary);
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--stx-primary-dark);
    border-color: var(--stx-primary-dark);
}

/* Hero / Carrusel de promociones */

.promo-hero {
    position: relative;
    overflow: hidden;
    background: var(--stx-navy-dark);
}

.promo-hero .carousel-item {
    height: clamp(520px, 68vh, 700px);
}

.promo-hero__slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.promo-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

.promo-hero__overlay {
    background:
        linear-gradient(
            90deg,
            rgba(7, 21, 37, 0.88) 0%,
            rgba(7, 21, 37, 0.72) 28%,
            rgba(7, 21, 37, 0.38) 48%,
            rgba(7, 21, 37, 0.10) 68%,
            rgba(7, 21, 37, 0.00) 100%
        );
}

.promo-hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.promo-hero__content {
    width: 100%;
    max-width: 600px;
    padding-top: 3rem;
    padding-bottom: 4rem;
    color: var(--stx-white);
}

.promo-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #fdba74;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.promo-hero__title {
    max-width: 580px;
    margin: 0;
    color: var(--stx-white);
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.promo-hero__description {
    max-width: 650px;
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.7;
}

.promo-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.3rem;
}

.promo-hero__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    color: var(--stx-white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 700;
}

.promo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.promo-hero__actions .btn {
    min-width: 170px;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.promo-hero__actions .btn-outline-light:hover,
.promo-hero__actions .btn-outline-light:focus {
    color: var(--stx-navy);
}

.promo-hero__control {
    top: 50%;
    width: 56px;
    height: 56px;
    margin: 0 1.25rem;
    background: rgba(7, 21, 37, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    opacity: 0.8;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    transition: opacity 0.2s ease, background 0.2s ease;
}

.promo-hero__control:hover,
.promo-hero__control:focus {
    background: rgba(249, 115, 22, 0.9);
    opacity: 1;
}

.promo-hero .carousel-indicators {
    z-index: 5;
    gap: 0.4rem;
    margin-bottom: 1.6rem;
}

.promo-hero .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.55);
}

.promo-hero .carousel-indicators .active {
    background-color: var(--stx-primary);
}

@media (max-width: 991.98px) {
    .promo-hero .carousel-item {
        height: 590px;
    }

    .promo-hero__content {
        max-width: 650px;
    }

    .promo-hero__title {
        font-size: clamp(2.6rem, 7vw, 4rem);
    }
}

@media (max-width: 767.98px) {
    .promo-hero .carousel-item {
        height: 540px;
    }

    .promo-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(7, 21, 37, 0.48) 0%,
            rgba(7, 21, 37, 0.78) 46%,
            rgba(7, 21, 37, 0.97) 100%
        );
    }

    .promo-hero__container {
        align-items: flex-end;
    }

    .promo-hero__content {
        padding: 3rem 0 4.5rem;
    }

    .promo-hero__eyebrow {
        margin-bottom: 0.7rem;
        font-size: 0.68rem;
    }

    .promo-hero__title {
        font-size: clamp(2.25rem, 10vw, 3.2rem);
        line-height: 1.05;
    }

    .promo-hero__description {
        margin-top: 1rem;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .promo-hero__meta {
        gap: 0.4rem;
    }

    .promo-hero__meta span {
        padding: 0.4rem 0.65rem;
        font-size: 0.68rem;
    }

    .promo-hero__actions {
        gap: 0.55rem;
        margin-top: 1.3rem;
    }

    .promo-hero__actions .btn {
        width: auto;
        min-width: 0;
        padding: 0.65rem 0.9rem;
        font-size: 0.78rem;
    }

    .promo-hero__control {
        display: none;
    }
}

/* Circuitos */

#circuitos {
    background: var(--stx-sand);
}

#circuitos .text-primary {
    color: var(--stx-primary) !important;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
}

#circuitos h2 {
    color: var(--stx-navy);
    letter-spacing: -0.035em;
}

#circuitos .card {
    overflow: hidden;
    border-radius: var(--stx-radius);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#circuitos .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--stx-shadow) !important;
}

#circuitos .card-body {
    background: var(--stx-white);
}

#circuitos .badge {
    background: rgba(249, 115, 22, 0.12) !important;
    color: var(--stx-primary-dark) !important;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
}

#circuitos .card h2 {
    color: var(--stx-navy);
    font-weight: 800;
}

#circuitos .btn-outline-primary {
    color: var(--stx-primary-dark);
    border-color: var(--stx-primary);
    border-radius: 999px;
    font-weight: 700;
}

#circuitos .btn-outline-primary:hover {
    color: var(--stx-white);
    background: var(--stx-primary);
    border-color: var(--stx-primary);
}

/* Página de circuito */

#salidas {
    background: var(--stx-sand) !important;
}

#salidas .card {
    border-radius: var(--stx-radius);
    box-shadow: var(--stx-shadow) !important;
}

#salidas h2,
#salidas h3 {
    color: var(--stx-navy);
}

/* Footer */

footer {
    background: var(--stx-navy-dark) !important;
}

footer h2,
footer h3 {
    color: var(--stx-white);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fdba74 !important;
}

/* Móvil */

@media (max-width: 767.98px) {
    header .navbar {
        min-height: 70px;
    }

    #circuitos .display-6 {
        font-size: 2.1rem;
    }
}


/* Tarjeta compacta de circuito */

.tour-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16, 36, 62, 0.08);
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(15, 35, 60, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 35, 60, 0.13);
}

/* Imagen */

.tour-card__image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--stx-navy);
}

.tour-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tour-card:hover .tour-card__image img {
    transform: scale(1.04);
}

/* Etiqueta sobre la imagen */

.tour-card__badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    padding: 0.35rem 0.65rem;
    color: #fff;
    background: var(--stx-primary);
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Contenido */

.tour-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.9rem;
}

.tour-card__eyebrow {
    margin: 0 0 0.25rem;
    color: var(--stx-primary-dark);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tour-card__title {
    margin: 0 0 0.2rem;
    color: var(--stx-navy);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.tour-card__subtitle {
    margin: 0 0 0.4rem;
    color: var(--stx-text);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.tour-card__description {
    display: -webkit-box;
    margin: 0 0 0.65rem;
    overflow: hidden;
    color: var(--stx-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Duración */

.tour-card__details {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(16, 36, 62, 0.07);
    border-bottom: 1px solid rgba(16, 36, 62, 0.07);
    font-size: 0.78rem;
}

.tour-card__detail {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.tour-card__detail-icon {
    display: grid;
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    color: var(--stx-primary-dark);
    background: rgba(249, 115, 22, 0.12);
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Precio y botón */

.tour-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.65rem;
}

.tour-card__price-label {
    display: block;
    color: var(--stx-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tour-card__price {
    margin: 0.1rem 0 0;
    color: var(--stx-navy);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
}

.tour-card__price small {
    font-size: 0.6rem;
}

.tour-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.48rem 0.7rem;
    color: #fff;
    background: var(--stx-navy);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.tour-card__button:hover {
    color: #fff;
    background: var(--stx-primary);
    transform: translateX(2px);
}

/* Celular */

/* Tarjeta de circuito - Celular */

@media (max-width: 575.98px) {

    .tour-card {
        width: 100%;
        max-width: 360px;
        margin-inline: auto;
    }

    .tour-card__image {
        height: 180px;
    }

    .tour-card__body {
        padding: 0.95rem;
    }

    .tour-card__title {
        font-size: 1.1rem;
    }

    .tour-card__subtitle {
        font-size: 0.76rem;
    }

    .tour-card__description {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .tour-card__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .tour-card__button {
        width: auto;
        flex: 0 0 auto;
        padding: 0.55rem 0.85rem;
    }
}