:root {
    --color-text: #111111;
    --color-bg: #ffffff;
    --color-panel: rgba(255, 255, 255, 0.86);
    --color-english-green: #00ce84;
    --header-x: clamp(24px, 4vw, 52px);
    --header-y: clamp(30px, 4.5vh, 44px);
    --logo-height: clamp(42px, 5vw, 60px);
    --corner-bg-width: 382px;
    --corner-bg-height: 309px;
    --section-padding-x: clamp(24px, 8vw, 120px);
    initial-value: 1;
}

@property --cp-cta-active-y {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@property --cp-cta-scale {
    syntax: "<number>";
    inherits: false;
    initial-value: 1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

html:has(body.pr-subpage-body) {
    scrollbar-gutter: auto;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Gemunu Libre", sans-serif;
}

body.is-menu-open {
    overflow-y: scroll;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: var(--corner-bg-width);
    height: var(--corner-bg-height);
    background-image: url("../img/bg.jpg");
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100% 100%;
    pointer-events: none;
}

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--header-y) var(--header-x);
    pointer-events: none;
}

.site-logo,
.site-nav,
.menu-toggle {
    pointer-events: auto;
}

.site-logo {
    position: relative;
    z-index: 24;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: auto;
    height: var(--logo-height);
}

/* Navegación */

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-social {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 12px 10px 2px;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-social-link:hover {
    opacity: 0.58;
}

.nav-social-link svg {
    display: block;
    width: 21px;
    height: 21px;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 18px;
    color: var(--color-text);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.nav-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: currentColor;
    border-style: solid;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        top 0.25s ease,
        right 0.25s ease,
        bottom 0.25s ease,
        left 0.25s ease;
    pointer-events: none;
}

.nav-corner.tl {
    top: 4px;
    left: 4px;
    border-width: 1.5px 0 0 1.5px;
}

.nav-corner.tr {
    top: 4px;
    right: 4px;
    border-width: 1.5px 1.5px 0 0;
}

.nav-corner.bl {
    bottom: 4px;
    left: 4px;
    border-width: 0 0 1.5px 1.5px;
}

.nav-corner.br {
    right: 4px;
    bottom: 4px;
    border-width: 0 1.5px 1.5px 0;
}

.nav-link:hover .nav-corner,
.nav-link.is-active .nav-corner {
    opacity: 1;
}

.nav-link:hover .nav-corner.tl,
.nav-link.is-active .nav-corner.tl {
    top: 0;
    left: 0;
}

.nav-link:hover .nav-corner.tr,
.nav-link.is-active .nav-corner.tr {
    top: 0;
    right: 0;
}

.nav-link:hover .nav-corner.bl,
.nav-link.is-active .nav-corner.bl {
    bottom: 0;
    left: 0;
}

.nav-link:hover .nav-corner.br,
.nav-link.is-active .nav-corner.br {
    right: 0;
    bottom: 0;
}

/* Menú mobile */

.menu-toggle {
    position: fixed;
    top: var(--header-y);
    right: var(--header-x);
    z-index: 26;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    appearance: none;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px) saturate(120%);
    -webkit-backdrop-filter: blur(2px) saturate(120%);
    color: var(--color-text);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease, background 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

body.is-menu-open .menu-toggle {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.menu-toggle span {
    position: absolute;
    left: 50%;
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
    will-change: transform;
    transition: top 0.22s ease, transform 0.22s ease, width 0.22s ease, opacity 0.22s ease;
}

.menu-toggle span:nth-child(1) {
    top: 21px;
}

.menu-toggle span:nth-child(2) {
    top: 30px;
}

body.is-menu-open .menu-toggle span:nth-child(1) {
    top: 26px;
    width: 22px;
    transform: translateX(-50%) rotate(45deg);
}

body.is-menu-open .menu-toggle span:nth-child(2) {
    top: 26px;
    width: 22px;
    transform: translateX(-50%) rotate(-45deg);
}

.nav-link:nth-of-type(1) {
    --nav-hide-delay: 165ms;
    --nav-show-delay: 0ms;
}

.nav-link:nth-of-type(2) {
    --nav-hide-delay: 110ms;
    --nav-show-delay: 55ms;
}

.nav-link:nth-of-type(3) {
    --nav-hide-delay: 55ms;
    --nav-show-delay: 110ms;
}

.nav-link:nth-of-type(4) {
    --nav-hide-delay: 0ms;
    --nav-show-delay: 165ms;
}

body.is-nav-showing .nav-link,
body.is-nav-hiding .nav-link {
    opacity: 0;
    transform: translateY(-14px);
}

body.is-nav-hiding .nav-link {
    transition-delay: var(--nav-hide-delay, 0ms);
}

body.is-nav-showing.is-nav-revealing .nav-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--nav-show-delay, 0ms);
}

body.is-nav-hiding .menu-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 180ms;
}

body.is-nav-showing .menu-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition-delay: 0ms;
}

body.is-nav-showing.is-nav-revealing .menu-toggle {
    opacity: 0;
    visibility: hidden;
    transition-delay: 120ms;
}

body.is-nav-compact .menu-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0ms;
}

body.is-nav-no-transition .nav-link {
    transition: none !important;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 18;
    display: none;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

@media (min-width: 1025px) {
    body.is-nav-compact .menu-toggle {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.is-nav-compact .nav-backdrop {
        display: block;
    }

    body.is-nav-compact.is-menu-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.is-nav-compact .site-nav {
        position: fixed;
        top: var(--header-y);
        right: var(--header-x);
        z-index: 23;
        width: fit-content;
        min-width: 240px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 58px 14px 20px;
        border-radius: 24px;
        background: var(--color-panel);
        backdrop-filter: blur(22px) saturate(132%);
        -webkit-backdrop-filter: blur(22px) saturate(132%);
        box-shadow: 0 18px 46px rgba(17, 17, 17, 0.1);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.96);
        transform-origin: top right;
        transition: none;
    }

    body.is-nav-compact.is-menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    body.is-nav-compact .nav-link {
        width: fit-content;
        padding: 12px 14px;
        font-size: 1.2rem;
        line-height: 1.05;
    }

    body.is-nav-compact .nav-social {
        display: flex;
    }

    body.is-nav-compact .nav-link.is-active {
        color: rgba(17, 17, 17, 0.35);
    }

    body.is-nav-compact .nav-link.is-active .nav-corner {
        opacity: 0;
    }
}

/* Layout general */

main {
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(110px, 16vh, 160px) var(--section-padding-x) clamp(48px, 8vh, 96px);
    scroll-margin-top: 0;
}

.section-inner {
    width: min(100%, 1100px);
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
}

.section-kicker {
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.03em;
}

/* Utilidad accesible */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Inicio */

#inicio {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding: clamp(96px, 15vh, 150px) var(--section-padding-x) clamp(96px, 16vh, 150px);
}

.hero-cylinder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
    transition: opacity 140ms linear;
    -webkit-mask-image:
        radial-gradient(ellipse at center, black 0%, black 62%, transparent 100%),
        linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        radial-gradient(ellipse at center, black 0%, black 62%, transparent 100%),
        linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    mask-composite: intersect;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 640px);
    display: grid;
    place-items: center;
    text-align: center;
}

.hero-frame {
    position: relative;
    padding: 20px clamp(18px, 2vw, 28px);
}

.hero-title {
    color: var(--color-text);
    font-size: clamp(1.91rem, 3.3vw, 2.46rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.025em;
}

.hero-brand {
    color: #00ce84;
}

.hero-corner {
    position: absolute;
    width: clamp(16px, 2vw, 22px);
    height: clamp(16px, 2vw, 22px);
    border-color: currentColor;
    border-style: solid;
    color: var(--color-text);
    transition:
        top 0.25s ease,
        right 0.25s ease,
        bottom 0.25s ease,
        left 0.25s ease;
    pointer-events: none;
}

.hero-corner.tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.hero-corner.tr {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.hero-corner.bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.hero-corner.br {
    right: 0;
    bottom: 0;
    border-width: 0 2px 2px 0;
}

.hero-frame:hover .hero-corner.tl {
    top: -14px;
    left: -14px;
}

.hero-frame:hover .hero-corner.tr {
    top: -14px;
    right: -14px;
}

.hero-frame:hover .hero-corner.bl {
    bottom: -14px;
    left: -14px;
}

.hero-frame:hover .hero-corner.br {
    right: -14px;
    bottom: -14px;
}

/* Scroll hint */

.scroll-hint {
    position: absolute;
    right: calc(var(--section-padding-x) * 0.6);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    opacity: 0.75;
    pointer-events: none;
}

.scroll-hint-label {
    writing-mode: vertical-rl;
    font-family: "Gemunu Libre", sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.scroll-hint-arrow {
    width: 10px;
    height: 20px;
    flex: 0 0 auto;
    animation: scroll-hint-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

/* Ticker inferior */

.hero-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(14px, 2.4vh, 28px);
    z-index: 2;
    display: grid;
    gap: clamp(12px, 1.8vh, 20px);
    max-width: 100%;
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.ticker-row {
    --ticker-mask-left: 0px;
    --ticker-mask-right: 0px;
    --ticker-mask-feather: clamp(28px, 6vw, 84px);
    width: 100%;
    overflow: hidden;
    contain: layout paint;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(
        to right,
        black 0,
        black calc(100% - var(--ticker-mask-right) - var(--ticker-mask-feather)),
        transparent calc(100% - var(--ticker-mask-right)),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        black 0,
        black calc(100% - var(--ticker-mask-right) - var(--ticker-mask-feather)),
        transparent calc(100% - var(--ticker-mask-right)),
        transparent 100%
    );
    will-change: mask-image;
}

.ticker-row:nth-child(2) {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        transparent var(--ticker-mask-left),
        black calc(var(--ticker-mask-left) + var(--ticker-mask-feather)),
        black 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        transparent var(--ticker-mask-left),
        black calc(var(--ticker-mask-left) + var(--ticker-mask-feather)),
        black 100%
    );
}

.ticker-track {
    --ticker-scroll-exit: 0px;
    display: flex;
    width: max-content;
    translate: var(--ticker-scroll-exit) 0;
    animation: ticker-left 72s linear infinite;
    will-change: transform, translate;
}

.ticker-row:nth-child(2) .ticker-track {
    animation-name: ticker-right;
    animation-duration: 78s;
}

.ticker-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 36px);
    padding-right: clamp(18px, 2vw, 36px);
}

.ticker-word {
    flex: 0 0 auto;
    color: rgba(17, 17, 17, 0.82);
    font-size: clamp(0.82rem, 1.15vw, 0.98rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.07em;
}

@keyframes ticker-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes ticker-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* Quiénes somos */

.qs-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: transparent;
    display: block;
    padding: 0;
}

.qs-sphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.88;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.qs-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 64px);
    padding: clamp(84px, 10vh, 128px) clamp(80px, 11vw, 190px) clamp(64px, 10vh, 112px);
}

.qs-team-title {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    margin-bottom: clamp(4px, 1.2vh, 18px);
}

.qs-text-block {
    flex: 1 1 0;
    width: auto;
    min-width: 280px;
    max-width: 500px;
    position: relative;
}

.qs-framed {
    position: relative;
    padding: 18px 28px;
    pointer-events: auto;
}

.qs-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--color-text);
    border-style: solid;
    transition:
        top 0.25s ease,
        right 0.25s ease,
        bottom 0.25s ease,
        left 0.25s ease;
    pointer-events: none;
}

.qs-corner.tl {
    top: 0;
    left: 0;
    border-width: 1.5px 0 0 1.5px;
}

.qs-corner.tr {
    top: 0;
    right: 0;
    border-width: 1.5px 1.5px 0 0;
}

.qs-corner.bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 1.5px 1.5px;
}

.qs-corner.br {
    right: 0;
    bottom: 0;
    border-width: 0 1.5px 1.5px 0;
}

.qs-framed:hover .qs-corner.tl {
    top: -14px;
    left: -14px;
}

