/* B07: Para colegios */

.robofest-schools {
    --robofest-schools-ink: var(--color-text, #171717);
    --robofest-schools-paper: var(--color-background, #f7f8f6);
    --robofest-schools-blue: var(--color-primary, #2563eb);
    --robofest-schools-orange: #ff7139;
    --robofest-schools-green: #c7f36b;
    --robofest-schools-muted: var(--color-text-secondary, #5c5c5c);
    --robofest-schools-border: 2px solid var(--robofest-schools-ink);

    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-block: clamp(5rem, 9vw, 9rem);
    color: var(--robofest-schools-ink);
    background: var(--robofest-schools-paper);
}

.robofest-schools *,
.robofest-schools *::before,
.robofest-schools *::after {
    box-sizing: border-box;
}

.robofest-schools__container {
    width: min(100% - 2.5rem, 1440px);
    margin-inline: auto;
}

/* Encabezado */

.robofest-schools__header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: end;
    gap: 1.5rem clamp(2rem, 6vw, 6rem);
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

.robofest-schools__eyebrow {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.robofest-schools__eyebrow::before {
    width: 2rem;
    height: 3px;
    flex: 0 0 auto;
    background: var(--robofest-schools-orange);
    content: "";
}

.robofest-schools__title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.075em;
    line-height: 0.98;
    text-wrap: balance;
}

.robofest-schools__title-highlight {
    display: block;
    color: var(--robofest-schools-blue);
}

.robofest-schools__intro {
    max-width: 440px;
    margin: 0 0 0.25rem;
    color: var(--robofest-schools-muted);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.8;
}

/* Etapas */

.robofest-schools__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: stretch;
}

.robofest-schools__steps::before {
    position: absolute;
    z-index: -1;
    top: 2.15rem;
    right: 8%;
    left: 8%;
    height: 2px;
    background: var(--robofest-schools-ink);
    content: "";
}

.robofest-schools__step {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 340px;
    flex-direction: column;
    padding: clamp(1.25rem, 2.2vw, 2rem);
    overflow: hidden;
    border: var(--robofest-schools-border);
    background: #fff;
    box-shadow: 6px 6px 0 var(--robofest-schools-ink);
    transition: transform 250ms ease,
    box-shadow 250ms ease;
}

.robofest-schools__step:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--robofest-schools-ink);
}

.robofest-schools__step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.robofest-schools__step-number {
    display: grid;
    width: 4.25rem;
    height: 4.25rem;
    flex: 0 0 auto;
    place-items: center;
    border: var(--robofest-schools-border);
    border-radius: 50%;
    background: var(--robofest-schools-green);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.robofest-schools__step-tag {
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--robofest-schools-ink);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

.robofest-schools__step-content {
    flex: 1;
}

.robofest-schools__step-title {
    max-width: 360px;
    margin: 0 0 1rem;
    font-size: clamp(1.65rem, 2.5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 1.05;
    text-wrap: balance;
}

.robofest-schools__step-highlight {
    color: var(--robofest-schools-blue);
}

.robofest-schools__step-description {
    max-width: 390px;
    margin: 0;
    color: var(--robofest-schools-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.robofest-schools__step-symbol {
    align-self: flex-end;
    margin-top: 1.5rem;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

/* Identidad visual por etapa */

.robofest-schools__step--learning .robofest-schools__step-number {
    background: var(--robofest-schools-green);
}

.robofest-schools__step--competition .robofest-schools__step-number {
    color: #fff;
    background: var(--robofest-schools-blue);
}

.robofest-schools__step--competition .robofest-schools__step-highlight {
    color: var(--robofest-schools-orange);
}

.robofest-schools__step--festival {
    color: #fff;
    background: var(--robofest-schools-ink);
}

.robofest-schools__step--festival .robofest-schools__step-number {
    color: var(--robofest-schools-ink);
    background: var(--robofest-schools-orange);
}

.robofest-schools__step--festival .robofest-schools__step-tag {
    border-color: rgb(255 255 255 / 55%);
}

.robofest-schools__step--festival .robofest-schools__step-title {
    color: var(--color-white);
}

.robofest-schools__step--festival .robofest-schools__step-highlight {
    color: var(--robofest-schools-green);
}

.robofest-schools__step--festival .robofest-schools__step-description {
    color: rgb(255 255 255 / 75%);
}

/* Llamado a la acción */

.robofest-schools__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: var(--robofest-schools-border);
    background: var(--robofest-schools-green);
}

.robofest-schools__cta-content {
    max-width: 800px;
}

.robofest-schools__cta-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.robofest-schools__cta-title {
    margin: 0;
    font-size: clamp(1.7rem, 3.5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 1.08;
    text-wrap: balance;
}

.robofest-schools__cta-button {
    display: inline-flex;
    min-height: 58px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    border: var(--robofest-schools-border);
    color: #fff;
    background: var(--robofest-schools-ink);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

.robofest-schools__cta-button:hover {
    color: var(--robofest-schools-ink);
    background: #fff;
    transform: translateY(-2px);
}

.robofest-schools__cta-button:focus-visible {
    outline: 3px solid var(--robofest-schools-blue);
    outline-offset: 5px;
}

.robofest-schools__cta-arrow {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 200ms ease;
}

.robofest-schools__cta-button:hover .robofest-schools__cta-arrow {
    transform: translate(3px, -3px);
}

/* Tabletas */

@media (max-width: 1000px) {
    .robofest-schools__container {
        width: min(100% - 2rem, 800px);
    }

    .robofest-schools__header {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .robofest-schools__intro {
        max-width: 650px;
    }

    .robofest-schools__steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-left: 1rem;
    }

    .robofest-schools__steps::before {
        top: 2rem;
        bottom: 2rem;
        left: 3.1rem;
        width: 2px;
        height: auto;
    }

    .robofest-schools__step {
        min-height: 0;
        padding: clamp(1.25rem, 3vw, 2rem);
    }

    .robofest-schools__step-top {
        margin-bottom: 2rem;
    }

    .robofest-schools__step-title {
        max-width: 560px;
        font-size: clamp(1.8rem, 4vw, 2.7rem);
    }

    .robofest-schools__step-description {
        max-width: 600px;
    }

    .robofest-schools__cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Móviles */

@media (max-width: 600px) {
    .robofest-schools {
        padding-block: 4rem;
    }

    .robofest-schools__container {
        width: calc(100% - 1.5rem);
    }

    .robofest-schools__title {
        font-size: clamp(2.5rem, 11vw, 3.8rem);
        letter-spacing: -0.065em;
    }

    .robofest-schools__steps {
        padding-left: 0.35rem;
        gap: 1.1rem;
    }

    .robofest-schools__steps::before {
        left: 2.35rem;
    }

    .robofest-schools__step {
        padding: 1.1rem;
        box-shadow: 4px 4px 0 var(--robofest-schools-ink);
    }

    .robofest-schools__step:hover {
        transform: none;
        box-shadow: 4px 4px 0 var(--robofest-schools-ink);
    }

    .robofest-schools__step-top {
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .robofest-schools__step-number {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 0.95rem;
    }

    .robofest-schools__step-tag {
        max-width: 55%;
        font-size: 0.6rem;
    }

    .robofest-schools__step-title {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .robofest-schools__step-description {
        font-size: 0.9rem;
    }

    .robofest-schools__cta {
        gap: 1.5rem;
        margin-top: 3rem;
        padding: 1.25rem;
    }

    .robofest-schools__cta-title {
        font-size: clamp(1.7rem, 8vw, 2.5rem);
    }

    .robofest-schools__cta-button {
        width: 100%;
    }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
    .robofest-schools__step,
    .robofest-schools__cta-button,
    .robofest-schools__cta-arrow {
        transition: none;
    }

    .robofest-schools__cta-button:hover {
        transform: none;
    }
}
