/* =========================================================
   TURISMO RD - ORIGEN Y EVOLUCIÓN
   Page: /{culture}/turismo-en-la-republica-dominicana/
========================================================= */
.tourism-history-page {
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 58%, #ffffff 100%);
    color: var(--color-text);
    overflow-x: hidden;
}

.tourism-history-page .th-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .65rem;
    color: var(--color-danger);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.tourism-history-page .th-kicker::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.tourism-history-page .th-kicker--light {
    color: var(--color-accent);
}

.tourism-history-page .th-section {
    padding: clamp(3.5rem, 2.4rem + 3vw, 6.5rem) 0;
}

.tourism-history-page .th-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(1.6rem, 1.2rem + 1.3vw, 2.6rem);
}

.tourism-history-page .th-section-head--center {
    display: block;
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.tourism-history-page .th-section-head--center .th-kicker {
    justify-content: center;
}

    .tourism-history-page .th-section-head h2,
    .tourism-history-page .th-intro-card h2,
    .tourism-history-page .th-sources-panel h2,
    .tourism-history-page .th-final-cta h2 {
        margin: 0;
        /*color: var(--color-primary-700);*/
        font-size: clamp(1.85rem, 1.35rem + 1.8vw, 3rem);
        font-weight: 850;
        line-height: 1.08;
        text-wrap: balance;
    }

.tourism-history-page .th-section-head p,
.tourism-history-page .th-intro-card p,
.tourism-history-page .th-sources-panel p {
    margin: .75rem 0 0;
    color: var(--color-text-soft);
    max-width: 72ch;
}

/* HERO */
.th-hero {
    position: relative;
    min-height: min(820px, 90vh);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
}

.th-hero__media,
.th-hero__overlay {
    position: absolute;
    inset: 0;
}

.th-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.th-hero__overlay {
    z-index: 1;
    background:
        radial-gradient(circle at 16% 22%, rgba(242, 201, 76, .23), transparent 26%),
        linear-gradient(90deg, rgba(0, 27, 66, .92) 0%, rgba(0, 44, 107, .78) 42%, rgba(0, 0, 0, .42) 100%),
        linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.72) 100%);
}

.th-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: clamp(6rem, 7vw, 8rem);
    padding-bottom: clamp(2.5rem, 4vw, 5rem);
}

.th-hero__grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: clamp(1.5rem, 3vw, 3.5rem);
    align-items: end;
}

.th-hero__copy {
    max-width: 860px;
    color: #fff;
}

.th-hero__copy h1 {
    margin: 0 0 1rem;
    max-width: 12.5ch;
    color: #fff;
    font-size: clamp(2.7rem, 5.2vw, 5.8rem);
    line-height: .96;
    font-weight: 900;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.th-hero__lead {
    max-width: 58ch;
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: clamp(1rem, .95rem + .35vw, 1.32rem);
    line-height: 1.62;
}

.th-hero__actions,
.th-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
}

.th-btn-main {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding-inline: 1.25rem;
    font-weight: 800;
}

.th-btn-main--light {
    color: var(--color-primary-700);
    border-color: rgba(255,255,255,.45);
}

.th-hero-panel {
    position: relative;
    padding: 1.2rem;
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.5);
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
    backdrop-filter: blur(14px);
}

.th-hero-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(242,201,76,.45), transparent 38%, rgba(22,166,182,.25));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    padding: 1px;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.th-hero-panel__label {
    display: block;
    margin-bottom: .85rem;
    color: var(--color-primary-700);
    font-size: .86rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.th-hero-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.th-hero-metric {
    min-height: 138px;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 10px 24px rgba(15,23,42,.07);
}

.th-hero-metric strong {
    display: block;
    color: var(--color-danger);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
    line-height: 1;
    font-weight: 900;
}

.th-hero-metric span {
    display: block;
    margin-top: .45rem;
    color: var(--color-primary-700);
    font-weight: 850;
    line-height: 1.16;
}

.th-hero-metric small {
    display: block;
    margin-top: .35rem;
    color: var(--color-text-soft);
    font-weight: 600;
    line-height: 1.25;
}

/* INTRO */
.th-section--intro {
    padding-top: clamp(2.8rem, 2rem + 2vw, 4.6rem);
}

.th-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(226,232,240,.92);
    box-shadow: var(--shadow-md);
}

.th-intro-card__content {
    padding: clamp(1.5rem, 1rem + 2.2vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.th-intro-card__note {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: .85rem;
    align-items: start;
    margin-top: 1.3rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(0,59,142,.055);
    border: 1px solid rgba(0,59,142,.08);
    color: var(--color-text-soft);
    font-weight: 650;
}

.th-intro-card__note i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.th-intro-card__media img {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
}

/* TIMELINE */
.th-section--timeline {
    background:
        radial-gradient(circle at 5% 10%, rgba(22,166,182,.12), transparent 30%),
        linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.th-timeline {
    position: relative;
    display: grid;
    gap: 1.25rem;
    padding: 1rem 0;
}

.th-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--color-primary), var(--color-danger), var(--color-accent));
    opacity: .18;
}

