/* =========================
   COSTUMBRES DOMINICANAS
========================= */
.customs-page {
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
    overflow: hidden;
}

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

.customs-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding-inline: 1.2rem;
    font-weight: 800;
}

.customs-btn--glass {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.52);
    color: #fff;
    backdrop-filter: blur(10px);
}

.customs-btn--glass:hover {
    background: rgba(255,255,255,.95);
    border-color: rgba(255,255,255,.95);
    color: var(--color-primary-700);
}

/* HERO */
.customs-hero {
    position: relative;
    min-height: 84vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--color-primary-900);
}

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

.customs-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customs-hero__overlay {
    background:
        radial-gradient(circle at 75% 30%, rgba(242,201,76,.22) 0%, transparent 28%),
        linear-gradient(90deg, rgba(0,27,66,.92) 0%, rgba(0,44,107,.76) 46%, rgba(0,0,0,.46) 100%);
}

.customs-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(1.25rem, 2vw, 2.5rem);
    align-items: end;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.customs-hero__copy {
    color: #fff;
    max-width: 820px;
}

.customs-hero__kicker {
    color: var(--color-accent);
}

.customs-hero h1 {
    margin: 0 0 1rem;
    max-width: 13ch;
    font-size: clamp(2.55rem, 5vw, 5.4rem);
    line-height: .96;
    font-weight: 900;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.customs-hero__description {
    max-width: 58ch;
    color: rgba(255,255,255,.9);
    font-size: clamp(1rem, 1.1vw, 1.22rem);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.customs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 1.5rem;
}

.customs-hero__stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.customs-hero__stats li {
    min-width: 155px;
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
}

.customs-hero__stats strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.1;
}

.customs-hero__stats span {
    display: block;
    color: rgba(255,255,255,.78);
    font-size: .86rem;
    line-height: 1.35;
    margin-top: .25rem;
}

.customs-hero__panel {
    display: grid;
    gap: .65rem;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 26px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
}

.customs-hero__panel-label {
    display: block;
    color: var(--color-danger);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .2rem;
}

.customs-hero__panel a {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 52px;
    padding: .85rem .9rem;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 16px;
    background: #fff;
    color: var(--color-primary-700);
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

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

.customs-hero__panel i {
    color: var(--color-danger);
    font-size: 1.1rem;
}

.customs-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.22, 1, .36, 1);
}

body.is-loaded .customs-reveal {
    opacity: 1;
    transform: translateY(0);
}

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

/* SECTIONS */
.customs-section {
    padding: clamp(3.5rem, 2rem + 3vw, 6rem) 0;
}

.customs-section--white {
    background: #fff;
}

.customs-section--soft {
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.customs-section--gallery {
    background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
}

.customs-section--dark {
    background:
        radial-gradient(circle at 10% 15%, rgba(198,40,57,.18) 0%, transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(242,201,76,.16) 0%, transparent 24%),
        linear-gradient(135deg, var(--color-primary-900), var(--color-primary-700));
    color: #fff;
}

.customs-section--cta {
    padding-top: 0;
    background: #fff;
}

.customs-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.customs-section-head h2,
.customs-intro h2,
.customs-language-copy h2,
.customs-joy-panel h2,
.customs-cta h2 {
    color: var(--color-primary-700);
    font-size: var(--text-2xl);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.025em;
    margin: 0;
    text-wrap: balance;
}

.customs-section-head p,
.customs-intro p,
.customs-language-copy p,
.customs-joy-panel p,
.customs-cta p {
    color: var(--color-text-soft);
    max-width: 68ch;
    margin: .75rem 0 0;
}

.customs-section-head--inverse h2,
.customs-section-head--inverse p {
    color: #fff;
}

.customs-section-head--inverse p {
    color: rgba(255,255,255,.78);
}

.customs-section-head--inverse .customs-kicker {
    color: var(--color-accent);
}

.customs-lead {
    color: var(--color-primary-700) !important;
    font-size: var(--text-lg);
    font-weight: 700;
}

/* INTRO */
.customs-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(1rem, 1vw, 1.5rem);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 30px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
    box-shadow: var(--shadow-sm);
}

.customs-intro__content {
    padding: clamp(1rem, 1vw, 1.5rem);
}

