/* =========================================================
   GRUPO SEINTO · PROYECTOS / CASOS DE ÉXITO
   Sistema editorial inspirado en índices tecnológicos,
   adaptado al lenguaje visual blanco de Grupo Seinto.
   ========================================================= */

.gsp-page {
    --gsp-text: #101820;
    --gsp-muted: #61707e;
    --gsp-line: rgba(31, 58, 76, .12);
    --gsp-dash: rgba(43, 73, 94, .16);
    --gsp-soft: #f8fafc;
    --gsp-blue: var(--gs-blue, #0872be);
    --gsp-orange: var(--gs-orange, #ff9418);
    position: relative;
    overflow: clip;
    background: #fff;
    color: var(--gsp-text);
}

/* Guías laterales globales · siempre visibles a ambos lados del container */
.gsp-page::before,
.gsp-page::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(
        to bottom,
        var(--gsp-dash) 0 5px,
        transparent 5px 11px
    );
}

.gsp-page::before {
    left: max(24px, calc((100% - var(--gs-container)) / 2));
}

.gsp-page::after {
    right: max(24px, calc((100% - var(--gs-container)) / 2));
}

.gsp-shell {
    width: min(var(--gs-container), calc(100% - 48px));
    margin: 0 auto;
    position: relative;
}

/* Las guías ya recorren toda la página desde .gsp-page. */
.gsp-shell--framed::before,
.gsp-shell--framed::after {
    content: none;
}

.gsp-separator {
    width: 100%;
    height: 0;
    margin: 0;
    border-top: 1px dashed var(--gsp-dash);
}

/* Los grandes bloques se encadenan: sin márgenes exteriores entre secciones. */
.gsp-hero,
.gsp-cases,
.gsp-principles,
.gsp-final-cta {
    margin: 0;
}

.gsp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gsp-blue);
    font-family: var(--gs-font);
    font-size: 10px;
    font-weight: 720;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.gsp-eyebrow > span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--gsp-orange);
    box-shadow: 0 0 0 3px rgba(255, 148, 24, .09);
}

/* HERO */
.gsp-hero {
    position: relative;
    padding-top: var(--gs-header-height, 78px);
}

.gsp-hero .gsp-shell {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 72px;
    isolation: isolate;
}

.gsp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gsp-hero__dots {
    position: absolute;
    top: 34px;
    bottom: 34px;
    width: 150px;
    opacity: .48;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(62, 95, 118, .23) .7px, transparent .8px);
    background-size: 11px 11px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
    z-index: -1;
}

.gsp-hero__dots--left { left: 0; }
.gsp-hero__dots--right { right: 0; }

.gsp-hero__content {
    width: 100%;
    max-width: none;
}

.gsp-hero h1 {
    width: 100%;
    max-width: none;
    margin: 0 0 26px;
    color: var(--gsp-text);
    font-family: var(--gs-font);
    font-size: clamp(3rem, 5vw, 5.15rem);
    font-weight: 620;
    line-height: .98;
    letter-spacing: -.058em;
    text-wrap: balance;
}

.gsp-hero__content > p {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #5d6d7b;
    font-family: var(--gs-font);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.62;
    letter-spacing: -.018em;
}

.gsp-hero__index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px dashed var(--gsp-dash);
}

.gsp-hero__index span {
    position: relative;
    color: #6a7884;
    font-size: 11px;
    font-weight: 610;
    letter-spacing: .02em;
}

.gsp-hero__index span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gsp-orange);
    transform: translateY(-50%);
}

/* CABECERA DE CASOS */
.gsp-cases .gsp-shell {
    padding: 0;
}

.gsp-cases__head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr);
    gap: 72px;
    align-items: end;
    padding: 56px 72px 44px;
}