.th-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 2rem;
}

.th-timeline-item--right .th-timeline-card {
    grid-column: 2;
}

.th-timeline-item__marker {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    border: 5px solid #fff;
    box-shadow: var(--shadow-sm);
    font-size: 1.25rem;
}

.th-timeline-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}

.th-timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.th-timeline-card__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.th-timeline-card__body {
    padding: clamp(1.2rem, 1rem + .9vw, 1.8rem);
}

.th-timeline-card__period {
    display: inline-flex;
    margin-bottom: .65rem;
    padding: .38rem .75rem;
    border-radius: 999px;
    background: rgba(198,40,57,.08);
    color: var(--color-danger);
    font-size: .78rem;
    font-weight: 900;
}

.th-timeline-card h3,
.th-pillar-card h3,
.th-destination-card h3,
.th-video-card h3 {
    margin: 0;
    color: var(--color-primary-700);
    font-weight: 850;
    line-height: 1.16;
    text-wrap: balance;
}

.th-timeline-card h3 {
    font-size: clamp(1.2rem, 1.05rem + .55vw, 1.55rem);
}

.th-timeline-card p,
.th-pillar-card p,
.th-destination-card p,
.th-video-card p {
    color: var(--color-text-soft);
}

.th-timeline-card p {
    margin: .7rem 0 1rem;
}

.th-timeline-card ul {
    display: grid;
    gap: .55rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.th-timeline-card li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--color-text-soft);
    font-weight: 620;
}

.th-timeline-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .68rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-danger);
}

/* PILLARS */
.th-section--pillars {
    background: #fff;
}

.th-pillar-card,
.th-video-card {
    height: 100%;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.th-pillar-card:hover,
.th-video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,59,142,.16);
    box-shadow: var(--shadow-md);
}

.th-pillar-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.th-pillar-card__body,
.th-video-card__body {
    padding: 1.15rem;
}

.th-pillar-card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin-top: -2.6rem;
    margin-bottom: .75rem;
    color: #fff;
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
    font-size: 1.25rem;
}

.th-pillar-card__body span {
    color: var(--color-danger);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.th-pillar-card h3 {
    margin-top: .25rem;
    font-size: 1.12rem;
}

.th-pillar-card p {
    margin: .65rem 0 0;
    font-size: .96rem;
}

/* DESTINATIONS */
.th-section--destinations {
    background: linear-gradient(180deg, rgba(0,59,142,.045) 0%, rgba(22,166,182,.055) 100%);
}

.th-destination-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.th-destination-card {
    min-height: 470px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--color-primary-900);
}

.th-destination-card a {
    position: relative;
    display: block;
    min-height: inherit;
    height: 100%;
    color: #fff;
}

.th-destination-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .55s ease;
}

.th-destination-card:hover img {
    transform: scale(1.07);
}

.th-destination-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,27,66,.35) 44%, rgba(0,27,66,.94) 100%);
}

.th-destination-card__badge {
    align-self: start;
    margin-bottom: auto;
    padding: .42rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    color: var(--color-primary-700);
    font-size: .78rem;
    font-weight: 900;
}

.th-destination-card small {
    color: var(--color-accent);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.th-destination-card h3 {
    margin-top: .25rem;
    color: #fff;
    font-size: 1.28rem;
}

.th-destination-card p {
    margin: .65rem 0 .9rem;
    color: rgba(255,255,255,.86);
    font-size: .96rem;
    line-height: 1.48;
}

.th-destination-card strong {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--color-accent);
    font-size: .94rem;
}

/* VIDEOS */
.th-section--videos {
    background: #fff;
}

.th-video {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.th-video img,
.th-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    object-fit: cover;
}

.th-video img {
    opacity: .78;
    transition: opacity .22s ease, transform .35s ease;
}

.th-video:hover img {
    opacity: .92;
    transform: scale(1.03);
}

.th-video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,.94);
    color: var(--color-danger);
    box-shadow: 0 18px 40px rgba(0,0,0,.24);
    font-size: 1.9rem;
}

.th-video-card h3 {
    font-size: 1.08rem;
}

.th-video-card p {
    margin: .55rem 0 0;
    font-size: .95rem;
}

/* SOURCES */
.th-section--sources {
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.th-sources-panel {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
    gap: 1.2rem;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: var(--shadow-sm);
}

.th-sources-list {
    display: grid;
    gap: .8rem;
}

.th-source-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(226,232,240,.95);
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.th-source-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0,59,142,.18);
    box-shadow: var(--shadow-sm);
}