.qs-framed:hover .qs-corner.tr {
    top: -14px;
    right: -14px;
}

.qs-framed:hover .qs-corner.bl {
    bottom: -14px;
    left: -14px;
}

.qs-framed:hover .qs-corner.br {
    right: -14px;
    bottom: -14px;
}

.qs-text {
    color: var(--color-text);
    font-size: clamp(1.12rem, 1.35vw, 1.58rem);
    font-weight: 300;
    line-height: 1.25;
}

.qs-text strong {
    font-weight: 600;
}

.qs-text p+p {
    margin-top: 1em;
}

.qs-photos {
    flex: 0 0 min(clamp(300px, 34vw, 590px), calc(100vh - clamp(140px, 16vh, 180px) - 118px));
    width: min(clamp(300px, 34vw, 590px), calc(100vh - clamp(140px, 16vh, 180px) - 118px));
    max-width: min(clamp(300px, 34vw, 590px), calc(100vh - clamp(140px, 16vh, 180px) - 118px));
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(4px, 0.8vw, 14px);
    align-self: center;
    margin-left: auto;
    overflow: visible;
    perspective: 1200px;
}

.person {
    position: relative;
    align-self: center;
    justify-self: center;
    width: 96%;
    aspect-ratio: 0.78 / 1;
    overflow: hidden;
    cursor: pointer;
    --person-rotate: 0deg;
    --person-z: 1;
    z-index: var(--person-z);
    transform: rotate(var(--person-rotate));
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
    isolation: isolate;
    transition: transform 0.26s ease;
}

.person:hover,
.person:focus-within {
    z-index: 30;
    transform: rotate(var(--person-rotate)) scale(1.18);
    transition: transform 0.26s ease, z-index 0s;
}

.person img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    border: 0;
    outline: 0;
    box-shadow: none;
    pointer-events: none;
    user-select: none;
}

.person-label {
    position: absolute;
    right: clamp(10px, 4.4%, 26px);
    bottom: clamp(10px, 4.4%, 26px);
    z-index: 2;
    transform: translate(0, 12px) rotate(-1.5deg);
    padding: 0.32em 0.9em;
    color: #111111;
    font-size: calc(clamp(0.82rem, 1.05vw, 1.2rem) - 1pt);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-align: right;
    /* mix-blend-mode: screen; */
    background:
        linear-gradient(#111, #111) left 3px top 3px / 6px 1px no-repeat,
        linear-gradient(#111, #111) left 3px top 3px / 1px 6px no-repeat,
        linear-gradient(#111, #111) right 3px top 3px / 6px 1px no-repeat,
        linear-gradient(#111, #111) right 3px top 3px / 1px 6px no-repeat,
        linear-gradient(#111, #111) left 3px bottom 3px / 6px 1px no-repeat,
        linear-gradient(#111, #111) left 3px bottom 3px / 1px 6px no-repeat,
        linear-gradient(#111, #111) right 3px bottom 3px / 6px 1px no-repeat,
        linear-gradient(#111, #111) right 3px bottom 3px / 1px 6px no-repeat,
        #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.24s ease;
}

.person:hover .person-label,
.person:focus-within .person-label {
    opacity: 1;
    transform: translate(0, 0) rotate(-1.5deg);
}

/* Person hover card */

.person-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14% 6% 4.5%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0)    0%,
        rgba(0, 0, 0, 0.68) 32%,
        rgba(0, 0, 0, 0.84) 55%,
        rgba(0, 0, 0, 0.90) 100%
    );
    color: #fff;
    font-family: 'Gemunu Libre', sans-serif;
    z-index: 3;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    box-sizing: border-box;
}

.person:hover .person-card,
.person:focus-within .person-card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.person-card-name {
    display: block;
    font-size: clamp(0.7rem, 1.35vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 0.25em;
    color: #fff;
    order: 1;
}

.person-card-roles {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.28em;
    margin-top: 0.5em;
    margin-bottom: 0;
    order: 3;
}

.person-card-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.62em;
    height: 1.7em;
    border-radius: 999px;
    font-size: clamp(0.36rem, 0.44vw, 0.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 0;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.person-card-role.role-asistencia    { background: #e8006d; }
.person-card-role.role-comunicacion  { background: #f0b500; color: #1a1a1a; }
.person-card-role.role-contable      { background: #1db8c6; }
.person-card-role.role-capacitacion  { background: #4a72d4; }
.person-card-role.role-investigacion { background: #7340c4; }

.person-card-bio {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: clamp(0.3rem, 0.58vw, 0.58rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    order: 2;
}

/* Desfasajes y rotaciones de la grilla 3x3 */

#p-cami {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: -8% 0 0 -4%;
    --person-rotate: -5deg;
    --person-z: 1;
}

#p-cami:hover,
#p-cami:focus-within {
    transform: rotate(0deg) scale(1.55);
}

#p-cami .person-label {
    display: none;
}

#p-marcos {
    grid-column: 2;
    grid-row: 1;
    width: 98%;
    margin: -9% 0 0 0;
    --person-rotate: -1.5deg;
    --person-z: 2;
}

#p-marcos:hover,
#p-marcos:focus-within {
    transform: rotate(0deg) scale(1.55);
}

#p-marcos .person-label {
    display: none;
}

#p-otra-cami {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    margin: -11% -4% 0 0;
    --person-rotate: 3deg;
    --person-z: 1;
}

#p-otra-cami:hover,
#p-otra-cami:focus-within {
    transform: rotate(0deg) scale(1.55);
}

#p-otra-cami .person-label {
    display: none;
}

#p-mati {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: -5% 0 0 -3%;
    --person-rotate: 2deg;
    --person-z: 4;
}

#p-mati:hover,
#p-mati:focus-within {
    transform: rotate(0deg) scale(1.55);
}

#p-mati .person-label { display: none; }

#p-vicky {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    margin: -7% 0 0 2%;
    --person-rotate: -4.5deg;
    --person-z: 5;
}

#p-vicky:hover,
#p-vicky:focus-within {
    transform: rotate(0deg) scale(1.55);
}

#p-vicky .person-label { display: none; }

#p-iara {
    grid-column: 3;
    grid-row: 2;
    width: 100%;
    margin: -7% -3% 0 0;
    --person-rotate: -0.5deg;
    --person-z: 4;
}

#p-iara:hover,
#p-iara:focus-within {
    transform: rotate(0deg) scale(1.55);
}

#p-iara .person-label { display: none; }

#p-vale {
    grid-column: 1;
    grid-row: 3;
    width: 98%;
    margin: -8% 0 0 -5%;
    --person-rotate: -13.5deg;
    --person-z: 8;
}

#p-vale:hover,
#p-vale:focus-within {
    transform: rotate(0deg) scale(1.55);
}

#p-vale .person-label { display: none; }

#p-anita {
    grid-column: 2;
    grid-row: 3;
    width: 98%;
    margin: -6% 0 0 1%;
    --person-rotate: -2deg;
    --person-z: 9;
}

#p-anita:hover,
#p-anita:focus-within {
    transform: rotate(0deg) scale(1.55);
}

#p-anita .person-label { display: none; }

#p-jesi {
    grid-column: 3;
    grid-row: 3;
    width: 100%;
    margin: -8% -4% 0 0;
    --person-rotate: 3.5deg;
    --person-z: 8;
}

#p-jesi:hover,
#p-jesi:focus-within {
    transform: rotate(0deg) scale(1.55);
}

#p-jesi .person-label { display: none; }

/* Qué hacemos */

.qh-section {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
}

.qh-section::before {
    content: "";
    position: absolute;
    inset: -30% -10%;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 34%, rgba(77, 183, 193, 0.12), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(219, 0, 100, 0.095), transparent 32%),
        radial-gradient(circle at 18% 78%, rgba(253, 192, 0, 0.105), transparent 34%),
        radial-gradient(circle at 78% 78%, rgba(118, 73, 183, 0.095), transparent 34%);
    filter: blur(10px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 21%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.75) 40%, black 50%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.2) 70%, transparent 79%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 21%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.75) 40%, black 50%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.2) 70%, transparent 79%, transparent 100%);
    pointer-events: none;
}

.qh-network {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.86;
    pointer-events: none;
    transition: opacity 180ms ease;
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%),
        radial-gradient(ellipse at center, black 0%, black 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%),
        radial-gradient(ellipse at center, black 0%, black 78%, transparent 100%);
    mask-composite: intersect;
}

.qh-horizontal {
    position: relative;
    z-index: 1;
    width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
}

.qh-panel-track {
    display: flex;
    width: 300vw;
    min-height: 100vh;
    min-height: 100svh;
    transform: translateX(-100vw);
    transition: transform 0.72s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.qh-section[data-qh-view="objetivos"] .qh-panel-track {
    transform: translateX(0);
}

.qh-section[data-qh-view="services"] .qh-panel-track {
    transform: translateX(-100vw);
}

.qh-section[data-qh-view="proyectos"] .qh-panel-track {
    transform: translateX(-200vw);
}

.qh-panel {
    flex: 0 0 100vw;
}

.qh-panel-content {
    justify-content: center;
}

.qh-panel-return {
    position: absolute;
    top: 50%;
    display: inline-block;
    padding: 8px 12px;
    color: var(--color-text);
    font-size: calc(clamp(1.3rem, 1.9vw, 1.95rem) - 1pt);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: 0.88;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, transform 0.22s ease;
}

.qh-panel-return-left {
    left: clamp(18px, 5vw, 112px);
    --qh-panel-return-hover: translateY(-50%) scale(1.06);
}

.qh-panel-return-right {
    right: clamp(18px, 5vw, 112px);
    --qh-panel-return-hover: translateY(-50%) scale(1.06);
}

.qh-panel-return:hover,
.qh-panel-return:focus-visible {
    opacity: 1;
    outline: none;
    transform: var(--qh-panel-return-hover);
}

.qh-panel-return:hover .qh-side-link-text,
.qh-panel-return:focus-visible .qh-side-link-text {
    color: var(--color-english-green);
}

.qh-panel-return .qh-side-corner {
    border-color: var(--color-text);
}

.qh-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(42px, 6vh, 82px);
    padding: clamp(44px, 6vh, 76px) clamp(24px, 8vw, 120px) clamp(70px, 10vh, 110px);
}

.qh-intro-frame {
    position: relative;
    display: inline-block;
    padding: 9px 24px;
    margin-bottom: clamp(12px, 1.8vh, 28px);
}

.qh-intro-text {
    color: var(--color-text);
    font-size: calc(clamp(1rem, 1.3vw, 1.25rem) + 2pt);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.03em;
}

.qh-intro-corner {
    position: absolute;
    width: 9px;
    height: 9px;
    border-color: var(--color-text);
    border-style: solid;
    color: var(--color-text);
    opacity: 0.75;
    transition:
        top 0.25s ease,
        right 0.25s ease,
        bottom 0.25s ease,
        left 0.25s ease;
    pointer-events: none;
}

.qh-intro-corner.tl {
    top: 0;
    left: 0;
    border-width: 1.5px 0 0 1.5px;
}

.qh-intro-corner.tr {
    top: 0;
    right: 0;
    border-width: 1.5px 1.5px 0 0;
}

.qh-intro-corner.bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 1.5px 1.5px;
}

.qh-intro-corner.br {
    right: 0;
    bottom: 0;
    border-width: 0 1.5px 1.5px 0;
}

.qh-intro-frame:hover .qh-intro-corner.tl {
    top: -8px;
    left: -8px;
}

.qh-intro-frame:hover .qh-intro-corner.tr {
    top: -8px;
    right: -8px;
}

.qh-intro-frame:hover .qh-intro-corner.bl {
    bottom: -8px;
    left: -8px;
}

.qh-intro-frame:hover .qh-intro-corner.br {
    right: -8px;
    bottom: -8px;
}

.qh-services {
    position: relative;
    width: min(100%, 1180px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qh-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: margin 0.28s ease;
}

.qh-item-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 860px);
    padding: clamp(1px, 0.2vh, 3px) 0;
}