.gsp-cases__head h2,
.gsp-principles__intro h2 {
    max-width: 760px;
    margin: 15px 0 0;
    color: var(--gsp-text);
    font-family: var(--gs-font);
    font-size: clamp(2.2rem, 3.5vw, 3.65rem);
    font-weight: 610;
    line-height: 1.02;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.gsp-cases__head > p {
    max-width: 540px;
    margin: 0;
    color: var(--gsp-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* GRID EDITORIAL */
.gsp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px dashed var(--gsp-dash);
}

.gsp-case {
    position: relative;
    min-width: 0;
    padding: 42px 44px 38px;
    border-bottom: 1px dashed var(--gsp-dash);
    background: #fff;
    transition: background-color .25s ease;
}

.gsp-case:nth-child(odd) {
    border-right: 1px dashed var(--gsp-dash);
}

.gsp-case:hover {
    background: linear-gradient(180deg, rgba(8, 114, 190, .018), rgba(255,255,255,0) 42%);
}

.gsp-case__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    color: #7a8791;
    font-size: 9px;
    font-weight: 680;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.gsp-case__number {
    color: #a4afb7;
    font-variant-numeric: tabular-nums;
}

/* Visuales solo para los dos casos principales */
.gsp-case__visual {
    position: relative;
    min-height: 180px;
    margin: 0 0 38px;
    overflow: hidden;
    border: 1px solid rgba(35, 67, 89, .11);
    border-radius: 7px;
    background:
        radial-gradient(circle at 87% 14%, rgba(255,148,24,.13), transparent 24%),
        radial-gradient(circle at 8% 92%, rgba(8,114,190,.11), transparent 27%),
        #fbfcfd;
}

.gsp-case__visual-grid {
    position: absolute;
    inset: 0;
    opacity: .58;
    background-image:
        linear-gradient(rgba(39, 73, 97, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39, 73, 97, .055) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 84%);
    mask-image: linear-gradient(90deg, #000, transparent 84%);
}

.gsp-case__brand {
    position: absolute;
    top: 28px;
    left: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 174px;
    height: 58px;
    padding: 10px 14px;
    border: 1px solid rgba(36, 67, 88, .10);
    border-radius: 5px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 7px 24px rgba(22, 45, 61, .045);
}

.gsp-case__brand img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gsp-case__visual-stat {
    position: absolute;
    left: 28px;
    bottom: 24px;
    display: grid;
    gap: 1px;
}

.gsp-case__visual-stat small {
    color: #6b7984;
    font-size: 9px;
    font-weight: 690;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.gsp-case__visual-stat strong {
    color: var(--gsp-text);
    font-size: 30px;
    font-weight: 620;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.gsp-case__visual-stat span {
    color: #72808b;
    font-size: 10px;
}

.gsp-case__signal {
    position: absolute;
    right: 26px;
    bottom: 25px;
    display: flex;
    align-items: end;
    gap: 5px;
    height: 48px;
}

.gsp-case__signal span {
    display: block;
    width: 5px;
    min-height: 10px;
    border-radius: 2px 2px 0 0;
    background: rgba(8, 114, 190, .32);
}

.gsp-case__signal span:nth-child(1) { height: 15px; }
.gsp-case__signal span:nth-child(2) { height: 24px; }
.gsp-case__signal span:nth-child(3) { height: 32px; }
.gsp-case__signal span:nth-child(4) { height: 40px; background: rgba(255, 148, 24, .58); }
.gsp-case__signal span:nth-child(5) { height: 48px; background: rgba(8, 114, 190, .58); }

.gsp-case__body {
    display: flex;
    flex-direction: column;
}

.gsp-case__name {
    margin-bottom: 11px;
    color: var(--gsp-blue);
    font-size: 11px;
    font-weight: 720;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.gsp-case h3 {
    max-width: 590px;
    margin: 0;
    color: var(--gsp-text);
    font-family: var(--gs-font);
    font-size: clamp(1.65rem, 2.35vw, 2.45rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.043em;
    text-wrap: balance;
}

.gsp-case__text {
    max-width: 590px;
    margin: 20px 0 0;
    color: #5f6e7a;
    font-size: 14px;
    line-height: 1.72;
}

.gsp-case__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 34px 0 0;
    border-top: 1px solid rgba(33, 64, 84, .09);
    border-bottom: 1px solid rgba(33, 64, 84, .09);
}

.gsp-case__stat {
    min-width: 0;
    padding: 18px 14px 18px 0;
}

.gsp-case__stat + .gsp-case__stat {
    padding-left: 16px;
    border-left: 1px solid rgba(33, 64, 84, .09);
}

.gsp-case__stat strong,
.gsp-case__stat span {
    display: block;
}

.gsp-case__stat strong {
    color: var(--gsp-text);
    font-size: 17px;
    font-weight: 640;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.gsp-case__stat span {
    margin-top: 5px;
    color: #7a8791;
    font-size: 9.5px;
    line-height: 1.35;
}

.gsp-case__quote,
.gsp-case__insight {
    margin: 26px 0 0;
    padding: 0;
    border: 0;
}

.gsp-case__quote p,
.gsp-case__insight {
    color: #273846;
    font-size: 13px;
    font-weight: 560;
    line-height: 1.58;
    letter-spacing: -.01em;
}

.gsp-case__quote p {
    margin: 0;
}

.gsp-case__quote cite {
    display: block;
    margin-top: 8px;
    color: #8a969f;
    font-size: 9.5px;
    font-style: normal;
}

.gsp-case__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-top: 30px;
}

.gsp-case__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gsp-case__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(40, 70, 91, .10);
    border-radius: 999px;
    color: #667581;
    background: #fbfcfd;
    font-size: 8.5px;
    font-weight: 640;
    letter-spacing: .02em;
}

.gsp-case__action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding-bottom: 3px;
    color: #233744;
    border-bottom: 1px solid rgba(35, 55, 68, .22);
    font-size: 10px;
    font-weight: 680;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}

.gsp-case__action:hover,
.gsp-case__action:focus-visible {
    color: var(--gsp-blue);
    border-color: var(--gsp-blue);
    outline: none;
}

/* PRINCIPIOS */
.gsp-principles .gsp-shell {
    padding: 56px 72px 0;
}

.gsp-principles__intro {
    max-width: 860px;
    margin-bottom: 38px;
}

.gsp-principles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 -72px;
    border-top: 1px dashed var(--gsp-dash);
}

.gsp-principles__grid article {
    min-height: 240px;
    padding: 36px 34px 42px;
}

.gsp-principles__grid article + article {
    border-left: 1px dashed var(--gsp-dash);
}

.gsp-principles__grid article > span {
    color: var(--gsp-orange);
    font-size: 9px;
    font-weight: 720;
    letter-spacing: .09em;
}

.gsp-principles__grid h3 {
    margin: 28px 0 12px;
    color: var(--gsp-text);
    font-size: 19px;
    font-weight: 620;
    letter-spacing: -.028em;
}

.gsp-principles__grid p {
    max-width: 330px;
    margin: 0;
    color: #697783;
    font-size: 13px;
    line-height: 1.68;
}

.gsp-separator--before-cta {
    margin-top: 0;
}

/* CTA global reutilizada · conectado al bloque anterior sin bandas vacías */
.gsp-final-cta {
    padding: 0;
}

.gsp-final-cta .gs-home-final-cta__container {
    margin: 0 auto;
    padding: 22px 0;
    border-top: 0;
    border-bottom: 1px dashed var(--gsp-dash);
    border-left: 1px dashed var(--gsp-dash);
    border-right: 1px dashed var(--gsp-dash);
}

.gsp-final-cta .gs-home-final-cta__box {
    margin-top: 0;
    margin-bottom: 0;
}

/* La línea anterior es la unión visual entre secciones. */
.gsp-separator--before-cta {
    margin: 0;
}

/* REVEAL */
[data-gsp-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .62s ease,
        transform .62s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--gsp-order, 0) * 45ms);
}

[data-gsp-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-gsp-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 1100px) {
    .gsp-hero .gsp-shell { padding-left: 48px; padding-right: 48px; }
    .gsp-cases__head { padding-left: 48px; padding-right: 48px; gap: 44px; }
    .gsp-case { padding-left: 34px; padding-right: 34px; }
    .gsp-case__stats { grid-template-columns: 1fr; }
    .gsp-case__stat { padding: 14px 0; }
    .gsp-case__stat + .gsp-case__stat { padding-left: 0; border-left: 0; border-top: 1px solid rgba(33, 64, 84, .09); }
    .gsp-principles .gsp-shell { padding-left: 48px; padding-right: 48px; }
    .gsp-principles__grid { margin-left: -48px; margin-right: -48px; }
}

@media (max-width: 820px) {
    .gsp-shell { width: min(var(--gs-container), calc(100% - 24px)); }
    .gsp-page::before { left: 12px; }
    .gsp-page::after { right: 12px; }

    .gsp-hero .gsp-shell {
        min-height: 370px;
        padding: 76px 24px 42px;
    }

    .gsp-hero__dots { width: 72px; opacity: .27; }
    .gsp-hero h1 { font-size: clamp(2.65rem, 10vw, 4rem); }
    .gsp-hero__index { gap: 8px 18px; margin-top: 36px; }

    .gsp-cases__head {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 58px 24px 44px;
    }

    .gsp-cases__head > p { max-width: 620px; }

    .gsp-grid { grid-template-columns: 1fr; }
    .gsp-case { padding: 34px 24px 32px; }
    .gsp-case:nth-child(odd) { border-right: 0; }
    .gsp-case h3 { max-width: 680px; }
    .gsp-case__text { max-width: 680px; }
    .gsp-case__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gsp-case__stat { padding: 16px 12px 16px 0; }
    .gsp-case__stat + .gsp-case__stat { padding-left: 14px; border-left: 1px solid rgba(33, 64, 84, .09); border-top: 0; }

    .gsp-principles .gsp-shell { padding: 46px 24px 0; }
    .gsp-principles__grid { grid-template-columns: 1fr; margin: 0 -24px; }
    .gsp-principles__grid article { min-height: 0; padding: 30px 24px 34px; }
    .gsp-principles__grid article + article { border-left: 0; border-top: 1px dashed var(--gsp-dash); }

    .gsp-final-cta { padding: 0; }
    .gsp-final-cta .gs-home-final-cta__container { padding: 16px 0; }
}

@media (max-width: 560px) {
    .gsp-hero .gsp-shell { min-height: 340px; padding-left: 18px; padding-right: 18px; }
    .gsp-eyebrow { font-size: 8.5px; }
    .gsp-hero h1 { margin-top: 14px; margin-bottom: 20px; font-size: clamp(2.25rem, 12vw, 3.15rem); }
    .gsp-hero__content > p { font-size: 14px; }
    .gsp-hero__index { display: none; }

    .gsp-cases__head { padding: 48px 18px 36px; }
    .gsp-cases__head h2,
    .gsp-principles__intro h2 { font-size: clamp(2rem, 10vw, 2.8rem); }

    .gsp-case { padding: 30px 18px 28px; }
    .gsp-case__topline { margin-bottom: 22px; font-size: 8px; }
    .gsp-case__visual { min-height: 156px; margin-bottom: 30px; }
    .gsp-case__brand { top: 20px; left: 20px; width: 145px; height: 50px; }
    .gsp-case__visual-stat { left: 20px; bottom: 18px; }
    .gsp-case__signal { right: 18px; bottom: 20px; transform: scale(.85); transform-origin: right bottom; }
    .gsp-case h3 { font-size: clamp(1.55rem, 8vw, 2rem); }
    .gsp-case__text { margin-top: 16px; font-size: 13px; }

    .gsp-case__stats { grid-template-columns: 1fr; margin-top: 28px; }
    .gsp-case__stat { padding: 13px 0; }
    .gsp-case__stat + .gsp-case__stat { padding-left: 0; border-left: 0; border-top: 1px solid rgba(33, 64, 84, .09); }

    .gsp-case__footer { align-items: flex-start; flex-direction: column; gap: 18px; }
    .gsp-case__action { font-size: 10px; }

    .gsp-principles .gsp-shell { padding: 40px 18px 0; }
    .gsp-principles__grid { margin: 0 -18px; }
    .gsp-principles__grid article { padding-left: 18px; padding-right: 18px; }
}

/* =========================================================
   CASOS · VARIANTE EDITORIAL SIMPLE
   Menos capas visuales, más texto y jerarquía.
   ========================================================= */
.gsp-case {
    padding: 36px 42px 32px;
    background: #fff;
}

.gsp-case:hover {
    background: #fff;
}

.gsp-case__topline {
    margin-bottom: 24px;
}

.gsp-case__visual,
.gsp-case__visual-grid,
.gsp-case__visual-stat,
.gsp-case__signal,
.gsp-case__stats,
.gsp-case__stat {
    display: none !important;
}

.gsp-case__brand-simple {
    display: flex;
    align-items: center;
    height: 42px;
    margin: 0 0 24px;
}

.gsp-case__brand-simple img {
    display: block;
    width: auto;
    max-width: 165px;
    max-height: 42px;
    object-fit: contain;
}

.gsp-case__name {
    margin-bottom: 9px;
    font-size: 10px;
}

.gsp-case h3 {
    max-width: 610px;
    font-size: clamp(1.55rem, 2.05vw, 2.18rem);
    line-height: 1.08;
}

.gsp-case__text {
    max-width: 610px;
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.68;
}

.gsp-case__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px dashed var(--gsp-dash);
    color: #75828c;
    font-size: 10px;
    line-height: 1.45;
}

