/* MODO TABS */
.modo-tab {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1.5px solid var(--color-border, #e5e7eb);
    background: transparent;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted, #6b7280);
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}

.modo-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.modo-tab-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* DESCRIPCIÓN DE MODO */
.modo-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* PASO A PASO */
.paso-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: var(--color-bg-subtle, #f9fafb);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text, #374151);
    min-width: 0;
}

.paso-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.paso-txt {
    min-width: 0;
    word-break: break-word;
}

.paso-txt code {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.88rem;
    word-break: break-all;
}

/* TABLA COMPARATIVA */
#comparativaWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* suaviza el scroll en iOS */
}

#comparativaWrap table {
    width: 100%;
    min-width: 320px;
    table-layout: fixed;
    border-collapse: collapse;
}

#comparativaWrap table th:nth-child(1),
#comparativaWrap table td:nth-child(1) {
    width: 42%;
    word-break: break-word;
}

#comparativaWrap table th:nth-child(2),
#comparativaWrap table td:nth-child(2) {
    width: 35%;
    word-break: break-all;
}

#comparativaWrap table th:nth-child(3),
#comparativaWrap table td:nth-child(3) {
    width: 23%;
    text-align: right;
}

@media (max-width: 480px) {

    /* Tabs: padding más compacto para que quepan más en cada fila */
    .modo-tab {
        padding: 0.4rem 0.6rem;
        font-size: 0.78rem;
    }

    /* Descripción: reducir margen inferior */
    .modo-desc {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    /* Paso a paso: padding más ajustado */
    .paso-item {
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }

    .paso-txt code {
        font-size: 0.82rem;
    }

    /* Tabla: columnas reajustadas para pantallas muy estrechas */
    #comparativaWrap table th:nth-child(1),
    #comparativaWrap table td:nth-child(1) {
        width: 38%;
    }

    #comparativaWrap table th:nth-child(2),
    #comparativaWrap table td:nth-child(2) {
        width: 38%;
    }

    #comparativaWrap table th:nth-child(3),
    #comparativaWrap table td:nth-child(3) {
        width: 24%;
    }
}