.qh-item.is-active .qh-item-body {
    width: min(100%, 780px);
}

.qh-item-corner {
    display: none;
}

.qh-float-frame {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition:
        top 0.28s ease,
        width 0.28s ease,
        height 0.28s ease,
        opacity 0.24s ease;
}

.qh-float-frame.is-visible {
    opacity: 1;
}

.qh-float-corner {
    position: absolute;
    width: 11px;
    height: 11px;
    border-color: var(--color-text);
    border-style: solid;
    pointer-events: none;
}

.qh-float-corner.tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.qh-float-corner.tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.qh-float-corner.bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.qh-float-corner.br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.qh-services.is-snap-collapse * {
    transition: none !important;
}

.qh-service {
    position: relative;
    z-index: 2;
    display: block;
    width: fit-content;
    max-width: none;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 4px 10px;
    color: var(--color-text);
    font-family: "Gemunu Libre", sans-serif;
    font-size: calc(clamp(2.3rem, 5.3vw, 5.5rem) + 1pt);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.035em;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 0.24s ease,
        opacity 0.24s ease,
        font-size 0.24s ease;
}

.qh-services.has-active .qh-item:not(.is-active) .qh-service {
    color: rgba(17, 17, 17, 0.55);
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    line-height: 0.86;
    padding: 3px 14px;
}

.qh-services.has-active .qh-item:not(.is-active) {
    margin: clamp(0px, 0.18vh, 3px) 0;
}

.qh-services.has-active .qh-item:not(.is-active) .qh-item-body {
    padding-block: clamp(0px, 0.1vh, 2px);
}

.qh-svc-corner {
    display: none;
}

.qh-item:nth-child(2) {
    --service-hover-color: #4DB7C1;
}

.qh-item:nth-child(3) {
    --service-hover-color: #DB0064;
}

.qh-item:nth-child(4) {
    --service-hover-color: #587DDB;
}

.qh-item:nth-child(5) {
    --service-hover-color: #FDC000;
}

.qh-item:nth-child(6) {
    --service-hover-color: #7649B7;
}

.qh-item.is-active {
    margin: clamp(12px, 2vh, 28px) 0 clamp(22px, 4vh, 52px);
}

@media (hover: hover) and (pointer: fine) {
    .qh-services.has-active .qh-item:not(.is-active) .qh-service:hover,
    .qh-item:not(.is-active) .qh-service:hover {
        color: var(--service-hover-color);
    }
}

.qh-item.is-active .qh-service {
    color: var(--service-hover-color, #e00068);
    font-size: calc(clamp(2.8rem, 5.2vw, 5rem) + 1pt);
    line-height: 0.86;
    white-space: nowrap;
}

.qh-detail {
    width: min(100%, 860px);
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        grid-template-rows 0.28s ease,
        opacity 0.22s ease,
        margin 0.28s ease;
}

.qh-item.is-active .qh-detail {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
    margin-top: 2px;
}

.qh-detail-frame {
    position: relative;
    min-height: 0;
    overflow: hidden;
    padding: clamp(6px, 0.8vw, 12px) clamp(20px, 4vw, 56px) clamp(16px, 2.2vw, 28px);
    text-align: center;
    transition: padding 0.28s ease;
}

.qh-item:not(.is-active) .qh-detail-frame {
    padding-top: 0;
    padding-bottom: 0;
}

.qh-detail-frame p {
    color: rgba(17, 17, 17, 0.82);
    font-family: 'Merriweather Sans', sans-serif;
    font-size: calc(clamp(0.98rem, 1.25vw, 1.24rem) - 3pt);
    font-weight: 300;
    line-height: 1.52;
    letter-spacing: 0.03em;
}

.qh-detail-frame p+p {
    margin-top: 0.6em;
}

.qh-detail-frame strong {
    font-weight: 700;
}

.qh-side-links {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.qh-side-link {
    position: absolute;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 18px 11px;
    border-radius: 999px;
    background: linear-gradient(190deg, #db0064 0%, #ff6720 16%, #fdc000 32%, #00ce84 48%, #00a6d6 64%, #7f3fb8 80%, #db0064 100%);
    background-size: 100% 160%;
    background-position: 50% 50%;
    color: #fff;
    font-family: "Gemunu Libre", sans-serif;
    font-size: calc(clamp(0.9rem, 1.1vw, 1.05rem) + 2pt);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.03em;
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    filter: saturate(0.78) brightness(1.06);
    opacity: 0.92;
    pointer-events: auto;
    --qh-side-transform: translateY(-50%);
    transform: var(--qh-side-transform);
    transition: filter 0.22s ease, opacity 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
    animation: qh-side-gradient-drift 9s ease-in-out infinite alternate;
}

.qh-side-link:hover,
.qh-side-link:focus-visible {
    filter: saturate(0.92) brightness(1.08);
    opacity: 1;
    transform: var(--qh-side-transform) scale(1.04);
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.12);
}

.qh-side-link-text {
    white-space: nowrap;
}

/* Corner spans hidden — pill buttons don't use L-corners */
.qh-side-link .qh-side-corner {
    display: none;
}

.qh-side-corner {
    position: absolute;
    width: 9px;
    height: 9px;
    border-color: currentColor;
    border-style: solid;
    opacity: 0.75;
    transition:
        top 0.25s ease,
        right 0.25s ease,
        bottom 0.25s ease,
        left 0.25s ease;
    pointer-events: none;
}

/* Mantener los marcos en L en negro aunque el texto cambie de color al hacer hover */
.qh-side-link .qh-side-corner {
    border-color: var(--color-text);
}

.qh-side-corner.tl {
    top: 0;
    left: 0;
    border-width: 1.5px 0 0 1.5px;
}

.qh-side-corner.tr {
    top: 0;
    right: 0;
    border-width: 1.5px 1.5px 0 0;
}

.qh-side-corner.bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 1.5px 1.5px;
}

.qh-side-corner.br {
    right: 0;
    bottom: 0;
    border-width: 0 1.5px 1.5px 0;
}

.qh-side-link-left {
    left: calc(var(--header-x) + 4px);
    --qh-side-transform: translateY(-50%) rotate(180deg);
}

.qh-side-link-right {
    right: calc(var(--header-x) + 4px);
    writing-mode: vertical-lr;
}

.qh-side-link:hover .qh-side-corner.tl,
.qh-side-link:focus-visible .qh-side-corner.tl {
    top: -8px;
    left: -8px;
}

.qh-side-link:hover .qh-side-corner.tr,
.qh-side-link:focus-visible .qh-side-corner.tr {
    top: -8px;
    right: -8px;
}

.qh-side-link:hover .qh-side-corner.bl,
.qh-side-link:focus-visible .qh-side-corner.bl {
    bottom: -8px;
    left: -8px;
}

.qh-side-link:hover .qh-side-corner.br,
.qh-side-link:focus-visible .qh-side-corner.br {
    right: -8px;
    bottom: -8px;
}

.qh-subpage-body {
    background: var(--color-bg);
}

.qh-subpage {
    min-height: 100vh;
    min-height: 100svh;
}

.qh-subpage-header {
    z-index: 24;
}

.qh-subpage .qh-inner {
    padding-top: clamp(96px, 14vh, 130px);
}
.qh-subpage-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
}

/* Evita que el contenido central se solape con los botones laterales en pantallas grandes */
@media (min-width: 1025px) {
    .qh-subpage .qh-inner,
    .qh-panel-content {
        /* Reducir márgenes laterales para los bloques de texto */
        padding-left: clamp(64px, 8vw, 120px);
        padding-right: clamp(64px, 8vw, 120px);
    }

    .qh-subpage-cols {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        max-width: min(1200px, 84%);
        margin: 0 auto;
        gap: clamp(36px, 6vw, 80px);
    }

    .qh-subpage-col:first-child {
        /* Objetivos: más abajo (sin cambios) */
        margin-top: clamp(48px, 8vh, 140px);
    }

    .qh-subpage-col:nth-child(2) {
        /* Metodología: disminuir margen superior para subirla ligeramente */
        margin-top: clamp(-20px, -2vh, 6px);
    }
}

.qh-subpage-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 14px 22px;
    color: var(--color-text);
    font-size: calc(clamp(1.5rem, 2.2vw, 2rem) - 1pt);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.02em;
}

.qh-subpage-title::before,
.qh-subpage-title::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-color: currentColor;
    border-style: solid;
    opacity: 0.84;
}

.qh-subpage-title::before {
    top: 0;
    right: 0;
    border-width: 1px 1px 0 0;
}

.qh-subpage-title::after {
    bottom: 0;
    left: 0;
    border-width: 0 0 1px 1px;
}

.qh-subpage-back {
    position: fixed;
    top: clamp(20px, 4.4vh, 38px);
    right: clamp(18px, 3.4vw, 36px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-size: calc(clamp(0.88rem, 1.2vw, 1.06rem) + 1pt);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.qh-subpage-back:hover,
.qh-subpage-back:focus-visible {
    opacity: 0.65;
}

/* Sub-page hamburger nav — hidden by default, shown via JS scroll logic */

.qh-subpage-body .menu-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.qh-subpage-body .nav-backdrop {
    display: block;
}

.qh-subpage-body .site-nav {
    position: fixed;
    top: var(--header-y);
    right: var(--header-x);
    z-index: 25;
    width: fit-content;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 24px;
    background: var(--color-panel);
    backdrop-filter: blur(22px) saturate(132%);
    -webkit-backdrop-filter: blur(22px) saturate(132%);
    box-shadow: 0 18px 46px rgba(17, 17, 17, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

/* En desktop, mostrar el menú completo al ingresar, como en el home */
@media (min-width: 1025px) {
    .qh-subpage-body .menu-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .qh-subpage-body .nav-backdrop {
        display: none;
    }

    .qh-subpage-body .site-nav {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 0;
        border-radius: 0;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
}

.qh-subpage-body.is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Sub-page column layout */

.qh-subpage-cols {
    display: flex;
    gap: clamp(36px, 6vw, 80px);
    width: 100%;
    align-items: flex-start;
}

.qh-subpage-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 1.2vh, 12px);
}

.qh-subpage-col-text {
    font-family: "Merriweather Sans", sans-serif;
    font-size: calc(clamp(0.85rem, 1.08vw, 1.02rem) - 1pt);
    font-weight: 300;
    line-height: 1.64;
    letter-spacing: 0.02em;
    color: rgba(17, 17, 17, 0.82);
    margin: 0;
}

/* ---- Objetivos glass cards ---- */

/* Panel de Objetivos: columna más ancha para que las tarjetas quepan sin scroll */
.qh-panel-objetivos .qh-subpage-cols {
    max-width: min(1600px, 100%);
    gap: clamp(16px, 2.5vw, 34px);
    padding-left: 0;
}

.qh-panel-objetivos .qh-subpage-col {
    align-items: center;
}

.qh-panel-objetivos .qh-subpage-col:first-child {
    flex: 1.32;
    padding-left: 0;
}

.qh-panel-objetivos .qh-subpage-col:nth-child(2) {
    flex: 0.75;
    margin-top: clamp(4px, 2vh, 24px);
    padding-right: clamp(28px, 4vw, 56px);
}

/* Metodología: fuente ajustada para que quepa sin scroll */
.qh-panel-objetivos .qh-subpage-col:nth-child(2) .qh-subpage-col-text {
    font-size: calc(clamp(0.86rem, 1.06vw, 1rem) - 1pt);
    line-height: 1.5;
}

.qh-objetivos-cards {
    display: flex;
    flex-direction: column;
    position: relative;
    width: min(1260px, 92vw);
    margin: clamp(8px, 1.4vh, 16px) auto 0;
    padding: clamp(8px, 1.4vw, 18px) 0;
}

.qh-objetivo-card {
    position: relative;
    z-index: 1;
    width: min(600px, calc(50% - clamp(20px, 4vw, 58px)));
    background: transparent;
    border: 2px solid var(--qh-objetivo-border, rgba(52, 52, 52, 0.34));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: clamp(13px, 1.6vw, 20px) clamp(15px, 1.9vw, 24px);
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.3vh, 4px);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.045);
}

.qh-objetivo-card + .qh-objetivo-card {
    margin-top: clamp(-56px, -4.2vw, -28px);
}

.qh-objetivo-card-left {
    align-self: flex-start;
}

.qh-objetivo-card-right {
    align-self: flex-end;
}

.qh-objetivo-card:nth-of-type(1) {
    --qh-objetivo-border: rgba(219, 0, 100, 0.7);
}

.qh-objetivo-card:nth-of-type(2) {
    --qh-objetivo-border: rgba(253, 192, 0, 0.78);
}

.qh-objetivo-card:nth-of-type(3) {
    --qh-objetivo-border: rgba(88, 125, 219, 0.72);
}

.qh-objetivo-card:nth-of-type(4) {
    --qh-objetivo-border: rgba(118, 73, 183, 0.7);
}

.qh-objetivo-card:nth-of-type(5) {
    --qh-objetivo-border: rgba(77, 183, 193, 0.78);
}

.qh-objetivo-card-full {
    grid-column: 1 / -1;
}

/* Subpage: distancia entre sección Objetivos y Metodología */
.qh-subpage .qh-intro-frame + .qh-intro-frame,
.qh-subpage .qh-objetivos-cards + .qh-intro-frame {
    margin-top: clamp(32px, 5vh, 56px);
}

/* Subpage: texto general */
.qh-subpage .qh-subpage-col-text {
    max-width: min(900px, 88%);
    margin-inline: auto;
}

/* Subpage: título Objetivos centrado en L-corners, subtítulo pegado */
.qh-subpage .qh-inner > .qh-intro-frame:first-child {
    margin-bottom: clamp(4px, 0.8vh, 8px);
    padding: 8px 24px;
}

.qh-subpage .qh-objetivos-cards {
    margin-top: clamp(8px, 1.4vh, 16px);
}

.qh-subpage .qh-objetivos-subtitle {
    margin-top: 0;
}

/* Subpage: más margen superior */
.qh-subpage .qh-inner {
    padding-top: clamp(108px, 15vh, 148px);
}

/* Subpage: título Metodología centrado, más distancia al texto */
.qh-metodologia-block .qh-intro-frame {
    display: inline-block;
    margin-bottom: clamp(14px, 2vh, 24px);
    padding: 8px 24px;
}

/* Subpage: bloque Metodología — vidrio verde unificado, incluye título */
.qh-metodologia-block {
    max-width: min(980px, 88%);
    margin-inline: auto;
    margin-top: clamp(28px, 4vh, 52px);
    padding: clamp(18px, 2.4vw, 28px) clamp(20px, 2.6vw, 34px);
    background: transparent;
    border: 2px solid rgba(0, 206, 132, 0.42);
    border-radius: 0;
    text-align: center;
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.045);
}

