
/* B08: Cierre y CTA final */

.robofest-closing {
    --robofest-closing-ink: var(--color-text, #171717);
    --robofest-closing-paper: var(--color-background, #f7f8f6);
    --robofest-closing-blue: var(--color-primary, #2563eb);
    --robofest-closing-green: #c7f36b;
    --robofest-closing-orange: #ff7139;
    --robofest-closing-muted: #b8b8b8;
    --robofest-closing-border: 1px solid rgb(255 255 255 / 20%);

    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-block: clamp(5rem, 10vw, 10rem);
    color: #fff;
    background: var(--robofest-closing-ink);
}

.robofest-closing *,
.robofest-closing *::before,
.robofest-closing *::after {
    box-sizing: border-box;
}

.robofest-closing__container {
    width: min(100% - 2.5rem, 1440px);
    margin-inline: auto;
}

/* Encabezado */

.robofest-closing__header {
    padding-bottom: clamp(3rem, 7vw, 7rem);
    border-bottom: var(--robofest-closing-border);
}

.robofest-closing__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 clamp(2rem, 4vw, 4rem);
    color: var(--robofest-closing-green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.robofest-closing__eyebrow::before {
    width: 2rem;
    height: 3px;
    flex: 0 0 auto;
    background: var(--robofest-closing-orange);
    content: "";
}

.robofest-closing__title {
    color: var(--color-white);
    max-width: 1250px;
    margin: 0;
    font-size: clamp(3.2rem, 9.5vw, 9rem);
    font-weight: 900;
    letter-spacing: -0.085em;
    line-height: 0.91;
    text-wrap: balance;
}

.robofest-closing__title-highlight {
    display: block;
    color: var(--robofest-closing-green);
}

/* Narrativa */

.robofest-closing__story {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    gap: clamp(2rem, 8vw, 8rem);
    padding-block: clamp(3rem, 7vw, 7rem);
}

.robofest-closing__paragraph {
    max-width: 560px;
    margin: 0;
    color: var(--robofest-closing-muted);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.9;
}

.robofest-closing__paragraph--lead {
    color: #fff;
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 1.75;
}

/* Declaración de marca */

.robofest-closing__statement {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(2rem, 6vw, 5.5rem);
    border: 1px solid rgb(255 255 255 / 24%);
    background:
        linear-gradient(
            115deg,
            rgb(255 255 255 / 5%),
            transparent 65%
        );
}

.robofest-closing__statement-mark {
    margin-bottom: 0.5rem;
    color: var(--robofest-closing-orange);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 10vw, 9rem);
    line-height: 0.7;
}

.robofest-closing__statement-text {
    max-width: 1100px;
    margin: 0;
    font-size: clamp(1.8rem, 4.6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1.17;
    text-wrap: balance;
}

.robofest-closing__statement-text strong {
    display: block;
    margin-top: 0.5em;
    color: var(--robofest-closing-green);
    font-weight: 900;
}

.robofest-closing__statement-label {
    margin-top: clamp(2rem, 4vw, 3.5rem);
    padding-top: 1rem;
    border-top: 1px solid rgb(255 255 255 / 35%);
    color: var(--robofest-closing-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

/* CTA final */

.robofest-closing__cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2.5rem;
    margin-top: clamp(4rem, 9vw, 8rem);
    padding: clamp(2rem, 5vw, 5rem);
    overflow: hidden;
    color: var(--robofest-closing-ink);
    background: var(--robofest-closing-green);
}

.robofest-closing__cta-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.robofest-closing__cta-eyebrow {
    margin: 0 0 1.25rem;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.robofest-closing__cta-title {
    margin: 0;
    font-size: clamp(2.5rem, 6.2vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.075em;
    line-height: 0.96;
    text-wrap: balance;
}

.robofest-closing__cta-title-highlight {
    display: block;
    color: var(--robofest-closing-blue);
}

.robofest-closing__cta-description {
    max-width: 620px;
    margin: 1.75rem 0 0;
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    line-height: 1.8;
}

.robofest-closing__cta-action {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 210px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.robofest-closing__cta-button {
    display: inline-flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--robofest-closing-ink);
    color: #fff;
    background: var(--robofest-closing-ink);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        color 200ms ease,
        background-color 200ms ease,
        transform 200ms ease;
}

.robofest-closing__cta-button:hover {
    color: var(--robofest-closing-ink);
    background: transparent;
    transform: translateY(-3px);
}

.robofest-closing__cta-button:focus-visible {
    outline: 3px solid var(--robofest-closing-blue);
    outline-offset: 5px;
}

.robofest-closing__cta-arrow {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 200ms ease;
}

.robofest-closing__cta-button:hover .robofest-closing__cta-arrow {
    transform: translate(3px, -3px);
}

.robofest-closing__cta-note {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.robofest-closing__cta-index {
    position: absolute;
    right: 1rem;
    bottom: -0.25em;
    color: rgb(23 23 23 / 6%);
    font-size: clamp(5rem, 13vw, 13rem);
    font-weight: 900;
    letter-spacing: -0.09em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Tabletas */

@media (max-width: 1000px) {
    .robofest-closing__container {
        width: min(100% - 2rem, 900px);
    }

    .robofest-closing__story {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .robofest-closing__paragraph {
        max-width: 750px;
    }

    .robofest-closing__cta {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 2rem;
    }

    .robofest-closing__cta-action {
        min-width: 0;
    }
}

/* Móviles */

@media (max-width: 600px) {
    .robofest-closing {
        padding-block: 4rem;
    }

    .robofest-closing__container {
        width: calc(100% - 1.5rem);
    }

    .robofest-closing__title {
        font-size: clamp(3rem, 13vw, 5rem);
        letter-spacing: -0.075em;
    }

    .robofest-closing__paragraph--lead {
        font-size: 1.1rem;
    }

    .robofest-closing__statement {
        padding: 1.5rem;
    }

    .robofest-closing__statement-text {
        font-size: clamp(1.8rem, 8vw, 2.7rem);
    }

    .robofest-closing__cta {
        gap: 2rem;
        margin-top: 3rem;
        padding: 1.5rem;
    }

    .robofest-closing__cta-title {
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .robofest-closing__cta-description {
        margin-top: 1.25rem;
        font-size: 0.95rem;
    }

    .robofest-closing__cta-button {
        width: 100%;
    }

    .robofest-closing__cta-index {
        right: 0.25rem;
        font-size: 5rem;
    }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
    .robofest-closing__cta-button,
    .robofest-closing__cta-arrow {
        transition: none;
    }

    .robofest-closing__cta-button:hover {
        transform: none;
    }
}