.customs-intro__media {
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.customs-intro__media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

/* CARDS */
.customs-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.customs-feature-card,
.customs-folklore-card,
.customs-video-card,
.customs-expression-card,
.customs-joy-card,
.customs-legend-card,
.customs-gallery-item {
    border: 1px solid rgba(226,232,240,.9);
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.customs-feature-card {
    overflow: hidden;
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

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

.customs-feature-card__media {
    position: relative;
    overflow: hidden;
}

.customs-feature-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .35s ease;
}

.customs-feature-card:hover .customs-feature-card__media img {
    transform: scale(1.04);
}

.customs-feature-card__media span {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: .38rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--color-primary-700);
    font-size: .75rem;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
}

.customs-feature-card__body {
    padding: 1.1rem;
}

.customs-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(0,59,142,.08);
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: .9rem;
}

.customs-feature-card h3,
.customs-folklore-card h3,
.customs-video-card h3,
.customs-expression-card h3,
.customs-joy-card h3,
.customs-legend-card h3 {
    margin: 0 0 .55rem;
    color: var(--color-primary-700);
    font-size: 1.12rem;
    line-height: 1.25;
    font-weight: 900;
}

.customs-feature-card p,
.customs-folklore-card p,
.customs-video-card p,
.customs-expression-card p,
.customs-joy-card p,
.customs-legend-card p {
    color: var(--color-text-soft);
    margin: 0;
    font-size: .96rem;
    line-height: 1.55;
}

/* FOLKLORE */
.customs-folklore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.customs-folklore-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    overflow: hidden;
    min-height: 310px;
}

.customs-folklore-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customs-folklore-card__content {
    padding: clamp(1rem, 1.1vw, 1.35rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.customs-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--color-danger);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .65rem;
}

.customs-highlight {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: .65rem;
    margin-top: 1rem;
    padding: .85rem;
    border-radius: 16px;
    background: rgba(242,201,76,.16);
    color: var(--color-primary-900);
    font-weight: 800;
    font-size: .92rem;
    line-height: 1.4;
}

.customs-highlight i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--color-accent);
}

/* LEGENDS */
.customs-legends-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.customs-legend-card {
    overflow: hidden;
    height: 100%;
    background: rgba(255,255,255,.96);
}

.customs-legend-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.customs-legend-card__content {
    padding: 1.1rem;
}

.customs-legend-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .8rem;
}

.customs-legend-card__tags span {
    display: inline-flex;
    padding: .32rem .65rem;
    border-radius: 999px;
    background: rgba(0,59,142,.08);
    color: var(--color-primary-700);
    font-size: .74rem;
    font-weight: 900;
}

/* LANGUAGE */
.customs-language-layout {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: clamp(1.2rem, 3vw, 3rem);
    align-items: start;
}

.customs-language-copy {
    position: sticky;
    top: 112px;
    padding: 1.5rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(0,59,142,.05) 0%, rgba(0,59,142,.1) 100%);
    border: 1px solid rgba(0,59,142,.08);
}

.customs-language-note {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    color: var(--color-text-soft);
    box-shadow: var(--shadow-sm);
}

.customs-language-note i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--color-primary);
    color: #fff;
}

.customs-expression-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.customs-expression-card {
    padding: 1rem;
    transition: transform .22s ease, box-shadow .22s ease;
}

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

.customs-expression-card span {
    display: inline-flex;
    padding: .32rem .65rem;
    border-radius: 999px;
    background: rgba(198,40,57,.08);
    color: var(--color-danger);
    font-size: .72rem;
    font-weight: 900;
    margin-bottom: .75rem;
}

.customs-expression-card h3 {
    font-size: 1.32rem;
    color: var(--color-primary-700);
}

.customs-expression-card strong {
    display: block;
    color: var(--color-text);
    margin-bottom: .35rem;
}

/* JOY */
.customs-joy-panel {
    padding: clamp(1.25rem, 2.2vw, 2rem);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.86)),
        radial-gradient(circle at 20% 0%, rgba(242,201,76,.26), transparent 32%);
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: var(--shadow-sm);
}

.customs-joy-panel__header {
    max-width: 820px;
    margin-bottom: 1.25rem;
}

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

.customs-joy-card {
    padding: 1.1rem;
}

.customs-joy-card i {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), #2a66c7);
    font-size: 1.25rem;
    margin-bottom: .85rem;
}

/* VIDEOS */
.customs-video-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(2, minmax(0, .875fr));
    gap: 1rem;
}

