:root {
    --ypt-marsala-950: #3d080a;
    --ypt-marsala-900: #540c0f;
    --ypt-marsala-800: #721316;
    --ypt-gold-500: #d8b56d;
    --ypt-gold-400: #e7ca87;
    --ypt-gold-300: #f2dda3;
    --ypt-cream-100: #fff8ed;
    --ypt-warm-gray-100: #f8f5ef;
    --ypt-warm-gray-200: #eee7dd;
    --ypt-ink: #211815;
    --ypt-muted: #6d6057;
    --ypt-white: #ffffff;
    --ypt-radius-lg: 30px;
    --ypt-radius-md: 22px;
    --ypt-shadow-soft: 0 24px 80px rgba(45, 21, 14, 0.14);
    --ypt-shadow-card: 0 18px 44px rgba(54, 24, 15, 0.1);
    --ypt-container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ypt-standalone-page,
.ypt-standalone-page {
    margin: 0;
    min-height: 100vh;
    color: var(--ypt-ink);
    background: var(--ypt-warm-gray-100);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

a {
    color: inherit;
}

.ypt-credits-thankyou {
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 8%, rgba(216, 181, 109, 0.18), transparent 28%),
        linear-gradient(180deg, var(--ypt-marsala-950) 0%, var(--ypt-marsala-900) 47%, var(--ypt-warm-gray-100) 47%, var(--ypt-warm-gray-100) 100%);
}

.ypt-container {
    width: min(100% - 40px, var(--ypt-container));
    margin-inline: auto;
}

.ypt-credits-hero {
    position: relative;
    min-height: 520px;
    padding: 40px 0 54px;
    color: var(--ypt-cream-100);
    isolation: isolate;
}

.ypt-credits-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 100%),
        radial-gradient(circle at 85% 20%, rgba(216, 181, 109, 0.2), transparent 23%),
        linear-gradient(145deg, var(--ypt-marsala-950), var(--ypt-marsala-900) 58%, #671216);
    background-size: 42px 42px, auto, auto;
}

.ypt-credits-hero::after {
    content: "Créditos";
    position: absolute;
    right: -20px;
    top: 34px;
    z-index: -2;
    color: rgba(255, 248, 237, 0.035);
    font-size: clamp(76px, 13vw, 170px);
    font-weight: 800;
    letter-spacing: -0.08em;
    white-space: nowrap;
    pointer-events: none;
}

.ypt-credits-hero__glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(4px);
    pointer-events: none;
}

.ypt-credits-hero__glow--one {
    width: 240px;
    height: 240px;
    left: 8%;
    top: 8%;
    background: radial-gradient(circle, rgba(216, 181, 109, 0.26), transparent 68%);
}

.ypt-credits-hero__glow--two {
    width: 320px;
    height: 320px;
    right: 7%;
    bottom: -20%;
    background: radial-gradient(circle, rgba(242, 221, 163, 0.15), transparent 70%);
}

.ypt-credits-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
    gap: 42px;
    align-items: center;
    min-height: 425px;
}

.ypt-credits-hero__copy {
    max-width: 690px;
}

.ypt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(216, 181, 109, 0.35);
    border-radius: 999px;
    color: var(--ypt-gold-300);
    background: rgba(255, 248, 237, 0.06);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ypt-kicker__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--ypt-gold-500);
    box-shadow: 0 0 0 7px rgba(216, 181, 109, 0.12);
}

.ypt-credits-hero h1,
.ypt-section-heading h2,
.ypt-credits-summary-card h2,
.ypt-support-box h2 {
    margin: 0;
    line-height: 1;
    letter-spacing: -0.05em;
}

.ypt-credits-hero h1 {
    max-width: 630px;
    margin-top: 24px;
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    font-weight: 800;
}

.ypt-credits-hero__lead {
    max-width: 640px;
    margin: 20px 0 0;
    color: rgba(255, 248, 237, 0.84);
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
    line-height: 1.58;
}

