.tutorial {
    max-width: 1000px;
    margin: auto;
}

.tutorial-intro {
    text-align: center;
    max-width: 800px;
    margin: 25px auto 40px;
    line-height: 1.7;
    color: #cbd5e1;
}

/* ================================
   TOOLS BOX
================================ */

.tools-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 40px;
}

.tools-box h3 {
    text-align: center;
    margin: 0 0 18px 0;
    color: #f5c518;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-box h3:not(:first-child) {
    margin-top: 28px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.download-btn {
    display: block;
    text-align: center;
    padding: 11px 14px;
    border-radius: 8px;
    background: #f5c518;
    color: #0a0f1c;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245,197,24,0.35);
}

/* ================================
   PASOS DEL TUTORIAL
================================ */

.tutorial-step {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 20px;
    row-gap: 0;
    transition: border-color 0.2s;
}

.tutorial-step:hover {
    border-color: rgba(245,197,24,0.2);
}

/* Número del paso — columna izquierda, ocupa las dos primeras filas */
.step-number {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(245,197,24,0.12);
    border: 2px solid rgba(245,197,24,0.35);
    color: #f5c518;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    padding-top: 9px;
    box-sizing: border-box;
}

/* Título — columna derecha, fila 1 */
.step-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 20px;
    font-weight: 700;
    color: #f0f4f8;
    align-self: center;
    line-height: 1.2;
}

/* Texto — columna derecha, fila 2 */
.step-text {
    grid-column: 2;
    grid-row: 2;
    margin-top: 10px;
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 14px;
    
}

/* Imagen — span completo, fila 3 */
.step-image {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.step-image img {
    width: 80%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    margin: 0 auto;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 600px) {

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .download-btn {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* En mobile el número va arriba del título */
    .tutorial-step {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        padding: 20px;
    }

    .step-number {
        grid-column: 1;
        grid-row: 1;
        width: 36px;
        height: 36px;
        font-size: 14px;
        padding-top: 8px;
        margin-bottom: 10px;
    }

    .step-title {
        grid-column: 1;
        grid-row: 2;
        font-size: 18px;
    }

    .step-text {
        grid-column: 1;
        grid-row: 3;
        font-size: 14px;
    }

    .step-image {
        grid-column: 1;
        grid-row: 4;
        width: 80%;
    }

    .step-image img {
        width: 80%; 
    }  
    
    .discord-btn{

        grid-column:1 / -1;

        justify-self:center;

    }

}

@media (hover: hover) and (pointer: fine) {

    .download-btn::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) translateY(5px);

        width: 240px;
        padding: 10px 12px;

        background: rgba(20, 20, 20, 0.95);
        color: #fff;
        font-size: 12px;
        line-height: 1.4;
        text-align: center;

        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.12);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity 0.2s ease, transform 0.2s ease;

        z-index: 100;
    }

    .download-btn::before {
        content: "";
        position: absolute;
        bottom: calc(100% + 4px);
        left: 50%;
        transform: translateX(-50%);

        border: 6px solid transparent;
        border-top-color: rgba(20, 20, 20, 0.95);

        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease;

        z-index: 101;
    }

    .download-btn:hover::after,
    .download-btn:hover::before {
        opacity: 1;
        visibility: visible;
    }

    .download-btn:hover::after {
        transform: translateX(-50%) translateY(0);
    }
}