:root {
    --ratio: 1.45;
    --s-2: 0.6rem;
    --s-1: 0.85rem;
    --s0: 1rem;
    --s1: calc(var(--s0) * var(--ratio));
    --s2: calc(var(--s1) * var(--ratio));
    --s3: calc(var(--s2) * var(--ratio));

    --step--1: clamp(0.9rem, 0.85rem + 0.22vw, 1rem);
    --step-0: clamp(1rem, 0.92rem + 0.35vw, 1.18rem);
    --step-1: clamp(1.25rem, 1.08rem + 0.7vw, 1.6rem);
    --step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
    --step-3: clamp(2rem, 1.3rem + 2.4vw, 3.2rem);

    --ink: #5b5367;
    --ink-strong: #7b5f93;
    --rose: #e6d7da;
    --rose-soft: #efe5e7;
    --purple: #7f5594;
    --purple-dark: #693f7d;
    --purple-soft: #b98cc8;
    --purple-ink: #f1ddeb;
    --highlight-strip: rgba(210, 150, 191, 0.35);
    --accent-yellow: #f0ba3f;
    --card: #f8f3f4;

    --measure: 72rem;
    --radius: 18px;
    --shadow: 0 8px 26px rgba(94, 56, 112, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--rose-soft);
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

iframe {
    border: 0;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--ink-strong);
}

h1 {
    font-size: var(--step-3);
    text-transform: uppercase;
}

h2 {
    font-size: var(--step-2);
    text-transform: uppercase;
}

h3 {
    font-size: var(--step-1);
}

p {
    font-size: var(--step-0);
    max-width: 66ch;
}

/* Every Layout utilities */
.stack {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stack>* {
    margin-block: 0;
}

.stack>*+* {
    margin-block-start: var(--space, var(--s1));
}

.center {
    box-sizing: content-box;
    margin-inline: auto;
    max-inline-size: var(--measure);
    padding-inline: 1rem;
}

.switcher {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2.6vw, 2.3rem);
    align-items: center;
}

.switcher>* {
    flex-grow: 1;
    flex-basis: calc((48rem - 100%) * 999);
}

.section {
    padding-block: clamp(2.3rem, 7vw, 5rem);
    overflow: clip;
}

.section-light {
    background: var(--rose);
}

.section-light.softer {
    background: linear-gradient(180deg, #eadde0 0%, #f3e8ea 100%);
}

.section-purple {
    background: linear-gradient(180deg, var(--purple-dark) 0%, var(--purple) 100%);
}

.section-emphasis {
    background: linear-gradient(180deg, #663b79 0%, #6f457f 45%, #714685 100%);
}

.hero {
    padding-block-start: clamp(2.5rem, 8vw, 5.5rem);
}

.hero .stack {
    align-items: center;
    text-align: center;
}

.hero h1,
.hero h2,
.hero p {
    max-width: 28ch;
}

.hero-emphasis .stack {
    align-items: center;
    text-align: center;
}

.hero-emphasis h1,
.hero-emphasis h2 {
    text-transform: none;
    font-weight: 700;
    color: var(--purple-ink);
}

.hero-emphasis h1 {
    font-size: clamp(1.45rem, 1rem + 1.55vw, 2.1rem);
}

.hero-emphasis p {
    color: var(--accent-yellow);
    font-weight: 700;
}

.text-strip {
    display: inline;
    line-height: 1.5;
    padding: 0.08em 0.2em;
    background: var(--highlight-strip);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.accent-yellow {
    color: var(--accent-yellow);
    font-weight: 800;
}

.hero-callout {
    max-width: 28ch;
}

.icon-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.icon-row img {
    width: 10rem;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
    filter: saturate(0.8) brightness(1.08);
}

/* .logo {
    border-radius: 999px;
    box-shadow: var(--shadow);
} */

.embed-wrapper {
    width: min(100%, 52rem);
}

.embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.embed-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-facade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background-color: #150d1d;
    background-image:
        linear-gradient(rgba(34, 15, 48, 0.16), rgba(20, 10, 28, 0.42)),
        var(--video-thumb);
    background-position: center;
    background-size: cover;
    color: #fff;
}

.video-facade::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18));
}

.video-facade__play,
.video-facade__label {
    position: absolute;
    z-index: 1;
}