.customs-video-card {
    overflow: hidden;
}

.customs-video-card:first-child {
    grid-row: span 2;
}

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

.customs-video-card__thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: .82;
    transition: transform .35s ease, opacity .35s ease;
}

.customs-video-card:first-child .customs-video-card__thumb img {
    aspect-ratio: 16 / 10;
}

.customs-video-card__thumb:hover img {
    transform: scale(1.04);
    opacity: .72;
}

.customs-video-card__play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--color-primary);
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.customs-video-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.customs-video-card__body {
    padding: 1rem;
}

/* GALLERY */
.customs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .9rem;
}

.customs-gallery-item {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    margin: 0;
}

.customs-gallery-item:nth-child(1),
.customs-gallery-item:nth-child(4) {
    grid-column: span 2;
}

.customs-gallery-item:nth-child(2),
.customs-gallery-item:nth-child(3),
.customs-gallery-item:nth-child(5),
.customs-gallery-item:nth-child(6) {
    grid-column: span 2;
}

.customs-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform .35s ease;
}

.customs-gallery-item:hover img {
    transform: scale(1.04);
}

.customs-gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.72) 100%);
}

.customs-gallery-item figcaption span {
    display: inline-flex;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-primary-900);
    font-size: .72rem;
    font-weight: 900;
    margin-bottom: .45rem;
}

.customs-gallery-item figcaption strong {
    display: block;
    font-size: 1.05rem;
}

/* CTA */
.customs-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1.4rem, 2.4vw, 2.4rem);
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(242,201,76,.22) 0%, transparent 30%),
        linear-gradient(135deg, var(--color-primary-700), var(--color-primary-900));
    box-shadow: var(--shadow-lg);
}

.customs-cta .customs-kicker {
    color: var(--color-accent);
}

.customs-cta h2,
.customs-cta p {
    color: #fff;
}

.customs-cta p {
    color: rgba(255,255,255,.82);
}

/* REVEAL */
.customs-reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.customs-reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: .06s; }
.delay-2 { transition-delay: .12s; }
.delay-3 { transition-delay: .18s; }
.delay-4 { transition-delay: .24s; }
.delay-5 { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
    .customs-reveal,
    .customs-reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* RESPONSIVE */
@media (max-width: 1199.98px) {
    .customs-hero__content {
        grid-template-columns: 1fr;
    }

    .customs-hero__panel {
        max-width: 620px;
    }

    .customs-card-grid,
    .customs-legends-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customs-folklore-grid,
    .customs-language-layout,
    .customs-video-grid {
        grid-template-columns: 1fr;
    }

    .customs-language-copy {
        position: static;
    }

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

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

    .customs-hero__content {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

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

    .customs-intro__media,
    .customs-intro__media img {
        min-height: 320px;
    }

    .customs-folklore-card {
        grid-template-columns: 1fr;
    }

    .customs-folklore-card__image img {
        aspect-ratio: 16 / 10;
    }

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

    .customs-gallery-item,
    .customs-gallery-item:nth-child(n) {
        grid-column: span 1;
    }
}

@media (max-width: 767.98px) {
    .customs-hero__overlay {
        background: linear-gradient(180deg, rgba(0,27,66,.68) 0%, rgba(0,27,66,.92) 100%);
    }

    .customs-hero__content {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .customs-hero h1 {
        max-width: none;
        font-size: clamp(2.25rem, 10vw, 3.3rem);
    }

    .customs-hero__actions,
    .customs-cta {
        grid-template-columns: 1fr;
    }

    .customs-hero__actions .btn,
    .customs-cta .btn {
        width: 100%;
    }

    .customs-hero__stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .customs-hero__panel {
        display: none;
    }

    .customs-section-head {
        display: block;
    }

    .customs-card-grid,
    .customs-legends-grid,
    .customs-expression-grid,
    .customs-joy-grid,
    .customs-gallery-grid {
        grid-template-columns: 1fr;
    }

    .customs-intro,
    .customs-joy-panel,
    .customs-cta {
        border-radius: 24px;
    }
}

@media (max-width: 420px) {
    .customs-section {
        padding: 3rem 0;
    }

    .customs-feature-card__body,
    .customs-folklore-card__content,
    .customs-video-card__body,
    .customs-legend-card__content {
        padding: 1rem;
    }
}
