
/* Scoped reset — only affects this effect, never the whole site */
.mwg_effect003,
.mwg_effect003 *,
.mwg_effect003 *::before,
.mwg_effect003 *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mwg_effect003 {
    position: relative;
    overflow: hidden;
    color: #F1F1F1;
    font: 500 normal 22px/1.3 'Inter', sans-serif;
}
.mwg_effect003 .header {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    font: 500 normal clamp(12px, 0.9vw, 100px) / normal 'IBM Plex Mono';
    text-transform: uppercase;
    padding: 25px;
}
.mwg_effect003 .header > * {
    flex: 1;
}
.mwg_effect003 .header > *:nth-child(2) {
    text-align: center;
}
.mwg_effect003 .header > *:nth-child(3) {
    text-align: right;
}
.mwg_effect003 .scroll {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.mwg_effect003 .pin-height {
    height: 500vh;
}
.mwg_effect003 .container {
    position: relative;
    height: 100vh;
}
.mwg_effect003 .circles {
    height: 100%;
}
.mwg_effect003 .circle {
    /* circle scales with the card so the fan shape stays identical on every screen.
       --pb-card-w defaults to 25vw (byte-for-byte the old desktop look). */
    width: calc(var(--pb-card-w, 25vw) * 10);
    height: calc(var(--pb-card-w, 25vw) * 10);
    border-radius: 100%;
    position: absolute;
    top :50%;
    left: 50%;
    transform: translate(-50%,0);
    will-change: transform;
}
.mwg_effect003 .card {
    /* All the card metrics derive from --pb-card-w so the WHOLE card (size, text,
       padding) scales together. The "Ancho de las tarjetas" control (responsive)
       just sets --pb-card-w, so one value per device resizes everything. */
    width: var(--pb-card-w, 25vw);
    aspect-ratio: 0.75;
    border-radius: calc(var(--pb-card-w, 25vw) * 0.028);
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 50%;
    /* --pb-start-y = how far BELOW centre the cards are born (controls how early
       the first card becomes visible during the section's entrance). */
    transform:translate(-50%, var(--pb-start-y, 55vh));
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    text-transform: uppercase;
    padding: calc(var(--pb-card-w, 25vw) * 0.04);
}
.mwg_effect003 .card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 0;
}
.mwg_effect003 .card > .top,
.mwg_effect003 .card > div {
    position: relative;
    z-index: 1;
}
.mwg_effect003 .card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.mwg_effect003 .card p {
    font-size: calc(var(--pb-card-w, 25vw) * 0.04);
    line-height: 0.94;
}
.mwg_effect003 .card .aka {
    display: inline-block;
    font-size: calc(var(--pb-card-w, 25vw) * 0.034);
    border: 0.15em solid currentColor;
    border-radius: 100%;
    padding: 0.30em 1em 0.15em;
    margin: 0 0 1em;
}
.mwg_effect003 .card .top p {
    display: flex;
    justify-content: space-between;
}
.mwg_effect003 .card h2 {
    font: 800 normal calc(var(--pb-card-w, 25vw) * 0.184) / 0.8 'Inter', sans-serif;
    letter-spacing: -0.03em;
}
.mwg_effect003 .circle:nth-child(1) .card {
    background-color: #FC4C3B;
    color: #702626;
}
.mwg_effect003 .circle:nth-child(2) .card {
    background-color: #FF8308;
    color: #FFDF40;
}
.mwg_effect003 .circle:nth-child(3) .card {
    background-color: #DEDA8D;
    color: #3D4331;
}
.mwg_effect003 .circle:nth-child(4) .card {
    background-color: #71CFA3;
    color: #184739;
}
.mwg_effect003 .circle:nth-child(5) .card {
    background-color: #C4EF7A;
    color: #184739;
}
.mwg_effect003 .circle:nth-child(6) .card {
    background-color: #BCEFFF;
    color: #0C3FD3;
}

/* Centered title + subtitle at the very top. Lives inside the pinned .container
   so it stays fixed at the top while the cards fan. */
.mwg_effect003 .pb-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4em; /* overridden by "Separación título ↔ subtítulo" */
    padding: 4vh 20px 0;
    pointer-events: none;
}
.mwg_effect003 .pb-title {
    margin: 0;
    font: 700 normal clamp(22px, 3vw, 64px) / 1.05 'Inter', sans-serif;
    letter-spacing: -0.02em;
}
.mwg_effect003 .pb-subtitle {
    margin: 0;
    font: 500 normal clamp(13px, 1.1vw, 22px) / 1.3 'Inter', sans-serif;
}