.qh-metodologia-block .qh-subpage-col-text {
    max-width: none;
    margin-inline: 0;
    text-align: left;
    font-size: calc(clamp(0.98rem, 1.2vw, 1.15rem) - 1pt);
    line-height: 1.55;
}

.qh-metodologia-block .qh-subpage-col-text + .qh-subpage-col-text {
    margin-top: 0.3em;
}

/* Subtitle under Objetivos title */
.qh-objetivos-subtitle {
    font-family: "Merriweather Sans", sans-serif;
    font-size: calc(clamp(0.82rem, 0.96vw, 0.92rem) - 1pt);
    font-weight: 300;
    font-style: italic;
    line-height: 1.42;
    letter-spacing: 0.02em;
    color: rgba(52, 52, 52, 0.78);
    text-align: center;
    max-width: min(780px, 94%);
    margin: 0 auto;
}

.qh-objetivos-subtitle a {
    color: #343434;
    font-weight: 600;
    text-decoration: none;
}

.qh-objetivos-subtitle a:hover {
    color: #00ce84;
}

.qh-bottom-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: clamp(18px, 3vh, 32px);
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(100deg, #db0064 0%, #ff6720 16%, #fdc000 32%, #00ce84 48%, #00a6d6 64%, #7f3fb8 80%, #db0064 100%);
    background-size: 160% 100%;
    background-position: 50% 50%;
    color: #fff;
    font-family: "Gemunu Libre", sans-serif;
    font-size: calc(clamp(0.9rem, 1.1vw, 1.05rem) + 2pt);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.03em;
    text-decoration: none;
    filter: saturate(0.78) brightness(1.06);
    opacity: 0.92;
    animation: cp-cta-gradient-drift 9s ease-in-out infinite alternate;
    transition: filter 0.22s ease, opacity 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.qh-bottom-cta:hover,
.qh-bottom-cta:focus-visible {
    filter: saturate(0.92) brightness(1.08);
    opacity: 1;
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.12);
}

/* L-shaped corners on glass cards */
.qh-card-corner {
    position: absolute;
    width: 9px;
    height: 9px;
    border-color: rgba(255, 255, 255, 0.55);
    border-style: solid;
    opacity: 0.75;
    pointer-events: none;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.qh-card-corner.tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.qh-card-corner.tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.qh-card-corner.bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.qh-card-corner.br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

.qh-objetivo-card-title {
    font-family: "Merriweather Sans", sans-serif;
    font-size: calc(clamp(0.82rem, 1vw, 0.94rem) - 1pt);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #343434;
    margin: 0;
}

.qh-objetivo-card-text {
    font-family: "Merriweather Sans", sans-serif;
    font-size: calc(clamp(0.78rem, 0.94vw, 0.88rem) - 1pt);
    font-weight: 200;
    font-style: italic;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #343434;
    margin: 0;
}

/* ---- ODS attribute badges ---- */

.qh-card-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: clamp(6px, 0.8vh, 12px);
}

.qh-card-attr {
    --qh-card-attr-color: rgba(52, 52, 52, 0.4);
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--qh-card-attr-color);
    border-radius: 20px;
    background: color-mix(in srgb, var(--qh-card-attr-color) 10%, transparent);
    font-family: "Merriweather Sans", sans-serif;
    font-size: calc(clamp(0.52rem, 0.62vw, 0.6rem) - 2pt);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #343434;
    white-space: nowrap;
}

.qh-card-attr-code,
.qh-card-attr-text {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
}

.qh-card-attr-code {
    color: #111;
    background: color-mix(in srgb, var(--qh-card-attr-color) 18%, transparent);
}

.qh-card-attr-text {
    border-left: 1px solid var(--qh-card-attr-color);
    font-weight: 500;
}

.qh-card-attr[data-ods="ods1"]  { --qh-card-attr-color: rgba(255,138,90,0.54); }
.qh-card-attr[data-ods="ods4"]  { --qh-card-attr-color: rgba(155,110,211,0.52); }
.qh-card-attr[data-ods="ods8"]  { --qh-card-attr-color: rgba(0,206,132,0.58); }
.qh-card-attr[data-ods="ods9"]  { --qh-card-attr-color: rgba(95,188,230,0.56); }
.qh-card-attr[data-ods="ods10"] { --qh-card-attr-color: rgba(232,75,140,0.52); }
.qh-card-attr[data-ods="ods11"] { --qh-card-attr-color: rgba(88,125,219,0.52); }
.qh-card-attr[data-ods="ods16"] { --qh-card-attr-color: rgba(77,183,193,0.58); }
.qh-card-attr[data-ods="ods17"] { --qh-card-attr-color: rgba(253,192,0,0.68); }

@media (max-width: 768px) {
    .qh-objetivos-cards {
        gap: 0;
        width: min(100%, 92vw);
        padding-left: 0;
    }

    .qh-objetivo-card-left,
    .qh-objetivo-card-right,
    .qh-objetivo-card-full {
        align-self: stretch;
        width: 100%;
    }

    .qh-objetivo-card + .qh-objetivo-card {
        margin-top: clamp(12px, 4vw, 20px);
    }

    .qh-panel-objetivos .qh-subpage-cols {
        max-width: 100%;
    }

    .qh-panel-objetivos .qh-subpage-col:first-child,
    .qh-panel-objetivos .qh-subpage-col:nth-child(2) {
        flex: 1;
        margin-top: 0;
    }
}

/* ---- /Objetivos glass cards ---- */

/* ---- Objetivos y metodología page redesign ---- */

.om-section {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.om-section .qh-network {
    opacity: 0.78;
}

.qh-subpage .om-wrap {
    --om-cards-horz-gap: clamp(60px, 8vw, 130px);
    width: min(1300px, calc(100% - clamp(48px, 8vw, 140px)));
    margin-inline: auto;
    padding: clamp(122px, 15vh, 168px) 0 clamp(56px, 9vh, 96px);
}

.om-hero {
    display: grid;
    grid-template-columns: minmax(200px, 0.22fr) minmax(0, 0.78fr);
    gap: clamp(12px, 2vw, 32px);
    align-items: end;
    position: relative;
    margin-bottom: clamp(12px, 2vh, 24px);
    padding-right: calc(var(--om-cards-horz-gap) / 2);
}

.om-hero::after {
    content: "";
    position: absolute;
    left: auto;
    right: calc(var(--om-cards-horz-gap) / 2);
    bottom: clamp(-10px, -1vw, -6px);
    width: clamp(280px, 56%, 680px);
    height: 2px;
    background: linear-gradient(100deg, rgba(219, 0, 100, 0.68), rgba(253, 192, 0, 0.72), rgba(0, 206, 132, 0.7), rgba(0, 166, 214, 0.68), rgba(127, 63, 184, 0.66));
    opacity: 0.72;
}

.om-hero-copy.qh-objetivos-subtitle {
    grid-column: 2;
    max-width: none;
    margin: 0;
    margin-top: clamp(12px, 2vh, 28px);
    justify-self: stretch;
    text-align: right;
    font-size: calc(clamp(1rem, 1.22vw, 1.22rem) - 1pt);
    line-height: 1.62;
    color: rgba(20, 19, 19, 0.72);
}

.om-objectives {
    position: relative;
}

.om-objectives-with-title {
    display: grid;
    grid-template-columns: minmax(200px, 0.22fr) minmax(0, 0.78fr);
    gap: clamp(12px, 2vw, 32px);
    align-items: start;
    padding-right: calc(var(--om-cards-horz-gap) / 2);
}

.om-objectives-heading .qh-intro-frame {
    position: sticky;
    top: clamp(92px, 12vh, 132px);
    width: max-content;
    margin: 0;
    padding: 10px 28px;
    margin-left: calc(var(--om-cards-horz-gap) / 2 + 2px);
}

.om-objectives-heading .qh-intro-text {
    font-size: calc(clamp(1.28rem, 1.9vw, 2.05rem) + 2pt);
}

.om-section .qh-objetivos-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(8px, 1vw, 14px);
    width: auto;
    margin: 0 0 0 20pt;
    padding: 0;
}

.om-section .qh-objetivo-card {
    --om-card-accent: rgba(17, 17, 17, 0.18);
    position: relative;
    width: auto;
    min-height: 0;
    margin: 0;
    grid-column: 1;
    padding: clamp(10px, 1vw, 14px) clamp(14px, 1.4vw, 18px);
    background:
        radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.94), transparent 36%),
        radial-gradient(circle at 88% 12%, rgba(0, 206, 132, 0.1), transparent 34%),
        radial-gradient(circle at 86% 88%, rgba(219, 0, 100, 0.08), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.48));
    border: 1px solid var(--om-card-accent);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 12px 30px rgba(17, 17, 17, 0.035);
    overflow: visible;
    backdrop-filter: blur(18px) saturate(124%);
    -webkit-backdrop-filter: blur(18px) saturate(124%);
}

