.rt-matrix {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.rt-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.rt-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 0;
    border-radius: 18px;
    padding: 20px 15px;
    position: relative;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(29, 60, 145, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}

.rt-col:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(29, 60, 145, .2);
}

/* Fila 1: violeta */
.rt-row-1 .rt-col {
    background: linear-gradient(150deg, #7a2dff, #4a1bb8);
}

/* Fila 2: magenta */
.rt-row-2 .rt-col {
    background: linear-gradient(150deg, #ff2fa3, #b81f74);
}

/* Fila 3: celeste */
.rt-row-3 .rt-col {
    background: linear-gradient(150deg, #00d4ff, #0888b0);
}

.rt-col img {
    max-width: 40px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* asegura que los íconos también se vean blancos */
}

.rt-col h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.rt-col h5 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.rt-col p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .85);
}

.rt-code {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* Flechas, blancas para que se vean sobre el degradado */
.rt-col:not(.rt-col-final)::after {
    content: "→";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 900;
    z-index: 1;
    color: #ffffff;
}

@media (max-width: 767px) {
    .rt-row {
        flex-direction: column;
        gap: 20px;
    }

    .rt-col:not(.rt-col-final)::after {
        content: "↓";
        right: auto;
        bottom: -22px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}