.video-facade__play {
    top: 50%;
    left: 50%;
    width: 5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: rgba(229, 45, 39, 0.95);
    box-shadow: 0 0.9rem 2rem rgba(10, 3, 18, 0.34);
    transition: transform 160ms ease;
    transform: translate(-50%, -50%);
}

.video-facade__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-top: 0.7rem solid transparent;
    border-bottom: 0.7rem solid transparent;
    border-left: 1.15rem solid #fff;
    transform: translate(-35%, -50%);
}

.video-facade__label {
    right: 1rem;
    bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 9, 24, 0.64);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.video-facade:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -4px;
}

.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play {
    transform: translate(-50%, -50%) scale(1.05);
}

/* .framed {
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
} */

.CTA-button {
    display: block;
    width: fit-content;
    margin: var(--s3) auto 0;
    padding: 1.2rem 1.8rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--purple-soft) 0%, var(--purple) 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(94, 56, 112, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.CTA-button:hover,
.CTA-button:focus-visible {
    background: linear-gradient(180deg, #8f63a7 0%, var(--purple-dark) 100%);
    box-shadow: 0 16px 30px rgba(82, 45, 99, 0.3);
    transform: translateY(-1px);
}

.CTA-button:focus-visible {
    outline: 3px solid rgba(240, 186, 63, 0.4);
    outline-offset: 4px;
}

.icon {
    margin-inline: auto;
}

.intro-white {
    color: #f3e8f8;
    text-align: center;
    max-width: 58ch;
    margin-inline: auto;
}

.section-purple h2,
.section-purple h3 {
    color: var(--purple-soft);
}

.section-purple p {
    color: #f2deef;
}

.feature-block {
    background: rgba(255, 255, 255, 0.08);
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border-radius: var(--radius);
}

.text-center {
    text-align: center;
    margin-inline: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 2.8vw, 1.5rem);
}

.grid-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 0.7rem 0.7rem 1rem;
    box-shadow: var(--shadow);
}

.grid-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.grid-card h3 {
    font-size: var(--step-1);
    margin-bottom: 0.35rem;
}

.grid-card p {
    font-size: var(--step--1);
}

/* Jornada section: image-first like reference */
.Jornada {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.4rem, 3.2vw, 2.4rem);
}

.Jornada .grid-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: grid;
    grid-template-areas:
        "media"
        "copy";
    row-gap: 0.9rem;
}

.Jornada .grid-card img {
    grid-area: media;
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    opacity: 0.72;
}

.Jornada .grid-card h3 {
    grid-area: media;
    align-self: center;
    justify-self: stretch;
    display: flex;
    align-items: center;
    z-index: 1;
    margin: 0;
    padding: 0 1rem;
    color: #fff;
    font-size: clamp(1.45rem, 1.08rem + 1.35vw, 2.45rem);
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.Jornada .grid-card .item-number {
    color: #efb2cf;
}

.Jornada .grid-card p {
    grid-area: copy;
    font-size: clamp(1.02rem, 0.95rem + 0.24vw, 1.2rem);
    max-width: 30ch;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.8vw, 1.5rem);
}

.feature-card {
    background: transparent;
    border-radius: var(--radius);
    padding: clamp(1rem, 2.4vw, 1.3rem);
    box-shadow: none;
}

.feature-card h3 {
    margin-bottom: 0.45rem;
}

.feature-card p {
    font-size: var(--step--1);
}

.rounded {
    border-radius: var(--radius);
}

.img-pequena {
    width: min(180px, 55vw);
}

.img-media {
    width: min(430px, 100%);
    margin-top: 0.8rem;
}

.feature-grid .wide-card .img-media {
    width: min(620px, 100%);
    margin: 1rem auto 0;
}

.img-grande {
    width: min(540px, 100%);
}

@media (max-width: 48rem) {
    html {
        font-size: 17px;
    }

    .reverse-on-mobile {
        flex-direction: column-reverse;
    }

    .section {
        padding-block: clamp(2rem, 10vw, 3.3rem);
    }

    .hero h1,
    .hero h2,
    .hero p {
        max-width: 22ch;
    }

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

    .feature-grid .wide-card {
        grid-column: auto;
    }
}

@media (min-width: 48.01rem) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid .wide-card {
        grid-column: 1 / -1;
    }
}