.om-section .qh-objetivo-card:nth-of-type(1) {
    --om-card-accent: rgba(219, 0, 100, 0.3);
    background:
        radial-gradient(circle at 9% 14%, rgba(255, 255, 255, 0.98), transparent 34%),
        radial-gradient(circle at 8% 92%, rgba(219, 0, 100, 0.13), transparent 40%),
        radial-gradient(circle at 78% 12%, rgba(219, 0, 100, 0.1), transparent 38%),
        radial-gradient(circle at 94% 84%, rgba(219, 0, 100, 0.06), transparent 34%),
        linear-gradient(135deg, rgba(255, 247, 252, 0.9), rgba(255, 255, 255, 0.58));
}

.om-section .qh-objetivo-card:nth-of-type(2) {
    --om-card-accent: rgba(255, 103, 32, 0.32);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.98), transparent 34%),
        radial-gradient(circle at 82% 16%, rgba(255, 103, 32, 0.14), transparent 36%),
        radial-gradient(circle at 8% 88%, rgba(255, 103, 32, 0.08), transparent 38%),
        radial-gradient(circle at 94% 88%, rgba(255, 103, 32, 0.08), transparent 34%),
        linear-gradient(135deg, rgba(255, 249, 244, 0.9), rgba(255, 255, 255, 0.56));
}

.om-section .qh-objetivo-card:nth-of-type(3) {
    --om-card-accent: rgba(253, 192, 0, 0.36);
    background:
        radial-gradient(circle at 10% 88%, rgba(253, 192, 0, 0.12), transparent 38%),
        radial-gradient(circle at 34% 10%, rgba(253, 192, 0, 0.12), transparent 36%),
        radial-gradient(circle at 96% 24%, rgba(255, 255, 255, 0.98), transparent 34%),
        radial-gradient(circle at 78% 92%, rgba(253, 192, 0, 0.07), transparent 32%),
        linear-gradient(135deg, rgba(255, 252, 242, 0.9), rgba(255, 255, 255, 0.58));
}

.om-section .qh-objetivo-card:nth-of-type(4) {
    --om-card-accent: rgba(0, 206, 132, 0.3);
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.98), transparent 34%),
        radial-gradient(circle at 92% 20%, rgba(0, 206, 132, 0.12), transparent 38%),
        radial-gradient(circle at 8% 92%, rgba(0, 206, 132, 0.08), transparent 36%),
        radial-gradient(circle at 72% 86%, rgba(0, 206, 132, 0.07), transparent 40%),
        linear-gradient(135deg, rgba(247, 255, 251, 0.9), rgba(255, 255, 255, 0.58));
}

.om-section .qh-objetivo-card:nth-of-type(5) {
    --om-card-accent: rgba(0, 166, 214, 0.3);
    background:
        radial-gradient(circle at 10% 24%, rgba(0, 166, 214, 0.12), transparent 34%),
        radial-gradient(circle at 36% 100%, rgba(0, 166, 214, 0.12), transparent 42%),
        radial-gradient(circle at 82% 10%, rgba(0, 166, 214, 0.08), transparent 36%),
        radial-gradient(circle at 96% 86%, rgba(0, 166, 214, 0.07), transparent 34%),
        linear-gradient(135deg, rgba(246, 252, 255, 0.9), rgba(255, 255, 255, 0.58));
}

.om-section .qh-objetivo-card-full {
    /* all cards now full width in single-column layout */
}

.om-section .qh-objetivo-card-title {
    max-width: none;
    font-size: clamp(0.88rem, 0.96vw, 0.96rem);
    font-weight: 400;
    line-height: 1.22;
    color: rgba(17, 19, 34, 0.94);
}

.om-section .qh-objetivo-card-text {
    max-width: none;
    margin-top: clamp(6px, 0.6vh, 8px);
    font-size: clamp(0.8rem, 0.86vw, 0.86rem);
    font-style: normal;
    font-weight: 300;
    line-height: 1.35;
    color: rgba(21, 24, 39, 0.88);
}

.om-section .qh-card-attrs {
    gap: 6px;
    margin-top: auto;
    padding-top: clamp(10px, 1vh, 14px);
}