.gsp-case__facts span {
    position: relative;
}

.gsp-case__facts span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--gsp-orange);
    transform: translateY(-50%);
}

.gsp-case__facts strong {
    color: #314552;
    font-size: 10px;
    font-weight: 700;
}

.gsp-case__quote,
.gsp-case__insight {
    margin-top: 18px;
}

.gsp-case__quote p,
.gsp-case__insight {
    font-size: 12px;
    line-height: 1.55;
}

.gsp-case__quote cite {
    margin-top: 6px;
    font-size: 9px;
}

.gsp-case__footer {
    align-items: center;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--gsp-dash);
}

.gsp-case__tags {
    gap: 5px;
    color: #71808b;
    font-size: 9px;
    line-height: 1.4;
}

.gsp-case__tags span {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: 620;
    letter-spacing: .01em;
}

.gsp-case__tags .gsp-case__tag-sep {
    color: var(--gsp-orange);
}

.gsp-case__action {
    font-size: 9.5px;
}

@media (max-width: 1100px) {
    .gsp-case {
        padding: 32px 30px 30px;
    }
}

@media (max-width: 760px) {
    .gsp-case {
        padding: 28px 24px 26px;
    }

    .gsp-case__brand-simple {
        height: 36px;
        margin-bottom: 20px;
    }

    .gsp-case__brand-simple img {
        max-width: 145px;
        max-height: 36px;
    }

    .gsp-case__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .gsp-case__facts {
        gap: 7px 16px;
    }
}