.th-source-item span {
    grid-column: 1 / -1;
    color: var(--color-danger);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.th-source-item strong {
    color: var(--color-primary-700);
    line-height: 1.25;
}

.th-source-item i {
    color: var(--color-primary);
}

/* FINAL CTA */
.th-section--final {
    padding-top: 0;
    padding-bottom: clamp(3.5rem, 2.4rem + 3vw, 6.5rem);
}

.th-final-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(1.8rem, 1.2rem + 3vw, 4rem);
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(242,201,76,.28), transparent 26%),
        linear-gradient(135deg, var(--color-primary-900), var(--color-primary), #074ea8);
    box-shadow: var(--shadow-lg);
}

.th-final-cta::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.th-final-cta h2 {
    position: relative;
    z-index: 1;
    max-width: 780px;
    color: #fff;
}

.th-final-cta p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: .85rem 0 0;
    color: rgba(255,255,255,.86);
}

.th-final-cta__actions {
    position: relative;
    z-index: 1;
}

/* THEMES */
.tourism-history-page .theme-blue {
    background: linear-gradient(135deg, var(--color-primary), #2a66c7);
}

.tourism-history-page .theme-red {
    background: linear-gradient(135deg, var(--color-danger), #e55462);
}

.tourism-history-page .theme-gold {
    background: linear-gradient(135deg, var(--color-accent-600), var(--color-accent));
    color: var(--color-primary-900);
}

.tourism-history-page .theme-tropical {
    background: linear-gradient(135deg, var(--color-tropical), #42c6d4);
}

.tourism-history-page .theme-green {
    background: linear-gradient(135deg, var(--color-success), #43c477);
}

/* ANIMATIONS */
.th-reveal,
.th-reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .72s ease, transform .72s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

body.is-loaded .th-reveal,
.th-reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.th-delay-1 { transition-delay: .08s; }
.th-delay-2 { transition-delay: .16s; }
.th-delay-3 { transition-delay: .24s; }
.th-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    .th-reveal,
    .th-reveal-up,
    .th-timeline-card,
    .th-pillar-card,
    .th-destination-card img,
    .th-video img {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* RESPONSIVE */
@media (max-width: 1199.98px) {
    .th-hero__grid,
    .th-intro-card,
    .th-sources-panel {
        grid-template-columns: 1fr;
    }

    .th-hero-panel {
        max-width: 720px;
    }

    .th-destination-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .th-timeline::before {
        left: 29px;
    }

    .th-timeline-item {
        grid-template-columns: 1fr;
        padding-left: 76px;
    }

    .th-timeline-item--right .th-timeline-card {
        grid-column: auto;
    }

    .th-timeline-item__marker {
        left: 29px;
    }
}

@media (max-width: 767.98px) {
    .th-hero {
        min-height: auto;
    }

    .th-hero__content {
        padding-top: 5.25rem;
        padding-bottom: 2rem;
    }

    .th-hero__copy h1 {
        max-width: none;
        font-size: clamp(2.28rem, 10vw, 3.45rem);
    }

    .th-hero__lead {
        font-size: 1rem;
    }

    .th-hero__actions,
    .th-final-cta__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .th-btn-main {
        width: 100%;
        min-height: 58px;
    }

    .th-hero-panel__grid {
        grid-template-columns: 1fr 1fr;
        gap: .65rem;
    }

    .th-hero-metric {
        min-height: 122px;
        padding: .85rem;
    }

    .th-hero-metric strong {
        font-size: 1.45rem;
    }

    .tourism-history-page .th-section {
        padding: 3.2rem 0;
    }

    .tourism-history-page .th-section-head {
        display: block;
    }

    .th-intro-card,
    .th-final-cta,
    .th-sources-panel {
        border-radius: 24px;
    }

    .th-intro-card__media img {
        min-height: 280px;
    }

    .th-intro-card__note {
        grid-template-columns: 1fr;
    }

    .th-timeline {
        gap: 1rem;
    }

    .th-timeline-item {
        padding-left: 0;
    }

    .th-timeline::before,
    .th-timeline-item__marker {
        display: none;
    }

    .th-timeline-card,
    .th-pillar-card,
    .th-video-card {
        border-radius: 22px;
    }

    .th-destination-grid {
        grid-template-columns: 1fr;
    }

    .th-destination-card {
        min-height: 420px;
        border-radius: 24px;
    }

    .th-source-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .th-hero-panel__grid {
        grid-template-columns: 1fr;
    }

    .th-hero-metric {
        min-height: auto;
    }

    .th-destination-card {
        min-height: 455px;
    }
}