.ypt-credits-alert {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    max-width: 645px;
    margin-top: 24px;
    padding: 17px 20px;
    border: 1px solid rgba(216, 181, 109, 0.3);
    border-radius: var(--ypt-radius-md);
    background: rgba(255, 248, 237, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.ypt-credits-alert__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--ypt-marsala-950);
    background: var(--ypt-gold-500);
    font-weight: 900;
}

.ypt-credits-alert p {
    margin: 0;
    color: rgba(255, 248, 237, 0.8);
    font-size: 0.98rem;
    line-height: 1.55;
}

.ypt-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin-top: 26px;
    padding: 0 26px;
    border: 1px solid rgba(216, 181, 109, 0.5);
    border-radius: 999px;
    color: var(--ypt-marsala-950);
    background: linear-gradient(145deg, var(--ypt-gold-300), var(--ypt-gold-500));
    box-shadow: 0 18px 42px rgba(13, 2, 3, 0.28);
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ypt-primary-button:hover,
.ypt-primary-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(13, 2, 3, 0.36);
    outline: none;
}

.ypt-credits-summary-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(216, 181, 109, 0.34);
    border-radius: var(--ypt-radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 248, 237, 0.15), rgba(255, 248, 237, 0.07)),
        rgba(61, 8, 10, 0.32);
    box-shadow: 0 34px 100px rgba(15, 4, 5, 0.34);
    backdrop-filter: blur(22px);
}

.ypt-credits-summary-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 248, 237, 0.1);
    border-radius: 24px;
    pointer-events: none;
}

.ypt-logo-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 152px;
    height: 152px;
    margin: 0 auto 22px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 34% 26%, rgba(216, 181, 109, 0.22), transparent 42%),
        linear-gradient(145deg, rgba(255, 248, 237, 0.1), rgba(255, 248, 237, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 22px 52px rgba(13, 2, 3, 0.22);
}

.ypt-logo-frame img {
    display: block;
    width: 124px;
    height: 124px;
    object-fit: contain;
    border-radius: 22px;
}

.ypt-credits-summary-card__content {
    position: relative;
    text-align: center;
}

.ypt-credits-summary-card__content span {
    display: block;
    margin-bottom: 10px;
    color: var(--ypt-gold-300);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ypt-credits-summary-card h2 {
    color: var(--ypt-cream-100);
    font-size: clamp(1.45rem, 2vw, 1.95rem);
}

.ypt-credits-summary-card p {
    margin: 15px 0 0;
    color: rgba(255, 248, 237, 0.72);
    font-size: 0.98rem;
    line-height: 1.58;
}

.ypt-credits-next {
    position: relative;
    padding: 58px 0 66px;
    background: var(--ypt-warm-gray-100);
}

.ypt-credits-next::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 9% 8%, rgba(216, 181, 109, 0.18), transparent 25%),
        radial-gradient(circle at 92% 60%, rgba(84, 12, 15, 0.08), transparent 32%);
    pointer-events: none;
}

.ypt-credits-next > .ypt-container {
    position: relative;
}

.ypt-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.92fr);
    gap: 22px 42px;
    align-items: end;
    margin-bottom: 26px;
}

.ypt-section-heading span {
    color: var(--ypt-marsala-800);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ypt-section-heading h2 {
    color: var(--ypt-ink);
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.ypt-section-heading p {
    grid-column: 2;
    max-width: 610px;
    margin: -8px 0 0;
    color: var(--ypt-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.ypt-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ypt-info-card {
    position: relative;
    overflow: hidden;
    min-height: 176px;
    padding: 24px;
    border: 1px solid rgba(84, 12, 15, 0.08);
    border-radius: var(--ypt-radius-md);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--ypt-shadow-card);
}

.ypt-info-card::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -44px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(216, 181, 109, 0.16);
}

.ypt-info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: var(--ypt-marsala-950);
    background: linear-gradient(145deg, var(--ypt-gold-300), var(--ypt-gold-500));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(216, 181, 109, 0.3);
}

.ypt-info-card h3 {
    margin: 0;
    color: var(--ypt-ink);
    font-size: 1.13rem;
    letter-spacing: -0.025em;
}

.ypt-info-card p {
    margin: 11px 0 0;
    color: var(--ypt-muted);
    font-size: 0.97rem;
    line-height: 1.58;
}

.ypt-support-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--ypt-radius-lg);
    background:
        linear-gradient(135deg, rgba(84, 12, 15, 0.96), rgba(114, 19, 22, 0.96)),
        var(--ypt-marsala-900);
    color: var(--ypt-cream-100);
    box-shadow: var(--ypt-shadow-soft);
}