.om-section .qh-card-attr {
    --om-badge-color: #343434;
    --om-badge-text-color: #ffffff;
    display: inline-block;
    padding: 3px 10px 4px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: color-mix(in srgb, var(--om-badge-color) 66%, #ffffff 34%);
    box-shadow: none;
    color: var(--om-badge-text-color);
    font-size: calc(clamp(0.66rem, 0.68vw, 0.72rem) - 2pt);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.om-section .qh-card-attr[data-ods="ods1"]  { --om-badge-color: #FF8A5A; --om-badge-text-color: #000000; }
.om-section .qh-card-attr[data-ods="ods4"]  { --om-badge-color: #9B6ED3; --om-badge-text-color: #ffffff; }
.om-section .qh-card-attr[data-ods="ods8"]  { --om-badge-color: #00CE84; --om-badge-text-color: #10241d; }
.om-section .qh-card-attr[data-ods="ods9"]  { --om-badge-color: #5FBCE6; --om-badge-text-color: #000000; }
.om-section .qh-card-attr[data-ods="ods10"] { --om-badge-color: #E84B8C; --om-badge-text-color: #000000; }
.om-section .qh-card-attr[data-ods="ods11"] { --om-badge-color: #587DDB; --om-badge-text-color: #ffffff; }
.om-section .qh-card-attr[data-ods="ods16"] { --om-badge-color: #4DB7C1; --om-badge-text-color: #000000; }
.om-section .qh-card-attr[data-ods="ods17"] { --om-badge-color: #FDC000; --om-badge-text-color: #2b2100; }

.om-method.qh-metodologia-block {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 0.22fr) minmax(0, 0.78fr);
    gap: clamp(12px, 2vw, 32px);
    max-width: none;
    margin: clamp(28px, 5vh, 60px) 0 0;
    padding: clamp(16px, 2.4vw, 32px) 0 0;
    padding-right: calc(var(--om-cards-horz-gap) / 2);
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: left;
}

.om-method::before {
    content: "";
    position: absolute;
    top: 0;
    height: 2px;
    left: calc(var(--om-cards-horz-gap) / 2);
    right: calc(var(--om-cards-horz-gap) / 2);
    background: linear-gradient(100deg, rgba(0, 206, 132, 0.68), rgba(0, 166, 214, 0.62), rgba(127, 63, 184, 0.58), rgba(219, 0, 100, 0.52));
    opacity: 0.8;
}

.om-method .qh-intro-frame {
    position: sticky;
    top: clamp(92px, 12vh, 132px);
    width: max-content;
    margin: 0;
    padding: 10px 28px;
    margin-left: calc(var(--om-cards-horz-gap) / 2 + 2px);
}

.om-method .qh-intro-text {
    font-size: calc(clamp(1.28rem, 1.9vw, 2.05rem) + 2pt);
}

.om-method-copy {
    display: block;
    justify-self: end;
    max-width: none;
    margin-left: 20pt;
    padding: clamp(14px, 1.6vw, 20px) clamp(20px, 2.4vw, 36px);
    background:
        radial-gradient(circle at 10% 14%, rgba(255, 255, 255, 0.98), transparent 35%),
        radial-gradient(circle at 18% 92%, rgba(118, 73, 183, 0.09), transparent 38%),
        radial-gradient(circle at 84% 14%, rgba(0, 166, 214, 0.07), transparent 36%),
        radial-gradient(circle at 94% 88%, rgba(219, 0, 100, 0.06), transparent 36%),
        linear-gradient(135deg, rgba(253, 250, 255, 0.92), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(118, 73, 183, 0.28);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 30px rgba(17, 17, 17, 0.04);
}

.om-method .qh-subpage-col-text {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: clamp(0.86rem, 0.96vw, 0.98rem);
    font-style: normal;
    font-weight: 300;
    line-height: 1.35;
    color: rgba(21, 24, 39, 0.9);
    box-shadow: none;
}

.om-method .qh-subpage-col-text strong {
    font-weight: 600;
}

.om-method .qh-subpage-col-text + .qh-subpage-col-text {
    margin-top: 0.48em;
}

.om-footer {
    display: flex;
    justify-content: center;
    margin-top: clamp(30px, 5vh, 60px);
}

.om-section .qh-bottom-cta {
    margin-top: 0;
}

@media (max-width: 820px) {
    .qh-subpage .om-wrap {
        width: min(100% - 28px, 720px);
        padding-top: clamp(104px, 13vh, 132px);
    }

    .om-hero {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3vw, 24px);
        margin-bottom: clamp(22px, 4vh, 34px);
        padding-right: 0;
    }

    .om-hero::after {
        left: 0;
        right: 0;
        width: auto;
        height: 1px;
    }

    .om-hero-copy.qh-objetivos-subtitle {
        grid-column: 1;
        justify-self: stretch;
        max-width: none;
    }

    .om-objectives-with-title {
        grid-template-columns: 1fr;
        gap: clamp(18px, 4vw, 28px);
        padding-right: 0;
    }

    .om-objectives-heading .qh-intro-frame {
        position: relative;
        top: auto;
        margin-left: 0;
    }

    .om-section .qh-objetivos-cards {
        grid-template-columns: 1fr;
        width: auto;
        margin: 0;
    }

    .om-section .qh-objetivo-card,
    .om-section .qh-objetivo-card:nth-of-type(1),
    .om-section .qh-objetivo-card:nth-of-type(2),
    .om-section .qh-objetivo-card:nth-of-type(3),
    .om-section .qh-objetivo-card:nth-of-type(4),
    .om-section .qh-objetivo-card:nth-of-type(5) {
        grid-column: 1;
        min-height: auto;
        transform: none;
    }

    .om-method.qh-metodologia-block {
        grid-template-columns: 1fr;
        gap: clamp(18px, 4vw, 28px);
    }

    .om-method .qh-intro-frame {
        position: relative;
        top: auto;
        margin-left: 0;
    }

    .om-method-copy {
        justify-self: stretch;
        max-width: none;
    }
}

@media (max-width: 540px) {
    .om-section .qh-objetivo-card {
        padding: 18px;
    }

    .om-section .qh-card-attr {
        max-width: 100%;
        white-space: normal;
    }
}

/* ---- /Objetivos y metodología page redesign ---- */

/* Coopolis */

.cp-section {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    align-items: flex-start;
    justify-content: center;
    isolation: isolate;
    overflow-x: visible;
    overflow-y: visible;
    padding: clamp(124px, 13vh, 148px) var(--section-padding-x) clamp(62px, 10vh, 112px);
    scroll-margin-top: -80px;
    background: transparent;
}

.cp-section::after {
    content: "";
    display: none;
    position: absolute;
    right: max(-34vw, -420px);
    bottom: max(-52vh, -520px);
    width: min(80vw, 980px);
    aspect-ratio: 1 / 1;
    border: clamp(3px, 0.32vw, 5px) solid transparent;
    border-top-color: rgba(219, 0, 100, 0.76);
    border-left-color: rgba(77, 183, 193, 0.76);
    border-bottom-color: rgba(253, 192, 0, 0.68);
    border-radius: 50%;
    transform: rotate(-24deg);
    pointer-events: none;
}

.cp-trail-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: visible;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.cp-trail-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cp-trail-path {
    fill: none;
    stroke-width: clamp(2.5px, 0.36vw, 4px);
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.86;
    filter: drop-shadow(0 16px 24px rgba(78, 219, 212, 0.16));
    vector-effect: non-scaling-stroke;
    will-change: stroke-dashoffset;
}

.cp-sparks {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.cp-spark {
    position: absolute;
    left: var(--spark-x);
    top: calc(var(--spark-at, 0) * 100%);
    display: block;
    opacity: 0;
    transform: scale(0.15) rotate(var(--spark-rot, 0deg));
    transform-origin: center;
    translate: -50% -50%;
    transition: opacity 400ms ease, transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cp-spark svg {
    display: block;
    overflow: visible;
    filter: drop-shadow(0 0 5px var(--spark-color, #ff2498));
}

.cp-spark.is-lit {
    opacity: 1;
    transform: scale(1) rotate(var(--spark-rot, 0deg));
}

.cp-spark.is-lit svg {
    animation: cp-spark-pulse 3s ease-in-out infinite 0.5s;
}

.cp-spark:nth-child(3n+2).is-lit svg { animation-duration: 2.5s; }
.cp-spark:nth-child(3n).is-lit svg   { animation-duration: 3.8s; }

@keyframes cp-spark-pulse {
    0%, 100% { transform: scale(1)    rotate(0deg);  }
    40%       { transform: scale(1.22) rotate(18deg); }
    70%       { transform: scale(0.65) rotate(40deg); }
}

@media (prefers-reduced-motion: reduce) {
    .cp-spark.is-lit svg { animation: none; }
}

@media (max-width: 700px) {
    .cp-spark { scale: 0.72; }
}

.cp-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 900px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.1vh, 22px);
    margin: 0 auto;
    text-align: center;
}

.cp-logo {
    display: block;
    width: min(62vw, 500px);
    height: auto;
    filter: drop-shadow(0 12px 26px rgba(17, 17, 17, 0.08));
}

.cp-stamps {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.8vw, 36px);
    width: 100%;
    margin-top: clamp(-6px, -0.7vh, -2px);
    margin-bottom: clamp(22px, 3.2vh, 36px);
}

.cp-stamp {
    display: block;
    width: auto;
    max-width: 28%;
    height: clamp(17px, 2.05vw, 27px);
    object-fit: contain;
}

.cp-frame {
    position: relative;
    isolation: isolate;
    width: min(100%, 720px);
    padding: clamp(20px, 2.8vw, 30px) clamp(20px, 3.2vw, 38px);
}

.cp-scroll-hint {
    top: calc(50svh + 80px);
    right: calc(var(--section-padding-x) * 0.6);
    left: auto;
    z-index: 3;
    color: var(--color-text);
    opacity: 0.75;
}

.cp-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px) saturate(0.9);
    -webkit-backdrop-filter: blur(2px) saturate(0.9);
    pointer-events: none;
    transition: inset 0.25s ease, background-color 0.25s ease;
}

.cp-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--color-text);
    border-style: solid;
    opacity: 0.86;
    transition:
        top 0.25s ease,
        right 0.25s ease,
        bottom 0.25s ease,
        left 0.25s ease,
        opacity 0.25s ease;
    pointer-events: none;
}

.cp-corner.tl {
    top: 0;
    left: 0;
    border-width: 1.5px 0 0 1.5px;
}

.cp-corner.tr {
    top: 0;
    right: 0;
    border-width: 1.5px 1.5px 0 0;
}

.cp-corner.bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 1.5px 1.5px;
}

.cp-corner.br {
    right: 0;
    bottom: 0;
    border-width: 0 1.5px 1.5px 0;
}

.cp-frame:hover .cp-corner {
    opacity: 1;
}

.cp-frame:hover::before {
    inset: -10px;
    background: rgba(255, 255, 255, 0.78);
}

.cp-frame:hover .cp-corner.tl {
    top: -10px;
    left: -10px;
}

.cp-frame:hover .cp-corner.tr {
    top: -10px;
    right: -10px;
}

.cp-frame:hover .cp-corner.bl {
    bottom: -10px;
    left: -10px;
}

.cp-frame:hover .cp-corner.br {
    right: -10px;
    bottom: -10px;
}

.cp-text {
    color: rgba(17, 17, 17, 0.82);
    font-family: "Gemunu Libre", sans-serif;
    font-size: clamp(1.02rem, 1.35vw, 1.28rem);
    font-weight: 300;
    line-height: 1.28;
    letter-spacing: 0.01em;
}

.cp-text p+p {
    margin-top: 0.92em;
}

.cp-text strong {
    font-weight: 700;
}

.cp-footnote {
    display: inline-flex;
    align-items: center;
    margin-left: 0.22em;
    padding: 0.05em 0.44em 0.13em;
    border: 1px solid rgba(17, 17, 17, 0.38);
    color: rgba(17, 17, 17, 0.74);
    font-size: 0.82em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
    vertical-align: 0.08em;
}

.cp-story {
    position: relative;
    width: 100vw;
    height: 340vh;
    height: 340svh;
    margin-top: clamp(12px, 2vh, 24px);
    margin-inline: calc(50% - 50vw);
}

.cp-story-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    display: grid;
    place-items: center;
    overflow: visible;
    pointer-events: none;
}

.cp-cta {
    --cp-cta-height: 46px;
    --cp-cta-gradient: linear-gradient(100deg, #db0064 0%, #ff6720 16%, #fdc000 32%, #00ce84 48%, #00a6d6 64%, #7f3fb8 80%, #db0064 100%);
    --cp-cta-x: 0px;
    --cp-cta-y: 0px;
    --cp-cta-active-y: 0px;
    --cp-cta-scale: 1;
    --cp-cta-label-x: 0px;
    --cp-cta-label-y: 0px;
    position: sticky;
    top: calc(100svh - var(--cp-cta-height) - clamp(48px, 7vh, 80px));
    left: auto;
    z-index: 10;
    display: flex;
    width: max-content;
    max-width: calc(100vw - 44px);
    margin-inline: auto;
    min-height: var(--cp-cta-height);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.84em 2.25em 0.9em;
    border-radius: 999px;
    background-image: var(--cp-cta-gradient);
    background-size: 118% 100%;
    background-position: 50% 50%;
    color: #fff;
    font-family: "Gemunu Libre", sans-serif;
    font-size: clamp(1rem, 1.22vw, 1.18rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    filter: saturate(1.12) brightness(1.02);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.16);
    isolation: isolate;
    pointer-events: auto;
    transform: translate3d(var(--cp-cta-x), calc(var(--cp-cta-y) + var(--cp-cta-active-y)), 0) scale(var(--cp-cta-scale));
    will-change: transform;
    transition:
        filter 0.22s ease,
        box-shadow 0.22s ease,
        --cp-cta-scale 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        --cp-cta-active-y 0.14s ease;
    animation: cp-cta-gradient-drift 9s ease-in-out infinite alternate;
}

.cp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(100deg, #00a6d6 0%, #7f3fb8 16%, #db0064 32%, #ff6720 48%, #fdc000 64%, #00ce84 80%, #00a6d6 100%);
    background-size: 118% 100%;
    background-position: 50% 50%;
    opacity: 1;
    transition: opacity 0.34s ease;
    animation: cp-cta-gradient-drift 9s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

.cp-cta-label {
    position: relative;
    z-index: 1;
    display: block;
    transform: translate3d(var(--cp-cta-label-x), var(--cp-cta-label-y), 0);
    will-change: transform;
    pointer-events: none;
}

.cp-cta:hover,
.cp-cta:focus-visible {
    --cp-cta-scale: 1.045;
    filter: none;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.cp-cta:hover::before,
.cp-cta:focus-visible::before {
    opacity: 0;
}

.cp-cta:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.7);
    outline-offset: 4px;
}

.cp-cta:active {
    --cp-cta-active-y: 1px;
    --cp-cta-scale: 1.025;
}

.cp-cta:active::before {
    background: linear-gradient(100deg, #fdc000 0%, #00ce84 20%, #00a6d6 40%, #7f3fb8 62%, #db0064 82%, #ff6720 100%);
    opacity: 1;
}

@keyframes cp-cta-gradient-drift {
    from {
        background-position: 24% 50%;
    }

    to {
        background-position: 76% 50%;
    }
}

@keyframes qh-side-gradient-drift {
    from {
        background-position: 50% 24%;
    }

    to {
        background-position: 50% 76%;
    }
}

.cp-box-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    isolation: isolate;
    overflow: visible;
    pointer-events: none;
}

.cp-box-stage::before {
    content: "";
    position: absolute;
    inset: 18% 6% 12%;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 48%, rgba(77, 183, 193, 0.18), transparent 38%),
        radial-gradient(circle at 42% 58%, rgba(253, 192, 0, 0.14), transparent 34%);
    filter: blur(4px);
    pointer-events: none;
}

.cp-box-canvas,
.cp-box-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cp-box-canvas {
    inset: auto;
    top: -7%;
    left: -10%;
    width: 120%;
    height: 114%;
    z-index: 2;
    display: block;
    cursor: default;
    opacity: 0;
    transition: opacity 0.28s ease;
    touch-action: pan-y;
    pointer-events: none;
}

.cp-box-canvas:active {
    cursor: default;
}

.cp-box-fallback {
    z-index: 1;
    object-fit: contain;
    padding: clamp(90px, 14vh, 160px) clamp(26px, 9vw, 92px);
    filter: drop-shadow(0 24px 34px rgba(17, 17, 17, 0.18));
    opacity: 0.92;
    transform: rotate(-4deg);
    transition: opacity 0.24s ease;
    pointer-events: none;
}

.cp-section.is-3d-ready .cp-box-canvas {
    opacity: 1;
}

.cp-section.is-3d-ready .cp-box-fallback {
    opacity: 0;
}

/* Contacto */

.ct-section {
    --ct-trust-offset: clamp(62px, 8vh, 96px);
    --ct-divider-gap: clamp(42px, calc((100svh - 615px - var(--ct-trust-offset)) / 2), 96px);
    position: relative;
    display: flex;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.ct-corner {
    position: absolute;
    width: 9px;
    height: 9px;
    border-color: var(--color-text);
    border-style: solid;
    opacity: 0.85;
    transition:
        top 0.25s ease,
        right 0.25s ease,
        bottom 0.25s ease,
        left 0.25s ease;
    pointer-events: none;
}

.ct-corner.tl {
    top: 0;
    left: 0;
    border-width: 1.5px 0 0 1.5px;
}

.ct-corner.tr {
    top: 0;
    right: 0;
    border-width: 1.5px 1.5px 0 0;
}

.ct-corner.bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 1.5px 1.5px;
}

.ct-corner.br {
    right: 0;
    bottom: 0;
    border-width: 0 1.5px 1.5px 0;
}

.ct-trust {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    display: grid;
    gap: clamp(14px, 2.4vh, 28px);
    padding: var(--ct-trust-offset) 0 0;
}

.ct-trust-frame {
    position: relative;
    justify-self: center;
    display: inline-block;
    padding: 8px 24px;
}

.ct-trust-title {
    color: var(--color-text);
    font-size: clamp(1rem, 1.4vw, 1.32rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ct-trust-title strong {
    color: #00ce84;
    font-weight: 400;
}

.ct-trust-frame:hover .ct-corner.tl {
    top: -8px;
    left: -8px;
}

.ct-trust-frame:hover .ct-corner.tr {
    top: -8px;
    right: -8px;
}

.ct-trust-frame:hover .ct-corner.bl {
    bottom: -8px;
    left: -8px;
}

.ct-trust-frame:hover .ct-corner.br {
    right: -8px;
    bottom: -8px;
}

.aliados-strip {
    position: relative;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
    contain: layout paint;
    padding: clamp(16px, 2.6vh, 34px) 0 clamp(16px, 2.6vh, 34px);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.aliados-track {
    --aliados-gap: clamp(36px, 4.6vw, 78px);
    --aliados-duration: 56s;
    display: flex;
    align-items: center;
    width: max-content;
    animation: aliados-scroll var(--aliados-duration) linear infinite;
    animation-play-state: paused;
    will-change: transform;
}

.aliados-strip:hover .aliados-track,
.aliados-strip:focus-within .aliados-track {
    animation-play-state: paused;
}

.aliados-set {
    display: flex;
    align-items: center;
    gap: var(--aliados-gap);
    flex: 0 0 auto;
    padding-right: var(--aliados-gap);
}

.aliados-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
    text-decoration: none;
}

.aliados-logo {
    display: block;
    width: auto;
    height: clamp(23px, 3.2vh, 44px);
    flex: 0 0 auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
    will-change: transform;
}

.aliados-link:hover .aliados-logo,
.aliados-link:focus-visible .aliados-logo {
    opacity: 0.72;
    transform: translateY(-6px);
}

/* Ajustes individuales para equilibrar el peso visual de cada sello. */
.aliados-logo[src*="ECC"] { height: clamp(34px, 4.3vh, 60px); }
.aliados-logo[src*="Logo-Typeo"] { height: clamp(27px, 3.5vh, 48px); }
.aliados-logo[src*="banco-credicoop"] { height: clamp(29px, 3.7vh, 52px); }
.aliados-logo[src*="cambalache"] { height: clamp(38px, 4.8vh, 68px); }
.aliados-logo[src*="ccc"] { height: clamp(34px, 4.3vh, 60px); }
.aliados-logo[src*="circuito-cultural"] { height: clamp(34px, 4.3vh, 60px); }
.aliados-logo[src*="La-Poderosa"] { height: clamp(34px, 4.3vh, 60px); }
.aliados-logo[src*="ediciones-continente"] { height: clamp(18px, 2.3vh, 34px); }
.aliados-logo[src*="logo-ni-una-menos"] { height: clamp(39px, 5vh, 70px); }
.aliados-logo[src*="el-maizal"] { height: clamp(28px, 3.6vh, 50px); }
.aliados-logo[src*="logo-ehl"] { height: clamp(39px, 5vh, 70px); }
.aliados-logo[src*="facttic"] { height: clamp(30px, 3.8vh, 54px); }
.aliados-logo[src*="logo-fecootra"] { height: clamp(34px, 4.3vh, 60px); }
.aliados-logo[src*="logo-la-base"] { height: clamp(30px, 3.8vh, 54px); }
.aliados-logo[src*="puente"] { height: clamp(39px, 5vh, 70px); }
.aliados-logo[src*="elzocalo"] { height: clamp(26px, 3.3vh, 46px); }
.aliados-logo[src*="usina-barracas"] { height: clamp(39px, 5vh, 70px); }
.aliados-logo[src*="datagenero"] { height: clamp(18px, 2.3vh, 34px); }

@keyframes aliados-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--aliados-to, -50%));
    }
}

.ct-body {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    width: 100vw;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(36px, 8vw, 140px);
    padding: calc(var(--ct-divider-gap) * 2) clamp(72px, 7.2vw, 140px) clamp(22px, 3vh, 34px);
}

.ct-body::before {
    content: "";
    position: absolute;
    inset: -35% 0 0 0;
    z-index: -1;
    pointer-events: none;
    background: url("../img/bg-footer.jpg") center / cover no-repeat;
    opacity: 1;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 10%, black 26%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 10%, black 26%);
}

.ct-body::after {
    content: "";
    position: absolute;
    top: var(--ct-divider-gap);
    left: clamp(24px, 7vw, 130px);
    right: clamp(24px, 7vw, 130px);
    height: 1px;
    z-index: -1;
    background: linear-gradient(to right, transparent, rgba(17, 17, 17, 0.18), transparent);
}

@media (min-width: 1025px) and (max-height: 820px) {
    .ct-section {
        --ct-trust-offset: clamp(104px, 16vh, 150px);
        --ct-divider-gap: 28px;
    }

    .ct-trust {
        gap: 12px;
    }

    .aliados-strip {
        padding-top: 10px;
    }

    .aliados-logo {
        height: clamp(20px, 3vh, 34px);
    }

    .ct-body {
        padding-top: calc(var(--ct-divider-gap) * 2);
    }
}

.ct-form {
    position: relative;
    flex: 0 0 auto;
    width: clamp(360px, 36vw, 620px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.3vh, 15px);
    padding: clamp(12px, 1.6vw, 20px);
    background:
        linear-gradient(var(--color-text), var(--color-text)) left top / 18px 2px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) left top / 2px 18px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) right top / 18px 2px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) right top / 2px 18px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) left bottom / 18px 2px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) left bottom / 2px 18px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) right bottom / 18px 2px no-repeat,
        linear-gradient(var(--color-text), var(--color-text)) right bottom / 2px 18px no-repeat,
        rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.ct-field {
    display: flex;
    flex-direction: column;
}

.ct-field label {
    width: fit-content;
    margin-bottom: 5px;
    color: var(--color-text);
    font-size: clamp(0.82rem, 1vw, 1rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ct-field input,
.ct-field textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text);
    font-family: "Gemunu Libre", sans-serif;
    font-size: clamp(1.08rem, 1.22vw, 1.22rem);
    padding: 0 16px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ct-field input {
    height: clamp(40px, 5.2vh, 56px);
}

.ct-field textarea {
    min-height: clamp(78px, 9vh, 108px);
    padding: 12px 14px;
    resize: vertical;
}

.ct-field input:focus,
.ct-field textarea:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.2);
}

.ct-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 1.8vw, 22px);
    margin-top: clamp(6px, 1vh, 12px);
}

.ct-form-status {
    grid-column: 1;
    grid-row: 1;
}

.ct-submit {
    grid-column: 2;
    grid-row: 1;
    width: fit-content;
    border: 0;
    background: var(--color-text);
    color: #ffffff;
    font-family: "Gemunu Libre", sans-serif;
    font-size: clamp(0.88rem, 1.3vw, 1.18rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    padding: clamp(10px, 1.1vh, 13px) clamp(22px, 2.6vw, 38px);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ct-submit:hover {
    background: #5f5f5f;
    color: #ffffff;
}

.ct-submit:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}

.ct-submit:disabled {
    cursor: default;
    opacity: 0.72;
}

.ct-form-status {
    min-height: 1.3em;
    color: var(--color-text);
    font-size: clamp(0.88rem, 1vw, 1rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.ct-info {
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
    padding-bottom: clamp(8px, 1vh, 14px);
}

.ct-info address {
    display: grid;
    gap: clamp(14px, 1.9vh, 24px);
    font-style: normal;
}

.ct-info p,
.ct-info a {
    color: var(--color-text);
    text-decoration: none;
}

.ct-info p,
.ct-info a {
    font-size: clamp(1rem, 1.3vw, 1.28rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.085em;
    text-decoration: none;
}

.ct-info p {
    margin: 0;
}

.ct-info-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ct-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(20px, 1.55vw, 25px);
    height: clamp(20px, 1.55vw, 25px);
    color: var(--color-text);
    opacity: 0.78;
}

.ct-info-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ct-info a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ct-social {
    display: flex;
    justify-content: flex-end;
    gap: clamp(12px, 1.15vw, 18px);
    margin-top: clamp(18px, 2.4vh, 30px);
}

.ct-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ct-social-link:hover {
    opacity: 0.58;
}

.ct-social-link svg {
    display: block;
    width: clamp(19px, 1.7vw, 27px);
    height: clamp(19px, 1.7vw, 27px);
}

.ct-info .ct-credit {
    display: inline-grid;
    justify-items: end;
    gap: 4px;
    margin: 0;
    padding-top: clamp(16px, 2.2vh, 28px);
}

.ct-info .ct-credit span {
    color: var(--color-text);
    font-size: clamp(0.68rem, 0.82vw, 0.78rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.14em;
    opacity: 0.68;
    text-transform: uppercase;
}

.ct-info .ct-credit a {
    color: var(--color-text);
    font-size: clamp(0.88rem, 1.08vw, 1rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.ct-info .ct-credit a:hover {
    color: #5f5f5f;
    text-decoration: none;
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-corner,
    .qs-corner,
    .cp-corner,
    .nav-corner,
    .nav-link,
    .menu-toggle,
    .menu-toggle span,
    .site-nav,
    .nav-backdrop {
        transition: none;
    }

    .ticker-track {
        animation-duration: 0.001ms;
        animation-iteration-count: 1;
    }

    .aliados-track {
        animation: none;
    }

    .cp-cta,
    .cp-cta-label,
    .cp-cta::before {
        animation: none;
        transform: none;
    }

    .scroll-hint-arrow {
        animation: none;
    }

    .pr-drag-hand {
        animation: none;
    }
}

/* Tablet / mobile */

@media (max-width: 600px) {
    .scroll-hint {
        display: none;
    }
}

@media (max-width: 1024px) {
    html {
        scrollbar-gutter: auto;
    }

    :root {
        --corner-bg-width: 255px;
        --corner-bg-height: 206px;
    }

    .site-header {
        align-items: flex-start;
    }

    .menu-toggle {
        align-items: center;
        justify-content: center;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-backdrop {
        display: block;
    }

    body.is-menu-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav {
        position: fixed;
        top: var(--header-y);
        right: var(--header-x);
        z-index: 25;
        width: fit-content;
        min-width: 240px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 58px 14px 20px;
        border-radius: 24px;
        background: var(--color-panel);
        backdrop-filter: blur(22px) saturate(132%);
        -webkit-backdrop-filter: blur(22px) saturate(132%);
        box-shadow: 0 18px 46px rgba(17, 17, 17, 0.1);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.96);
        transform-origin: top right;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    body.is-menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-link.is-active {
        color: rgba(17, 17, 17, 0.35);
        pointer-events: none;
    }

    .nav-link.is-active .nav-corner {
        opacity: 0;
    }

    .nav-link {
        width: fit-content;
        padding: 12px 14px;
        font-size: 1.2rem;
        line-height: 1.05;
    }

    .nav-social {
        display: flex;
    }

    #inicio {
        padding-inline: 24px;
    }

    .hero-title {
        max-width: min(82vw, 520px);
        font-size: clamp(1rem, 4.8vw, 1.28rem);
        line-height: 1.2;
    }

    .hero-frame {
        padding: 22px 28px;
    }

    .hero-frame:hover .hero-corner.tl {
        top: -9px;
        left: -9px;
    }

    .hero-frame:hover .hero-corner.tr {
        top: -9px;
        right: -9px;
    }

    .hero-frame:hover .hero-corner.bl {
        bottom: -9px;
        left: -9px;
    }

    .hero-frame:hover .hero-corner.br {
        right: -9px;
        bottom: -9px;
    }

    .hero-ticker {
        bottom: 16px;
        gap: 14px;
    }

    .ticker-group {
        gap: clamp(14px, 4.5vw, 28px);
        padding-right: clamp(14px, 4.5vw, 28px);
    }

    .ticker-word {
        font-size: clamp(0.72rem, 3.2vw, 0.9rem);
    }

    .qs-section {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .qs-sphere {
        opacity: 0.76;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 13%, black 72%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 13%, black 72%, transparent 100%);
    }

    .qs-wrap {
        min-height: 100vh;
        height: auto;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 40px;
        padding: 92px 24px 48px;
    }

    .qs-team-title {
        order: 0;
        margin-bottom: 0;
    }

    .qs-text-block {
        order: 2;
        width: 100%;
        max-width: 480px;
        min-width: 0;
        margin: 0;
    }

    .qs-text {
        font-size: clamp(0.88rem, 3.8vw, 1.05rem);
    }

    .qs-photos {
        order: 1;
        flex: 0 0 auto;
        width: min(68vw, 320px);
        max-width: 320px;
        aspect-ratio: 1 / 1;
        gap: clamp(4px, 1.4vw, 10px);
        margin: 0;
    }

    .person {
        width: 100% !important;
    }

    .person-card {
        max-height: none;
        overflow: visible;
        padding-top: 10%;
    }

    .person-card-name {
        font-size: clamp(0.6rem, 2.6vw, 0.85rem);
    }

    .person-card {
        max-height: 55%;
        padding: 10% 5% 3.5%;
    }

    .person-card-roles {
        flex-wrap: wrap;
        gap: 0.18em;
    }

    .person-card-role {
        font-size: clamp(0.34rem, 1.5vw, 0.5rem);
        padding: 0.2em 0.45em;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .person-card-bio {
        display: none;
    }

    .qh-network {
        opacity: 0.72;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 84%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 84%, transparent 100%);
    }

    .qh-inner {
        justify-content: center;
        gap: 24px;
        padding: 58px 22px 60px;
    }

    .qh-panel-track {
        transition-duration: 0.58s;
    }

    .qh-subpage .qh-inner {
        padding-top: clamp(78px, 12vh, 106px);
    }

    .qh-subpage-cols {
        flex-direction: column;
        gap: clamp(28px, 4vh, 44px);
    }

    .qh-intro-text {
        font-size: calc(clamp(0.9rem, 3.8vw, 1.05rem) + 2pt);
    }

    .qh-services {
        width: min(100%, 760px);
    }

    .qh-side-links {
        position: relative;
        inset: auto;
        display: flex;
        justify-content: center;
        gap: 14px;
        width: 100%;
        margin-top: 14px;
        pointer-events: auto;
    }

    .qh-side-link {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        --qh-side-transform: none;
        transform: none;
        writing-mode: horizontal-tb;
        font-size: calc(clamp(0.78rem, 2vw, 0.9rem) + 1pt);
        padding: 8px 14px;
        border-radius: 999px;
        background: linear-gradient(100deg, #db0064 0%, #ff6720 16%, #fdc000 32%, #00ce84 48%, #00a6d6 64%, #7f3fb8 80%, #db0064 100%);
        background-size: 160% 100%;
        color: #fff;
        filter: saturate(0.68) brightness(1.04);
        animation: cp-cta-gradient-drift 9s ease-in-out infinite alternate;
    }

    .qh-side-link:hover,
    .qh-side-link:focus-visible {
        transform: scale(1.03);
    }

    .qh-panel-return {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        order: 3;
        margin-top: 16px;
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.54);
        font-size: calc(clamp(0.95rem, 2.8vw, 1.2rem) - 1pt);
        writing-mode: horizontal-tb;
        transform: none;
        --qh-panel-return-hover: scale(1.04);
    }

    .qh-service {
        max-width: 100%;
        font-size: clamp(1.45rem, 7.2vw, 2.8rem);
        line-height: 0.88;
        white-space: normal;
    }

    .qh-item.is-active .qh-service {
        font-size: clamp(2rem, 9.6vw, 3.8rem);
        line-height: 0.86;
        white-space: normal;
    }

    .qh-item.is-active {
        margin: 10px 0 28px;
    }

    .qh-detail {
        width: 100%;
    }

    .qh-detail-frame {
        padding: 4px 32px 20px;
    }

    .qh-detail-frame p {
        font-size: calc(clamp(0.92rem, 3.5vw, 1.04rem) - 3pt);
        line-height: 1.52;
    }

    .cp-section {
        min-height: auto;
        padding: 104px 22px 56px;
    }

    .cp-section::after {
        right: -62vw;
        bottom: -26vh;
        width: 116vw;
        opacity: 0.6;
    }

    .cp-inner {
        width: min(100%, 620px);
        gap: 12px;
    }

    .cp-logo {
        width: min(82vw, 380px);
    }

    .cp-stamps {
        gap: 12px 18px;
        margin-top: -4px;
        margin-bottom: 20px;
    }

    .cp-stamp {
        max-width: 29%;
        height: clamp(14px, 4vw, 21px);
    }

    .cp-frame {
        width: 100%;
        padding: 22px 18px;
    }

    .cp-scroll-hint {
        display: none;
    }

    .cp-corner {
        width: 17px;
        height: 17px;
    }

    .cp-frame:hover::before {
        inset: -7px;
    }

    .cp-frame:hover .cp-corner.tl {
        top: -7px;
        left: -7px;
    }

    .cp-frame:hover .cp-corner.tr {
        top: -7px;
        right: -7px;
    }

    .cp-frame:hover .cp-corner.bl {
        bottom: -7px;
        left: -7px;
    }

    .cp-frame:hover .cp-corner.br {
        right: -7px;
        bottom: -7px;
    }

    .cp-text {
        font-size: clamp(0.94rem, 3.8vw, 1.06rem);
        line-height: 1.34;
    }

    .cp-story {
        height: 390vh;
        height: 390svh;
        margin-top: clamp(52px, 14vh, 100px);
    }

    .cp-cta {
        --cp-cta-sticky-offset: 24px;
        width: min(100%, 280px);
    }

    .cp-box-stage {
        width: 100%;
        height: 100%;
        min-height: 0;
        margin-top: 0;
        margin-inline: 0;
    }

    .cp-box-stage::before {
        inset: 24% 0 16%;
    }

    .cp-box-fallback {
        padding: 92px 26px;
    }

    .ct-section {
        --ct-trust-offset: clamp(96px, 14vh, 128px);
        --ct-divider-gap: 32px;
        min-height: 100vh;
        min-height: 100svh;
    }

    .ct-body {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        gap: 42px;
        min-height: auto;
        padding: calc(var(--ct-divider-gap) * 2) 18px 22px;
    }

    .ct-body::before {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 14%, black 30%);
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 14%, black 30%);
    }

    .ct-body::after {
        top: var(--ct-divider-gap);
        left: 18px;
        right: 18px;
    }

    .ct-form {
        width: 100%;
        padding: 18px;
    }

    .ct-field label {
        font-size: clamp(0.88rem, 4vw, 1.08rem);
    }

    .ct-form-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ct-form-status,
    .ct-submit {
        grid-column: auto;
        grid-row: auto;
    }

    .ct-submit {
        font-size: clamp(1rem, 5vw, 1.35rem);
    }

    .ct-info {
        width: 100%;
        margin-left: 0;
        text-align: left;
        padding-bottom: 0;
    }

    .ct-info .ct-credit {
        justify-items: start;
    }

    .ct-info p,
    .ct-info a {
        font-size: clamp(0.92rem, 4vw, 1.08rem);
    }

    .ct-info-line {
        justify-content: flex-start;
    }

    .ct-info-icon {
        width: 20px;
        height: 20px;
    }

    .ct-social {
        justify-content: flex-start;
    }

    .ct-trust {
        gap: 10px;
        padding: var(--ct-trust-offset) 0 0;
    }

    .ct-trust-title {
        max-width: 82vw;
        white-space: normal;
        text-align: center;
        font-size: clamp(0.95rem, 4vw, 1.08rem);
        line-height: 1.15;
    }

    .aliados-strip {
        padding: 6px 0 0;
    }

    .aliados-track {
        --aliados-gap: clamp(22px, 6vw, 38px);
        --aliados-duration: 44s;
    }

    .aliados-logo {
        height: clamp(24px, 5vh, 42px);
    }

    .ct-field textarea {
        min-height: 92px;
    }
}

@media (max-width: 820px) {
    .qh-subpage .om-wrap {
        width: min(100% - 28px, 720px);
        padding: clamp(104px, 13vh, 132px) 0 clamp(48px, 8vh, 76px);
        gap: 0;
        justify-content: flex-start;
    }
}

/* ==============================================
   Proyectos destacados – Carrusel de tarjetas
   ============================================== */

.pr-subpage-body .qh-section.qh-subpage {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-inline: 0;
}

.pr-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: clamp(88px, 12vh, 118px) 0 clamp(24px, 4vh, 42px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.5vh, 28px);
    background: transparent;
}

/* Carrusel */
.pr-carousel {
    position: relative;
    --pr-carousel-edge: clamp(20px, 4vw, 56px);
    width: 100%;
    max-width: none;
}

.pr-drag-hint {
    position: absolute;
    top: 50%;
    right: clamp(34px, 8vw, 132px);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 3.8vw, 50px);
    height: clamp(38px, 3.8vw, 50px);
    color: rgba(17, 17, 17, 0.58);
    pointer-events: none;
    transform: translateY(-50%);
    opacity: 0.86;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pr-carousel.has-scrolled .pr-drag-hint {
    opacity: 0;
    visibility: hidden;
}

.pr-drag-hand {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(17, 17, 17, 0.13));
    animation: pr-drag-hand 1.7s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.pr-drag-hand-shape {
    fill: rgba(255, 255, 255, 0.96);
    stroke: url("#pr-drag-hand-gradient");
    stroke-width: 3.2;
    stroke-linejoin: round;
}

@keyframes pr-drag-hand {
    0% {
        transform: translateX(12px) scale(1);
        opacity: 0.45;
    }

    16% {
        transform: translateX(12px) scale(0.9);
        opacity: 0.92;
    }

    62% {
        transform: translateX(-18px) scale(0.9);
        opacity: 0.92;
    }

    78% {
        transform: translateX(-18px) scale(1);
        opacity: 0.58;
    }

    100% {
        transform: translateX(12px) scale(1);
        opacity: 0.45;
    }
}

.pr-track {
    display: flex;
    gap: clamp(18px, 2vw, 28px);
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px var(--pr-carousel-edge);
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.pr-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.pr-track::-webkit-scrollbar {
    display: none;
}

/* Tarjeta individual */
.pr-card {
    position: relative;
    flex: 0 0 calc((100% - clamp(48px, 5vw, 78px)) / 3.3);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 3px;
    padding: 0;
    overflow: visible;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(1px) saturate(110%);
    -webkit-backdrop-filter: blur(1px) saturate(110%);
}

/* Imágenes dentro de la tarjeta */
.pr-card-images {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 6px;
    width: 100%;
    height: clamp(108px, 14vh, 150px);
    overflow: hidden;
    padding: clamp(12px, 1.6vw, 18px) clamp(12px, 1.6vw, 18px) 0;
}

.pr-card-images img {
    display: block;
    width: 50%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
    cursor: inherit;
    pointer-events: none;
}

.pr-card-images-single img {
    width: 100%;
}

.pr-card-images-dual img {
    width: calc(50% - 3px);
}

/* Contenido textual */
.pr-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.6vh, 7px);
    padding: clamp(10px, 1.2vw, 15px) clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px);
}

.pr-card-header {
    min-height: 4em;
    display: flex;
    flex-direction: column;
}

.pr-card-title {
    font-family: "Merriweather Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(1rem, 1.15vw, 1.3rem);
    line-height: 1.16;
    letter-spacing: 0.015em;
    color: #5e5e5e;
    margin: 0;
}

.pr-card-date {
    display: block;
    font-family: "Merriweather Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(0.65rem, 0.72vw, 0.76rem);
    line-height: 1;
    letter-spacing: 0.015em;
    color: #5e5e5e;
    margin-top: 2px;
}

.pr-card-sep {
    width: 82%;
    height: 4px;
    background: linear-gradient(100deg, #db0064 0%, #ff6720 16%, #fdc000 32%, #00ce84 48%, #00a6d6 64%, #7f3fb8 80%, #db0064 100%);
    margin: clamp(3px, 0.4vh, 5px) 0;
    flex-shrink: 0;
}

.pr-card-text {
    font-family: "Merriweather Sans", sans-serif;
    font-weight: 300;
    font-size: clamp(0.68rem, 0.76vw, 0.82rem);
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: rgba(17, 17, 17, 0.88);
    margin: 0;
}

.pr-card-text strong {
    font-weight: 700;
}

/* Flecha de navegación */
.pr-arrow {
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: clamp(34px, 3.2vw, 42px);
    height: clamp(34px, 3.2vw, 42px);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.pr-arrow:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.5);
}

.pr-arrow:active:not(:disabled) {
    background: rgba(0, 0, 0, 0.1);
}

.pr-arrow:disabled,
.pr-arrow.is-disabled,
.pr-arrow-left.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.pr-arrow svg {
    width: clamp(11px, 1.1vw, 14px);
    height: auto;
    stroke: #333;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pr-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Flecha izquierda (aparece al scrollear) */
.pr-arrow-left {
    left: 10px;
    right: auto;
    transform: translateY(-50%) rotate(180deg);
}

.pr-arrow-left.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 960px) {
    .pr-card {
        flex: 0 0 calc((100% - clamp(32px, 4vw, 50px)) / 2.3);
    }

    .pr-card-images {
        height: clamp(100px, 13vh, 135px);
    }

    .pr-arrow {
        right: -18px;
    }
}

@media (max-width: 640px) {
    .pr-card {
        flex: 0 0 86%;
        min-width: 0;
        border-radius: 7px;
    }

    .pr-track {
        gap: 16px;
        padding-block: 6px;
    }

    .pr-card-images {
        height: clamp(95px, 13vh, 130px);
    }

    .pr-arrow {
        right: -16px;
        width: 30px;
        height: 30px;
    }

    .pr-arrow-left {
        left: 2px;
    }
}