.ypt-support-box__label {
    display: block;
    margin-bottom: 9px;
    color: var(--ypt-gold-300);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ypt-support-box h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.ypt-support-box p {
    max-width: 660px;
    margin: 12px 0 0;
    color: rgba(255, 248, 237, 0.76);
    font-size: 0.98rem;
    line-height: 1.6;
}

.ypt-support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid rgba(216, 181, 109, 0.42);
    border-radius: 999px;
    color: var(--ypt-marsala-950);
    background: linear-gradient(145deg, var(--ypt-gold-300), var(--ypt-gold-500));
    box-shadow: 0 18px 38px rgba(13, 2, 3, 0.2);
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ypt-support-link:hover,
.ypt-support-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(13, 2, 3, 0.28);
    outline: none;
}

@media (max-width: 980px) {
    .ypt-credits-hero {
        min-height: auto;
        padding: 34px 0 48px;
    }

    .ypt-credits-hero__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ypt-credits-summary-card {
        max-width: 560px;
    }

    .ypt-section-heading {
        grid-template-columns: 1fr;
    }

    .ypt-section-heading p {
        grid-column: auto;
        margin-top: 0;
    }

    .ypt-info-grid {
        grid-template-columns: 1fr;
    }

    .ypt-info-card {
        min-height: auto;
    }

    .ypt-support-box {
        grid-template-columns: 1fr;
    }

    .ypt-support-link {
        width: fit-content;
    }
}

@media (max-width: 640px) {
    .ypt-container {
        width: min(100% - 28px, var(--ypt-container));
    }

    .ypt-credits-thankyou {
        background:
            radial-gradient(circle at 10% 6%, rgba(216, 181, 109, 0.18), transparent 30%),
            linear-gradient(180deg, var(--ypt-marsala-950) 0%, var(--ypt-marsala-900) 58%, var(--ypt-warm-gray-100) 58%, var(--ypt-warm-gray-100) 100%);
    }

    .ypt-credits-hero {
        padding: 28px 0 40px;
    }

    .ypt-credits-hero::after {
        right: -28px;
        top: 18px;
        font-size: 76px;
        opacity: 0.75;
    }

    .ypt-credits-hero__grid {
        gap: 28px;
    }

    .ypt-kicker {
        font-size: 0.68rem;
        padding: 8px 12px;
    }

    .ypt-credits-hero h1 {
        margin-top: 22px;
        font-size: clamp(2.1rem, 11vw, 3rem);
    }

    .ypt-credits-hero__lead {
        margin-top: 18px;
        font-size: 1rem;
    }

    .ypt-credits-alert {
        padding: 15px;
        border-radius: 18px;
    }

    .ypt-primary-button {
        width: 100%;
        min-height: 52px;
    }

    .ypt-credits-summary-card {
        padding: 20px;
        border-radius: 24px;
    }

    .ypt-logo-frame {
        width: 126px;
        height: 126px;
        margin-bottom: 18px;
        border-radius: 26px;
    }

    .ypt-logo-frame img {
        width: 104px;
        height: 104px;
    }

    .ypt-credits-next {
        padding: 44px 0 52px;
    }

    .ypt-section-heading {
        gap: 12px;
        margin-bottom: 22px;
    }

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

    .ypt-section-heading p,
    .ypt-info-card p,
    .ypt-support-box p {
        font-size: 0.96rem;
    }

    .ypt-info-grid {
        gap: 14px;
    }

    .ypt-info-card {
        padding: 20px;
        border-radius: 20px;
    }

    .ypt-support-box {
        margin-top: 18px;
        padding: 22px;
        border-radius: 24px;
    }

    .ypt-support-link {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}
